The Daily WTF If you need your user’s country of origin, there are many ways you can go about obtaining it programmatically. Some may opt
The Daily WTF I’m an old person. It’s the sort of thing that happens when you aren’t looking. All the kids these days are
The Daily WTF Defensive programming is an important tool in any developer’s toolbox. In strictly typed languages, types themselves provide
The Daily WTF “I think I’m missing some precision in my Dell customer number,” writes Steve B. Tief K. wrote, “Looking
The Daily WTF Optional parameters are a great tool for building flexible APIs. In most languages, they’re not strictly necessary- if you
The Daily WTF Sean‘s ongoing career as a consultant keeps supplying him with amazing code. Let’s talk about encapsulation. We put
The Daily WTF Bad date handling code is like litter: offensive, annoying, but omnipresent. Nobody is specifically responsible for it, nobody
The Daily WTF Those of us that had the luxury of learning to program in C or other non-auto-gc’d langauges, learned early on the habit of
The Daily WTF “So I can keep my current language setting or switch to Pakistani English. THERE IS NO IN-BETWEEN,” Robert K. writes.
The Daily WTF When looking for representative lines, ternaries are almost easy mode. While there’s nothing wrong with a good ternary