Click here to Skip to main content
12,633,519 members (31,528 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
H.Brydon14-Apr-13 10:07
memberH.Brydon14-Apr-13 10:07 
GeneralRe: Let's "switch" to Something Else Pin
OriginalGriff3-Apr-13 7:25
mvpOriginalGriff3-Apr-13 7:25 
GeneralRe: Let's "switch" to Something Else Pin
Tom Delany3-Apr-13 9:02
memberTom Delany3-Apr-13 9:02 
GeneralRe: Let's "switch" to Something Else Pin
OriginalGriff3-Apr-13 9:14
mvpOriginalGriff3-Apr-13 9:14 
GeneralRe: Let's "switch" to Something Else Pin
BobJanova4-Apr-13 0:27
memberBobJanova4-Apr-13 0:27 
GeneralRe: Let's "switch" to Something Else Pin
jibalt5-Apr-13 20:20
memberjibalt5-Apr-13 20:20 
GeneralRe: Let's "switch" to Something Else Pin
BobJanova8-Apr-13 1:48
memberBobJanova8-Apr-13 1:48 
GeneralRe: Let's "switch" to Something Else Pin
jibalt9-Apr-13 0:42
memberjibalt9-Apr-13 0:42 
GeneralRe: Let's "switch" to Something Else Pin
BobJanova10-Apr-13 0:23
memberBobJanova10-Apr-13 0:23 
GeneralRe: Let's "switch" to Something Else Pin
jibalt10-Apr-13 7:33
memberjibalt10-Apr-13 7:33 
GeneralRe: Let's "switch" to Something Else Pin
Rob Grainger9-Apr-13 3:59
memberRob Grainger9-Apr-13 3:59 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 10:05
memberjschell9-Apr-13 10:05 
GeneralRe: Let's "switch" to Something Else Pin
jibalt10-Apr-13 7:34
memberjibalt10-Apr-13 7:34 
GeneralRe: Let's "switch" to Something Else Pin
jschell10-Apr-13 9:17
memberjschell10-Apr-13 9:17 
jibalt wrote:

No, I did not ignore your irrelevant point.


Your comments are only relevent if the character set changes - and thus the protocol changed.

Thus your comment, in terms of the original question, is irrelevant.

And I seriously doubt it would ever be relevant because it presumes that the protocol is compiler dependent. Even if the protocol did specially use a multi-byte character set which varied by OS then then the correct thing for the protocol to do is send a precursor to determine the ordering. Your code presumes and ordering and ignores the possibility that the other end is running on a different OS.
GeneralRe: Let's "switch" to Something Else Pin
jibalt25-Apr-13 16:44
memberjibalt25-Apr-13 16:44 
GeneralRe: Let's "switch" to Something Else Pin
NAANsoft9-Apr-13 2:25
memberNAANsoft9-Apr-13 2:25 
GeneralRe: Let's "switch" to Something Else Pin
Rob Grainger9-Apr-13 4:01
memberRob Grainger9-Apr-13 4:01 
GeneralRe: Let's "switch" to Something Else Pin
NAANsoft9-Apr-13 5:23
memberNAANsoft9-Apr-13 5:23 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 10:03
memberjschell9-Apr-13 10:03 
GeneralRe: Let's "switch" to Something Else Pin
Gary Wheeler4-Apr-13 1:47
memberGary Wheeler4-Apr-13 1:47 
GeneralRe: Let's "switch" to Something Else Pin
jibalt5-Apr-13 20:21
memberjibalt5-Apr-13 20:21 
GeneralRe: Let's "switch" to Something Else Pin
Gary Wheeler8-Apr-13 1:11
memberGary Wheeler8-Apr-13 1:11 
GeneralRe: Let's "switch" to Something Else Pin
CodeBubba9-Apr-13 2:52
memberCodeBubba9-Apr-13 2:52 
GeneralRe: Let's "switch" to Something Else Pin
RafagaX9-Apr-13 5:56
memberRafagaX9-Apr-13 5:56 
GeneralRe: Let's "switch" to Something Else Pin
Dan Sutton9-Apr-13 7:34
memberDan Sutton9-Apr-13 7:34 
GeneralRe: Let's "switch" to Something Else Pin
jschell9-Apr-13 10:08
memberjschell9-Apr-13 10:08 
GeneralRe: Let's "switch" to Something Else Pin
Martin081510-Apr-13 2:41
memberMartin081510-Apr-13 2:41 
GeneralThings that make you go WTF... Pin
Gary Wheeler1-Apr-13 2:32
memberGary Wheeler1-Apr-13 2:32 
GeneralRe: Things that make you go WTF... Pin
Matt T Heffron1-Apr-13 9:53
memberMatt T Heffron1-Apr-13 9:53 
GeneralRe: Things that make you go WTF... Pin
Gary Wheeler1-Apr-13 9:59
memberGary Wheeler1-Apr-13 9:59 
GeneralRe: Things that make you go WTF... Pin
Brisingr Aerowing1-Apr-13 10:48
professionalBrisingr Aerowing1-Apr-13 10:48 
GeneralRe: Things that make you go WTF... Pin
Pete O'Hanlon2-Apr-13 8:17
protectorPete O'Hanlon2-Apr-13 8:17 
GeneralRe: Things that make you go WTF... Pin
Gary Wheeler2-Apr-13 8:25
memberGary Wheeler2-Apr-13 8:25 
GeneralRe: Things that make you go WTF... Pin
patbob2-Apr-13 6:49
memberpatbob2-Apr-13 6:49 
GeneralRe: Things that make you go WTF... Pin
Gary Wheeler2-Apr-13 7:38
memberGary Wheeler2-Apr-13 7:38 
GeneralRe: Things that make you go WTF... Pin
patbob2-Apr-13 9:03
memberpatbob2-Apr-13 9:03 
JokeRe: Things that make you go WTF... Pin
RafagaX2-Apr-13 7:50
memberRafagaX2-Apr-13 7:50 
GeneralRe: Things that make you go WTF... Pin
AspDotNetDev2-Apr-13 9:11
protectorAspDotNetDev2-Apr-13 9:11 
GeneralRe: Things that make you go WTF... Pin
Gary Wheeler2-Apr-13 9:24
memberGary Wheeler2-Apr-13 9:24 
GeneralRe: Things that make you go WTF... Pin
BobJanova4-Apr-13 0:29
memberBobJanova4-Apr-13 0:29 
GeneralRe: Things that make you go WTF... Pin
Gary Wheeler4-Apr-13 1:44
memberGary Wheeler4-Apr-13 1:44 
GeneralThat was weird... Pin
Brisingr Aerowing28-Mar-13 8:57
memberBrisingr Aerowing28-Mar-13 8:57 
GeneralRe: That was weird... Pin
Julien Villers8-Apr-13 6:10
memberJulien Villers8-Apr-13 6:10 
GeneralRe: That was weird... Pin
Brisingr Aerowing8-Apr-13 15:06
professionalBrisingr Aerowing8-Apr-13 15:06 
GeneralExternal System's Table's View's Table's View ('s Tables?) Pin
AspDotNetDev26-Mar-13 13:38
protectorAspDotNetDev26-Mar-13 13:38 
GeneralRe: External System's Table's View's Table's View ('s Tables?) Pin
Brisingr Aerowing5-Apr-13 6:16
professionalBrisingr Aerowing5-Apr-13 6:16 
GeneralFound this a few minutes ago Pin
SomeGuyThatIsMe26-Mar-13 11:51
memberSomeGuyThatIsMe26-Mar-13 11:51 
GeneralRe: Found this a few minutes ago Pin
Jan Steyn28-Mar-13 1:56
memberJan Steyn28-Mar-13 1:56 
GeneralRe: Found this a few minutes ago Pin
SomeGuyThatIsMe28-Mar-13 4:34
memberSomeGuyThatIsMe28-Mar-13 4:34 
GeneralRe: Found this a few minutes ago Pin
agolddog29-Mar-13 4:39
memberagolddog29-Mar-13 4:39 

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.161208.2 | Last Updated 9 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid