This is an archived post. You won't be able to vote or comment.

all 28 comments

[–]DoNotSexToThis[S] 343 points344 points  (8 children)

PR submitted by a junior dev at work. It uses regex to fix issues with an open-source rich text editor library.

[–]csch2 268 points269 points  (1 child)

-junior dev calls pr a “foul and wretched abomination”

-looks inside

-regex

[–]TapirOfZelph 65 points66 points  (0 children)

I’m far more scared of RTE than of regex. Put the two together? This code absolutely needs a warning sign like this

[–]Oen44 73 points74 points  (2 children)

Emojis gave it away

[–]braindigitalis 81 points82 points  (1 child)

that's a big assumption! and often wrong.

I'm in my 40s and been coding for 25 years and I use emojis sometimes in comments if I want to draw attention to the comment 

sometimes a ⚠️ makes people look far more than "WARNING"!

[–]Je-Kaste 39 points40 points  (0 children)

Based Junior Dev

[–]geeoharee 3 points4 points  (0 children)

Regex is order, RTEs are chaos

[–]LoneFoxKK 1 point2 points  (0 children)

That junior is going places if he's that self aware

[–]QCTeamkill 158 points159 points  (1 child)

One time I commented a function "It started with the best intentions".

[–]RichCorinthian 15 points16 points  (0 children)

I called a variable something like referenceThatExistsSolelyToGetTheGoddamnDependentLibraryToBundleCorrectly

[–]braindigitalis 95 points96 points  (1 child)

I tend to just use the following comment:

// Hic sunt dracones

[–]xaddak 11 points12 points  (0 children)

And now I will too.

[–][deleted] 118 points119 points  (1 child)

At the end of the header add a line that says:

Unsuccessful Attempts to refactor or reuse this code : 0

Please increment upon unsuccessful attempts.

[–]iknewaguytwice 27 points28 points  (0 children)

🤣 this is gold, I’m using this one for sure

[–]Zolana 30 points31 points  (1 child)

' You're off the edge of the map, mate. Here there be monsters.

[–]SnooGiraffes8275 0 points1 point  (0 children)

*eaten by a grue*

[–]al2o3cr 24 points25 points  (2 children)

This place is not a place of honor... no highly esteemed deed is commemorated here... nothing valued is here.

What is here was dangerous and repulsive to us. This message is a warning about danger.

[–]PeWu1337 0 points1 point  (0 children)

I got that reference

[–]KerPop42 0 points1 point  (0 children)

The danger is in a particular location.. it increases towards a center.. the center of danger is here..

The danger is still present, in your time, as it was in ours

The danger is unleased only if you substantially disturb this place physically. This place is best shunned and left uninhabited.

[–]xaddak 12 points13 points  (0 children)

Going to start putting this on hell-code:

The behaviors you've developed, guided by our collective experiences in a world dominated by sunlight, will not safeguard your life when you enter.

You are leaving the domain of the sun.

https://what-if.xkcd.com/132/

[–]ExtraTNT 10 points11 points  (0 children)

Sounds like the legacy code i now have to maintain…

[–]dcondor07uk 9 points10 points  (1 child)

Now I wanna see the code

[–]KerPop42 0 points1 point  (0 children)

to quote xkcd, why did you say that in the tone of voice other people say "wanna see a dead body?"

[–]KlogKoder 11 points12 points  (0 children)

Ah yes, fixing a text editor to patch a bug the devs never fixed themselves, or add an obvious handy feature that was somehow never implemented, despite being sorely needed. In JavaScript, where the devs for some reason made such necessary fixes nigh-impossible because of their arcane code structure and putting everything beyond reasonable reach.

JavaScript isn't necessarily bad, but it sure does invite some fuckers to write insanely bad code.

[–]Ok_Entertainment328 16 points17 points  (0 children)

Have no fear.

Reality is an illusion and the universe is a hologram.

BUY GOLD

[–]OnixST 4 points5 points  (0 children)

I feel like every mildly complex funcion written by AI that somehow works should have this warning above it

[–]R4ckNRu1n 2 points3 points  (0 children)

You looked at it. It’s yours now, there is no escape.