No Color? No Problem!

by Mark Bowytz in Error'd on 2015-07-31

"Samsung's printer technology must really be something," writes Tim, "A black and white printer able to output a full color photo?! Who knew!"

93 Comments - Last Comment @ 2015-08-01

If You Want To

by Remy Porter in Coded Smorgasbord on 2015-07-30

We pick on date handling code a lot here, simply because there are so many ways to mess up date related code (because dates are hard). In a way, it’s almost like we’re cheating. Even smart programmers could mess that up. What about basic conditional logic? How hard could that be to mess up?

Well Jan L. came across this solution to a simple boundary check- if telegramType is between 100 and 199, it is a payment type telegram.

77 Comments - Last Comment @ 2015-08-01

You've Got My Number

by Jane Bailey in CodeSOD on 2015-07-28

Luftballons Hannover

Today's snippet needs very little introduction. In the words of the submitter:

[My predecessor] is what I would consider, among the worst programmers in the world. While his programs actually do work and do what they should, his techniques and programming decisions are very questionable. The [below] code snippet is from a program he wrote after he spend about a year at this company.

59 Comments - Last Comment @ 2015-07-31

What is this 'Right Click' You Speak Of?

by Mark Bowytz in Error'd on 2015-07-24

"What makes this worse is that this wasn't an edge case," wrote Roger, "I only right-clicked in the body of an email."

0 Comments - Last Comment @ 00:17

Patterned After Success

by Remy Porter in CodeSOD on 2015-07-23

Design patterns are more than just useless interview questions that waste everyone’s time and annoy developers. They’re also a set of approaches to solving common software problems, while at the same time, being a great way to introduce new problems, but enough about Spring.

For those of us that really want global variables back in our object oriented languages, the Singleton pattern is our go-to approach. Since it’s the easiest design pattern to understand and implement, those new to design patterns tend to throw it in everywhere, whether or not it fits.

80 Comments - Last Comment @ 2015-07-29
View Article Archives »