Click here to Skip to main content
15,887,343 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
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 
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 
Brisingr Aerowing wrote:
that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs.
mandatory xkcd[^]

Brisingr Aerowing wrote:
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?!?
Gimme codez plzzz, its urgntzzz

On a crazy but serious note:
Scenario one: the mouse can be a bitch and deselect part of the text you have to copy, then if you delete the message and you empty the trash-bin before you paste the copied code... you might end in a situation where you have to finish the code you were given, having no idea of how to do it.

Scenario 2: You copy while you have a remote desktop open, and someone else have filled the clipboard with other kind of code. Then you paste the wrong content due to the remote desktop bug, you don't checked at all what you are pasting and you deploy something compilable that makes no f***ing sense in that place.

And no... it didn't happen to me (but a colleague in other land). I have only suffered the consequences of both scenarios and had to repair one of them D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh: Sigh | :sigh: Sigh | :sigh: Sigh | :sigh:
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

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 
GeneralRe: My Word....... Pin
phil.o8-Nov-16 15:29
professionalphil.o8-Nov-16 15:29 
GeneralRe: My Word....... Pin
StM0n8-Nov-16 18:27
StM0n8-Nov-16 18:27 
GeneralRe: My Word....... Pin
F-ES Sitecore8-Nov-16 22:15
professionalF-ES Sitecore8-Nov-16 22:15 

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.