Click here to Skip to main content
14,977,701 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.

 
GeneralWhat's missing? Pin
Gary Wheeler11-Sep-13 0:42
MemberGary Wheeler11-Sep-13 0:42 
GeneralRe: What's missing? Pin
OriginalGriff11-Sep-13 0:51
mveOriginalGriff11-Sep-13 0:51 
GeneralRe: What's missing? Pin
Gary Wheeler11-Sep-13 0:59
MemberGary Wheeler11-Sep-13 0:59 
GeneralRe: What's missing? Pin
OriginalGriff11-Sep-13 1:11
mveOriginalGriff11-Sep-13 1:11 
GeneralRe: What's missing? Pin
Gary Wheeler11-Sep-13 1:14
MemberGary Wheeler11-Sep-13 1:14 
GeneralRe: What's missing? Pin
OriginalGriff11-Sep-13 1:28
mveOriginalGriff11-Sep-13 1:28 
GeneralRe: What's missing? Pin
Freak3012-Sep-13 3:46
MemberFreak3012-Sep-13 3:46 
GeneralRe: What's missing? Pin
OriginalGriff12-Sep-13 3:55
mveOriginalGriff12-Sep-13 3:55 
Fortunately C# cured me of that one - it won't let you write
if (1 && 2)
Because that applies a boolean operation to two integers, so there is no confusion possible with
if (a == 1 && b == 2)

But in C and C++, I used to use the brackets as well! Laugh | :laugh:
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

GeneralRe: What's missing? Pin
Dennis_E11-Sep-13 23:09
professionalDennis_E11-Sep-13 23:09 
GeneralRe: What's missing? Pin
GuyThiebaut13-Sep-13 2:09
professionalGuyThiebaut13-Sep-13 2:09 
GeneralRe: What's missing? Pin
_Maxxx_8-Oct-13 16:00
professional_Maxxx_8-Oct-13 16:00 
GeneralRe: What's missing? Pin
Bernhard Hiller11-Sep-13 4:06
MemberBernhard Hiller11-Sep-13 4:06 
GeneralRe: What's missing? Pin
OriginalGriff11-Sep-13 4:56
mveOriginalGriff11-Sep-13 4:56 
GeneralRe: What's missing? Pin
Giuseppe Tollini11-Sep-13 9:11
MemberGiuseppe Tollini11-Sep-13 9:11 
GeneralRe: What's missing? Pin
BuggyTimes12-Sep-13 0:29
MemberBuggyTimes12-Sep-13 0:29 
GeneralRe: What's missing? Pin
Ingo12-Sep-13 1:12
MemberIngo12-Sep-13 1:12 
GeneralRe: What's missing? Pin
Richard Deeming12-Sep-13 1:43
mveRichard Deeming12-Sep-13 1:43 
GeneralRe: What's missing? Pin
Ingo12-Sep-13 1:48
MemberIngo12-Sep-13 1:48 
GeneralRe: What's missing? Pin
H.Brydon14-Sep-13 15:57
professionalH.Brydon14-Sep-13 15:57 
GeneralRe: What's missing? Pin
Nagy Vilmos11-Sep-13 1:59
professionalNagy Vilmos11-Sep-13 1:59 
GeneralRe: What's missing? Pin
Gary Wheeler11-Sep-13 2:02
MemberGary Wheeler11-Sep-13 2:02 
GeneralRe: What's missing? Pin
Lutosław13-Sep-13 2:46
MemberLutosław13-Sep-13 2:46 
GeneralRe: What's missing? Pin
BobJanova13-Sep-13 3:15
MemberBobJanova13-Sep-13 3:15 
GeneralRe: What's missing? Pin
Bernhard Hiller12-Sep-13 3:53
MemberBernhard Hiller12-Sep-13 3:53 
GeneralRe: What's missing? Pin
Gary Wheeler12-Sep-13 3:59
MemberGary Wheeler12-Sep-13 3:59 

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.