Login
Sign Up For Free
English
中文 (繁體)
中文 (香港)
中文 (简体)
日本語
Filipino
Bahasa Indonesia
Bahasa Melayu
Pусский
Português (Brasil)
Magyar
Français
Español
Deutsch
Čeština
العربية
Català
Dansk
Ελληνικά
فارسی
Suomi
Gaeilge
Hindi
עברית
Hrvatski
Italiano
Norsk bokmål
Nederlands
한국어
Polski
Română
Slovenský
Svenska
Türkçe
українська
беларуская
ไทย
Standard view
JenLarkin
feels
16 years ago
like this is the stupidest code I've ever seen. I know it's not true but it feels true right now.
latest #16
JenLarkin
says
16 years ago
the stupidest code ever award is still retained by the guy who thought it wasn't a problem for the expected case of his math formula
JenLarkin
says
16 years ago
is to divide by zero.
JenLarkin
says
16 years ago
oh, and to not handle the exception when that explodes
立即下載
JenLarkin
says
16 years ago
he claimed to have a Masters in Math from a university in India. Yeah, right.
JenLarkin
says
16 years ago
anyway, this code is not quite that moronic but it is just so wrong that I can't look at it.
sociallydistressed
16 years ago
sociallydistressed
16 years ago
sounds like you're looking at something my co-worker wrote... His manages to work somehow though.
JenLarkin
says
16 years ago
we have a table named AlertDisplayText
JenLarkin
says
16 years ago
and the alert display text is being generated (complete with logic to determine whether to use "a" or "an")
JenLarkin
says
16 years ago
even though all the code has to do is get by primary key!
JenLarkin
says
16 years ago
this is weeks worth of work that doesn't scale to new alerts and it would have taken HALF AN HOUR to do it right
JenLarkin
says
16 years ago
sociallydistressed
16 years ago
knows that feeling well
JenLarkin
says
16 years ago
some people should simply not be paid by the hour
sociallydistressed
16 years ago
Some people simply should not write code.
Dave MB
16 years ago
I probably shouldn't do either. But I love to see the looks on my co-worker's faces when they read my code.
back to top
delete
reply
edit
cancel
cancel