The post body:
[…] big refactoring project to replace the usage of double types with decimal types. Everything seemed to go well, at least until there was a network hiccup and the application couldn’t connect to the database. Let’s see if you can figure out what happened:
MessageBox.Show("Please decimal check the connection details. Also check firewall settings (port 1433) and network connectivity.");
What a clbuttic mistake.
I don’t actually get the joke with clbuttic
, though. 🤔
Classic -> clbuttic
See also Scunthorpe problem
I can already see the 10,000 line PR touching 50 files and the sole review comment “👍”
A long time ago I worked on a project which had all the user-facing text strings in their own separate file (for ease of translation). I didn’t think much more of it at the time, but even if I was just rubber-stamping this PR then seeing that a code-only refactor was touching the strings file would raise an eyebrow.
That’s a good practice. Seems obvious now that you’ve mentioned it, actually, but I don’t think I’ve ever done it. Except maybe incidentally when building an i18n table.
“LGTM”
Someone did
s/double/decimal/g
(find ‘double’, replace by ‘decimal’) on the whole project.Please decimal check
lol
This is why you manually check and confirm each replacement, as tedious as it is. 😔
I don’t actually get the joke with clbuttic, though.
Replacing “ass” everywhere with “butt”.
This is weird… I had a dream last night where I was trying to decide whether to use float or BigDecimal (Java). Unfortunately, I don’t remember the scenario or what I decided on.
I swear that not all my dreams are this mundane.
Wow, the daily WTF is still running? That’s the biggest wtf for me. I was reading it near 2 decades ago.
I have a pair of “WTF” coffee mugs I got from them probably 15 years ago, and still use regularly. Amazingly, for being free promo items, they are still in virtually perfect condition!
EDIT: it’s this bad boy right here: https://thedailywtf.com/articles/announcement-get-the-mug
I didn’t realise they’d been around so long. An programmer mentioned the website on one of my podcasts as being a good example of learning from others’ mistakes.
The RSS feed is very good, too. You get everything you need just from the description.