CodeSOD: Unique Emails Once upon a time, a company started a large React application. Like so many such projects, the requirements were vague and poorly understood, the management didn't have any sort of plan, and the developers didn't understand the framework. Once this inevitably started to go off the rails, ...
CodeSOD: Take a Line Break The number of web applications which need to generate PDFs is too damn high, in my experience. But it's a requirement which continues to exist for a variety of reasons, so we just have to accept it.
Derek was accepting of it, at least until he found this attempt to add ten lines of space ...
Error'd: Home By Another Way This week, we discover an answer to the question
that has eternally plagued us: "is time travel possible?"
I won't swear it's the right answer, but it's
definitely an answer.
But first,
Faroguy
Chris P.
both shared the same issue with us (if they
are in fact different ...
CodeSOD: Strings go Asplodey Anton has the joy of doing PHP work using one of the more popular e-commerce platforms.
Now, say what you will about PHP, its absolute mess of a root namespace has a function or class for just about everything. You want to split a string? We call that explode because that's way more radical ...
Lowering the Rent Floor Things weren't looking good for IniOil. It was the 1980s in the US: greed was good, anti-trust laws had been literally Borked, and financialization and mergers were eating up the energy industry. IniOil was a small fish surrounded by much larger fish, and the larger fish were hungry.
Gordon ...
Testing the Juniors Stefan S has recently joined the ranks of software developers, having taken on his first job as a junior developer. After a few months of on-boarding with Terry, another new developer, they're now both actually getting assigned real work on tickets that deliver new functionality.
Stefan proudly ...
Best of…: Classic WTF: A Systematic Approach It's a holiday in the US today, where we celebrate labor and laborers. Enjoy a story of working smarter, not harder, to meet unrealistic deadlines and create a lot more work for someone in the future. Original --Remy
It was the early 1990s and Frank was living the dream – unshaven, in pajama ...
Error'd: Coast Star On a vacation trip this week. The diligent will be able to discover
the location with a tiny bit of sleuthing, but I won't be there now.
An anonymous traveler reports "I've been
trying to contact them but I don't think they check their email very often."
Â
Naturalist ...
Representative Line: Null Ability The addition of nullable or optional types to mainstream languages was a net good. It doesn't completely solve the billion dollar mistake, but it makes it far easier to write safe code.
For most of us anyway.
Sam found this representative line, which shows how one of his peers understand ...
CodeSOD: IsEmptyOrNullOrNullOrEmpty Peter was tracking down some bugs, when he found code which looks like this:
if (IsEmptyOrNull(myInput))
{
// do things that clearly expect myInput to NOT be null or empty
} else {
throw BadInputException("The input must not be null.");
}
Names are made up above, to illustrate the ...
CodeSOD: Private Passwords Lisa was working on a project she quite liked. The tech was cool, the problems being solved were interesting, and the team had a good working process. Company-wide, however, budgets were tight, and other projects were in much worse shape, so the project Lisa was on got put on pause, and her team ...
CodeSOD: Compile It Yourself Today's anonymous submitter, who we'll call Sally, works on medical devices. As you can imagine, the development process for such devices is very strict. I mean, it should be, but we know that the industry has problems.
Unfortunately for Sally, one of those problems is the tech lead on a ...
Error'd: Forsooth Elte Hupkes
"Some weird Android behavior has my phone disconnecting
from WiFi until I open it back up in the morning,
triggering some backups. Unfortunately, WhatsApp Backup
isn't a morning person."
Â
"User Permissions - Small Town Midwest Style" is how
Jeremy
proposed to ...
CodeSOD: Maximally Zero Today's anonymous submitter found some Java code which finds the largest value in a quartet of floats. Now, the code is quite old, so it actually predates varargs in Java. That doesn't excuse any of what you're about to see.
public float CalculateMaximumValue(float a, float b, float c, ...
CodeSOD: Do a Flip Kendall found some recently written code, and had to wonder, "Who wrote this crap?" Much to Kendall's disappointment, source control knew who wrote it: Kendall.
if (x < 0.0)
{
x += 0.0 - x;
width -= 0.0 - x;
}
Kendall didn't share the purpose of this code, but ...