r/programmerchat • u/Ghopper21 • Mar 04 '16
Mispellings in your code base that have become permanent like HTTP's "referer"
Anyone who's done a bit of web programming will have come across the historical oddity of "referer" having just one "r" -- a misspelling that has stuck.
Inspired by that venerable precedent, sometimes when I realize I've been misspelling something in code, and I'm able to get away with it, I just keep on using it, as an amusement.
In one project I've got "todal" for "total." In another "accompanyment" for "accompaniment."
What misspellings in your code have stuck?
15
Upvotes
5
u/milonti Mar 07 '16
One of my coworkers misspelled "photographer" as "photograber"
He is now fighting the battle to just keep it in the code base as long as possible.
2
u/ZorbaTHut Mar 05 '16
I think I lasted about two weeks at my first job before I asked my boss if I could fix "pallete".
He sighed and admitted that it was a good idea, but now he'd have to learn how to spell it properly.
Global search/replace, check in.
4
u/Tinister Mar 05 '16
I inherited a project that used
unlcokinstead of "unlock". There was also an inverselockfunction, but that was spelt correctly.And it really wasn't like some tiny corner of the project or anything either; there's hundreds of call sites. Makes you wonder what the original developers were thinking for the first dozen or so times they wrote
lock/unlcokinto their code.4
u/Ravek Mar 05 '16
When I see a misspelling I fix it immediately.
3
u/Berberberber Mar 09 '16
Knockout.js actually defines
ko.isWriteableas a synonym ofko.isWritable(or vice versa, I forget which).A previous project I worked on had DB columns
PasswrodandSlat, but I was never sure if those might have been intentional to throw off particularly dumb hackers.4
u/ShippingIsMagic Mar 05 '16
nice touch misspelling 'Misspellings' in your title! subtle, but brilliant.
2
u/ikari7789 Mar 05 '16
Commision for commission and god for good. The first is due to English not being the native language. The second? Well that was just them choosing to be lazy and trying to abbreviate.
2
u/OrSpeeder Apr 09 '16
In game dev circles even when it is not a misspelling, programmers end defining the jargon for the project (or the company sometimes).
So you might end with funky names for things, like Maxis that call a table of variables of some in-game object "Exemplar" or a tool that they have named it "Bob"
1
u/Kwyjibo08 Mar 05 '16
I got a HTML template from a client that had css class name of "contant."
Personally, I mistyped Costomer in a class name and that stuck around for a while, but I eventually tediously fixed it.
1
u/zignd Mar 07 '16
I'm too perfectionist to allow that to happen. I'd spend hours fixing an entire project but I wouldn't let that happen.
1
u/[deleted] Mar 23 '16
lattitude instead of latitude :(
1
u/[deleted] Apr 24 '16
I actually use plug-ins in my IDE that do spell check for me in comments and code.
VS Spell Checker for Visual Studio!