Subscribe: The Daily WTF
http://syndication.thedailywtf.com/TheDailyWtf
Preview: The Daily WTF

The Daily WTF



Curious Perversions in Information Technology



Last Build Date: Wed, 22 Nov 2017 13:36:59 GMT

 



CodeSOD: Arrject

Wed, 22 Nov 2017 11:30:00 GMT

There are some submissions that we get, and we simply sit on, because there’s nothing much to say about them. They’re awful code, but there’s no major comments to be added. It’s clear and simple in its awfulness.

For example, you have some code that needs to display details about colleges around the US. Each College has a name, a full name, a short name, a state and city where it exists, and full names for those states and cities. You are likely reaching for an object to store that information, but why do that, when you can employ what I call the “Arrject Pattern

(image) [Advertisement] Universal Package Manager - ProGet easily integrates with your favorite Continuous Integration and Build Tools, acting as the central hub to all your essential components. Learn more today!
(image)