Curious Perversions in Information Technology
7k followers 6 articles/week
Error'd: Enterprising Michael

Faithful Michael R. is good for a chuckle today. "I am using the free tier Infura right now but think I will go enterprisey straight away." Can't turn down a deal like that, eh?   Chris M. sent in a captcha that is neither an error nor a wtf, but it's kind of funny so here you go: "Microsoft obviously doesn't use Google's CAPTCHA...

Fri Apr 26, 2024 14:27
CodeSOD: Unaccountable Counting

Ulvhamne sends us some bad code that, well, I think at this point we should really coin a name for this particular anti-pattern. @Override public int getNumOfItemsInDataContainer(int parDataId) { int numberOfItems = 0; for (Integer x : myTransactionDataContainerMap.keySet()) { numberOfItems...

Thu Apr 25, 2024 13:43
CodeSOD: Query Query Query

Bob's employer had a data-driven application which wasn't performing terribly well. They had some in-house database administrators, but their skills were more "keep things running," and less "do deep optimizations". The company opted to hire a contract DBA to come in, address the performance problems, and leave. In actual fact, the DBA came in, ran...

Wed Apr 24, 2024 13:53
CodeSOD: An Obsolete Approach

Marcus's team was restructuring the API, and the architect thus wanted a number of methods marked obsolete, to encourage developers to move to the new version of the API. So the architect created a Jira task, assigned it to a dev, and moved on. Somehow, this C# code got committed and merged, despite being code reviewed: public static void OBSOLETE_PopulateOfferNodes(Ecometry.New.Model.CategoryHierarchyNode...

Tue Apr 23, 2024 15:31
CodeSOD: Concrapenate Strings

As oft discussed, null-terminated C-style strings are an endless source of problems. But there's no problem so bad that it can't be made worse by a sufficiently motivated developer. Today's rather old code comes from Mike, who inherited an old, MFC application. This code is responsible for opening a file dialog, and the key goal of the code is to configure...

Mon Apr 22, 2024 15:12
Error'd: Believe It Or Not

This week we have a special visit from a mythical beast: the snarklemma. But first, a non-error Error'd. Obsessive Optimizer Ian K. "Walmart's nationwide network of warehouse stores means they can save time and money by shipping locally. FedEx has them covered: Their nationwide shipping fleet determined the shortest path from Houston to...

Fri Apr 19, 2024 13:58

Build your own newsfeed

Ready to give it a go?
Start a 14-day trial, no credit card required.

Create account