Click here to Skip to main content
12,511,494 members (56,393 online)

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: Let's "switch" to Something Else Pin
BobJanova3-Apr-13 23:27
memberBobJanova3-Apr-13 23:27 
GeneralRe: Let's "switch" to Something Else Pin
jibalt5-Apr-13 19:20
memberjibalt5-Apr-13 19:20 
GeneralRe: Let's "switch" to Something Else Pin
BobJanova8-Apr-13 0:48
memberBobJanova8-Apr-13 0:48 
GeneralRe: Let's "switch" to Something Else Pin
jibalt8-Apr-13 23:42
memberjibalt8-Apr-13 23:42 
GeneralRe: Let's "switch" to Something Else Pin
BobJanova9-Apr-13 23:23
memberBobJanova9-Apr-13 23:23 
GeneralRe: Let's "switch" to Something Else Pin
jibalt10-Apr-13 6:33
memberjibalt10-Apr-13 6:33 
GeneralRe: Let's "switch" to Something Else Pin
Rob Grainger9-Apr-13 2:59
memberRob Grainger9-Apr-13 2:59 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 9:05
memberjschell9-Apr-13 9:05 
jibalt wrote:
You've missed the point ... all multibyte char literals are endian-sensitive.

 

To make it endian-insensitive, it should be


That however ignores the point that the code was written to support a specific protocol over TCP.

If the character set of the protocol changed then that would be just one thing that would likely break.
GeneralRe: Let's "switch" to Something Else Pin
jibalt10-Apr-13 6:34
memberjibalt10-Apr-13 6:34 
GeneralRe: Let's "switch" to Something Else Pin
jschell10-Apr-13 8:17
memberjschell10-Apr-13 8:17 
GeneralRe: Let's "switch" to Something Else Pin
jibalt25-Apr-13 15:44
memberjibalt25-Apr-13 15:44 
GeneralRe: Let's "switch" to Something Else Pin
NAANsoft9-Apr-13 1:25
memberNAANsoft9-Apr-13 1:25 
GeneralRe: Let's "switch" to Something Else Pin
Rob Grainger9-Apr-13 3:01
memberRob Grainger9-Apr-13 3:01 
GeneralRe: Let's "switch" to Something Else Pin
NAANsoft9-Apr-13 4:23
memberNAANsoft9-Apr-13 4:23 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 9:03
memberjschell9-Apr-13 9:03 
GeneralRe: Let's "switch" to Something Else Pin
Gary Wheeler4-Apr-13 0:47
memberGary Wheeler4-Apr-13 0:47 
GeneralRe: Let's "switch" to Something Else Pin
jibalt5-Apr-13 19:21
memberjibalt5-Apr-13 19:21 
GeneralRe: Let's "switch" to Something Else Pin
Gary Wheeler8-Apr-13 0:11
memberGary Wheeler8-Apr-13 0:11 
GeneralRe: Let's "switch" to Something Else Pin
CodeBubba9-Apr-13 1:52
memberCodeBubba9-Apr-13 1:52 
GeneralRe: Let's "switch" to Something Else Pin
RafagaX9-Apr-13 4:56
memberRafagaX9-Apr-13 4:56 
GeneralRe: Let's "switch" to Something Else Pin
Dan Sutton9-Apr-13 6:34
memberDan Sutton9-Apr-13 6:34 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 9:08
memberjschell9-Apr-13 9:08 
GeneralRe: Let's "switch" to Something Else Pin
Martin081510-Apr-13 1:41
memberMartin081510-Apr-13 1:41 
GeneralThings that make you go WTF... Pin
Gary Wheeler1-Apr-13 1:32
memberGary Wheeler1-Apr-13 1:32 
GeneralRe: Things that make you go WTF... Pin
Matt T Heffron1-Apr-13 8:53
memberMatt T Heffron1-Apr-13 8:53 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 30 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid