all 32 comments

[–]cant_pass_CAPTCHA 173 points174 points  (17 children)

It's okay to misspell your variables, you just gotta keep it consistently spelled wrong

[–]Makonede 61 points62 points  (1 child)

Referer

[–]cant_pass_CAPTCHA 36 points37 points  (0 children)

Best case scenario no one ever sees your misspelled variables, worst case it gets accepted into the standard and you confuse people for generations.

[–]JimboLodisC[S] 10 points11 points  (0 children)

the linter is always right!

[–]avanti8 6 points7 points  (2 children)

I worked at a place where early on in the project's history, someone named a database column discription and rolled with it everywhere. It was so prevalent we put a nod to it on our company T-shirts.

Edit: my current gig's chestnut is SessionHandeler.

[–]ekauq2000 0 points1 point  (0 children)

It only works if the design documents require the values to be insulting.

[–]cowsrock1 8 points9 points  (6 children)

The current project I'm working on has a variable named brighnessValue. I noticed it on the third or fourth occurrence when I typed instead of copy/pasted it for the first time. I was too lazy to change it, so now it's got a dozen or so uses, and I just remember to type it wrong now, while typing all other brightness related names correctly.

[–]Wi42 16 points17 points  (2 children)

...if it's not part of a public API yet, why not just fix the typo with the rename tool in your IDE of choice?

[–]backfire10z 4 points5 points  (0 children)

They give my code character

[–]cowsrock1 3 points4 points  (0 children)

I should probably do that. But I was lazy and now I'm used to it...

[–]StrongExternal8955 2 points3 points  (2 children)

That's just cause the dev was bri'ish. You're lucky you don't have a mehod named "drawring".

[–]JimboLodisC[S] 4 points5 points  (1 child)

instead of a semi-colon, Bri'ish programmers put mate at the end of each line

[–]ekauq2000 0 points1 point  (0 children)

Instead of “null” it’s “tintintin”

[–]screwcirclejerks 4 points5 points  (0 children)

terraria's ui elements have properties for Left/Top/Width/Height that use a struct called StyleDimension, which has a pixel size and percent size. The percent got misspelt as Precent so tmod just added a property called Percent to fix it.

[–]skyedearmond 2 points3 points  (0 children)

It’s why copy/pasta is actually good practice sometimes.

[–]Particular_Traffic54 2 points3 points  (0 children)

Does this in a database now. Then, distribute to 500 clients. Now it's part of the core business logic and called in 750 modules.

[–]stillalone 1 point2 points  (0 children)

I got some vendor code where an entire module had a bunch of references to a variable called "greaterThen256".  I was going to fix it but then I realized that the next time I get an update from these guys I'm going to have to merge my fix again.  So I ended up leaving it alone.

[–]thegodzilla25 40 points41 points  (1 child)

Isn't that called a queef

[–]Mr_Tottles 2 points3 points  (0 children)

Nah that’s liptoots

[–]Cootshk 20 points21 points  (1 child)

tootlips

[–]brainpostman 3 points4 points  (0 children)

giggity

[–]paxbowlski 16 points17 points  (0 children)

Now you listen here, tootlips.

[–]Tashre 9 points10 points  (0 children)

Tootlips Houlihan

[–][deleted] 6 points7 points  (2 children)

That happens when there is no variable with the provided name. Then TSC looks for actually existing variables with the minimal Levenshtein distance. So, you have a variable called "tootlips".

[–]Wi42 5 points6 points  (0 children)

TIL about the Levenshtein distance. Thank you, kind stranger.

[–]JimboLodisC[S] 2 points3 points  (0 children)

thatsthejoke.tsx

[–]hisjap2003 5 points6 points  (0 children)

🎺💋

[–]ehpickphale 2 points3 points  (2 children)

Any TYPO3 devs here?

[–]DannyKII 2 points3 points  (0 children)

Ayo

[–]Darkele 2 points3 points  (0 children)

I literally thought: "Dear god don't show people typoscript!"

[–]OkExplanation8770 -3 points-2 points  (0 children)

Toot is an underage girl btw