Conservative. Idaho. Software engineer. Historian. Trying to prevent Idiocracy from becoming a documentary.
Email complaints/requests about copyright infringement to clayton @ claytoncramer.com. Reminder: the last copyright troll that bothered me went bankrupt.
"And we know that all things work together for good to them that love God, to them who are the called according to his purpose." -- Rom. 8:28
Pages
▼
Friday, January 3, 2014
No Excuse For Code Abuse
What would cause anyone but a complete raving idiot to write Java like this?
if ("D".equals(action)) action = "D"; ... if ("I".equals(action)) action = "I"; ... if ("U".equals(action)) action = "U";
Paid by the line + no code review => Profit!
ReplyDeleteBeing paid per line of code.
ReplyDeleteUnboxing? Or maybe debugging lines to set break points on.
ReplyDeleteMaybe there's some weird typecasting action going on behind the scenes there. char vs String.
ReplyDeleteThis may be have translated from another computer language by a program that was also buggy.
ReplyDeleteJoseph: I wish that this was the case. The highly paid consultants that wrote much of this code did lots of stuff not even this clever.
ReplyDelete