Click here to Skip to main content

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, embarrasing 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: Let's "switch" to Something Else PinmemberFreak302-Apr-13 21:44 
GeneralRe: Let's "switch" to Something Else PinmemberBernhard Hiller2-Apr-13 22:29 
GeneralRe: Let's "switch" to Something Else PinmemberPIEBALDconsult3-Apr-13 5:13 
GeneralRe: Let's "switch" to Something Else PinmemberH.Brydon13-Apr-13 14:22 
GeneralRe: Let's "switch" to Something Else PinmemberPIEBALDconsult13-Apr-13 19:39 
GeneralRe: Let's "switch" to Something Else PinmemberH.Brydon14-Apr-13 9:07 
GeneralRe: Let's "switch" to Something Else PinmvpOriginalGriff3-Apr-13 6:25 
GeneralRe: Let's "switch" to Something Else PinmemberTom Delany3-Apr-13 8:02 
It's in a thread where it's listening for something from a TCPIP connection (sort of a command channel). It's low-volume, and as such, I don't think the "cleverness" is warranted. And no, it's not commented at all.
 
It's not that I don't understand what he was doing. I just think he was being too clever for his own good. And in the (unlikely?) event that the code is ever ported to a big-endian system, it would be completely broken.
WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated.
 
There are 10 kinds of people in the world: People who know binary and people who don't.

GeneralRe: Let's "switch" to Something Else PinmvpOriginalGriff3-Apr-13 8:14 
GeneralRe: Let's "switch" to Something Else PinmemberBobJanova3-Apr-13 23:27 
GeneralRe: Let's "switch" to Something Else Pinmemberjibalt5-Apr-13 19:20 
GeneralRe: Let's "switch" to Something Else PinmemberBobJanova8-Apr-13 0:48 
GeneralRe: Let's "switch" to Something Else Pinmemberjibalt8-Apr-13 23:42 
GeneralRe: Let's "switch" to Something Else PinmemberBobJanova9-Apr-13 23:23 
GeneralRe: Let's "switch" to Something Else Pinmemberjibalt10-Apr-13 6:33 
GeneralRe: Let's "switch" to Something Else PinmemberRob Grainger9-Apr-13 2:59 
GeneralRe: Let's "switch" to Something Else Pinmemberjschell9-Apr-13 9:05 
GeneralRe: Let's "switch" to Something Else Pinmemberjibalt10-Apr-13 6:34 
GeneralRe: Let's "switch" to Something Else Pinmemberjschell10-Apr-13 8:17 
GeneralRe: Let's "switch" to Something Else Pinmemberjibalt25-Apr-13 15:44 
GeneralRe: Let's "switch" to Something Else PinmemberNAANsoft9-Apr-13 1:25 
GeneralRe: Let's "switch" to Something Else PinmemberRob Grainger9-Apr-13 3:01 
GeneralRe: Let's "switch" to Something Else PinmemberNAANsoft9-Apr-13 4:23 
GeneralRe: Let's "switch" to Something Else Pinmemberjschell9-Apr-13 9:03 
GeneralRe: Let's "switch" to Something Else PinmemberGary Wheeler4-Apr-13 0:47 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 21 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid