DEV Community

Discussion on: Those silly mistakes we all make

 
philnash profile image
Phil Nash

πŸ˜…πŸ˜…πŸ˜…

Thread Thread
 
yechielk profile image
Yechiel Kalmenson

Unrelated, but my last job had a referrals-based business model, so you can imagine the referrals table in their database was the most important table with indexes on almost every other table in the database.

It was spelled referalls, and every table apparently has its own convention of whether to name their column referall_id or referral_id πŸ€¦β€β™‚οΈ

Thread Thread
 
halldjack profile image
Jack Hall

I once fixed a misspelling in a codebase without realizing that the name was coming from an external API's response so my correction broke everything. Misspellings that you can't fix are very frustrating.

Thread Thread
 
philnash profile image
Phil Nash

@yechielk At least that's just in one app and not the Referer header supported in every web browser and server in the world.

Come to think of it, I bet the Referer header has caused multiple spelling confusions leading to things like this.

Thread Thread
 
philnash profile image
Phil Nash

@halldjack Oh no! You must have thought you were fixing a bug instead of causing it. That's the worst!

Thread Thread
 
yechielk profile image
Yechiel Kalmenson

Yes! Someone pointed out the referer header to me once, and I instantly felt better for the poor developer who created that referalls table...

Thread Thread
 
candidateplanet profile image
lusen / they / them πŸ³οΈβ€πŸŒˆπŸ₯‘

are we sure they didn’t mean β€œrefer all”s intentionally? you know, all of the refered people. or referred?

never give in

Thread Thread
 
yechielk profile image
Yechiel Kalmenson

Lol, yes, we're sure πŸ˜‚