Click here to Skip to main content
15,887,430 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: WebUSB... Pin
Munchies_Matt9-Dec-16 12:51
Munchies_Matt9-Dec-16 12:51 
GeneralRe: WebUSB... Pin
F-ES Sitecore11-Dec-16 23:53
professionalF-ES Sitecore11-Dec-16 23:53 
GeneralRe: WebUSB... Pin
Munchies_Matt12-Dec-16 1:12
Munchies_Matt12-Dec-16 1:12 
GeneralRe: WebUSB... Pin
Richard Deeming12-Dec-16 1:24
mveRichard Deeming12-Dec-16 1:24 
GeneralRe: WebUSB... Pin
Munchies_Matt12-Dec-16 2:20
Munchies_Matt12-Dec-16 2:20 
GeneralRe: WebUSB... Pin
Marc Clifton18-Dec-16 14:09
mvaMarc Clifton18-Dec-16 14:09 
GeneralRe: WebUSB... Pin
Member 1234567822-Dec-16 13:15
Member 1234567822-Dec-16 13:15 
GeneralWell, I FINALLY have been able to login to a website for school... Pin
Brisingr Aerowing6-Dec-16 4:41
professionalBrisingr Aerowing6-Dec-16 4:41 
Said website is for Psychology 120, as I need to participate in research studies for credits.

I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid).

Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs.

The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site.

The function was apparently about 300 lines when the idjit was done.

Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?
What do you get when you cross a joke with a rhetorical question?

The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

Do questions with multiple question marks annoy you???

GeneralRe: Well, I FINALLY have been able to login to a website for school... Pin
Tim Carmichael6-Dec-16 4:55
Tim Carmichael6-Dec-16 4:55 
GeneralRe: Well, I FINALLY have been able to login to a website for school... Pin
nanik8816-Dec-16 20:41
nanik8816-Dec-16 20:41 
GeneralRe: Well, I FINALLY have been able to login to a website for school... Pin
Nelek9-Dec-16 1:18
protectorNelek9-Dec-16 1:18 
GeneralRe: Well, I FINALLY have been able to login to a website for school... Pin
Nathan Minier9-Dec-16 1:55
professionalNathan Minier9-Dec-16 1:55 
RantNot cool, not cool at all Pin
Kornfeld Eliyahu Peter5-Dec-16 7:18
professionalKornfeld Eliyahu Peter5-Dec-16 7:18 
GeneralRe: Not cool, not cool at all Pin
Nathan Minier7-Dec-16 1:55
professionalNathan Minier7-Dec-16 1:55 
GeneralWhat else would you expect? Pin
kmoorevs14-Nov-16 7:17
kmoorevs14-Nov-16 7:17 
GeneralRe: What else would you expect? Pin
Eddy Vluggen14-Nov-16 7:26
professionalEddy Vluggen14-Nov-16 7:26 
GeneralRe: What else would you expect? Pin
kmoorevs14-Nov-16 7:42
kmoorevs14-Nov-16 7:42 
GeneralWhat goes around, comes around... Pin
Duncan Edwards Jones9-Nov-16 1:34
professionalDuncan Edwards Jones9-Nov-16 1:34 
GeneralRe: What goes around, comes around... Pin
Sander Rossel9-Nov-16 2:07
professionalSander Rossel9-Nov-16 2:07 
GeneralRe: What goes around, comes around... PinPopular
Midi_Mick9-Nov-16 2:24
professionalMidi_Mick9-Nov-16 2:24 
GeneralRe: What goes around, comes around... Pin
Duncan Edwards Jones9-Nov-16 4:48
professionalDuncan Edwards Jones9-Nov-16 4:48 
JokeRe: What goes around, comes around... Pin
Power Puff Boy10-Nov-16 0:08
Power Puff Boy10-Nov-16 0:08 
GeneralRe: What goes around, comes around... Pin
PIEBALDconsult10-Nov-16 2:43
mvePIEBALDconsult10-Nov-16 2:43 
GeneralMy Word....... Pin
Brisingr Aerowing8-Nov-16 14:06
professionalBrisingr Aerowing8-Nov-16 14:06 
GeneralRe: My Word....... Pin
PIEBALDconsult8-Nov-16 15:12
mvePIEBALDconsult8-Nov-16 15:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.