Click here to Skip to main content
15,895,142 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: Captain Obvious Pin
liquidplasmaflow19-Feb-08 9:43
liquidplasmaflow19-Feb-08 9:43 
GeneralRe: Captain Obvious Pin
Jitse19-Feb-08 10:10
Jitse19-Feb-08 10:10 
GeneralRe: Captain Obvious Pin
liquidplasmaflow19-Feb-08 12:24
liquidplasmaflow19-Feb-08 12:24 
GeneralRe: Captain Obvious Pin
Luc Pattyn19-Feb-08 14:45
sitebuilderLuc Pattyn19-Feb-08 14:45 
GeneralRe: Captain Obvious Pin
liquidplasmaflow20-Feb-08 3:58
liquidplasmaflow20-Feb-08 3:58 
GeneralRe: Captain Obvious Pin
Luc Pattyn20-Feb-08 4:25
sitebuilderLuc Pattyn20-Feb-08 4:25 
GeneralRe: Captain Obvious Pin
PIEBALDconsult20-Feb-08 13:45
mvePIEBALDconsult20-Feb-08 13:45 
GeneralRe: Captain Obvious Pin
Luc Pattyn20-Feb-08 15:37
sitebuilderLuc Pattyn20-Feb-08 15:37 
I have used dozens of C compilers over the years, most if not all of them did not care about
the ambiguity, but simply evaluated the entire expression including side-effects before storing
the result. It is only with the advent of RISC and advanced instruction scheduling that
things got unclear, and the undefined stuff got introduced.

Anyway, I learned long ago not to write code that would be ambiguous or just difficult to read
and understand, so it never really mattered ... What is the point of studying a page of rules
to make sure something is/isn't ambiguous or undefined, where one could add an intermediate
statement or a pair of parentheses? It isn't APL or Lisp after all.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Captain Obvious Pin
Megidolaon22-Jun-08 23:37
Megidolaon22-Jun-08 23:37 
GeneralRe: Captain Obvious Pin
User 274316219-Feb-08 21:08
User 274316219-Feb-08 21:08 
GeneralA blatant and reckless use of .NET Cache Pin
Vasudevan Deepak Kumar14-Feb-08 1:54
Vasudevan Deepak Kumar14-Feb-08 1:54 
JokeRe: A blatant and reckless use of .NET Cache Pin
Ri Qen-Sin14-Feb-08 14:58
Ri Qen-Sin14-Feb-08 14:58 
GeneralRe: A blatant and reckless use of .NET Cache Pin
CARPETBURNER14-Feb-08 22:41
CARPETBURNER14-Feb-08 22:41 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Paul Conrad17-Feb-08 6:47
professionalPaul Conrad17-Feb-08 6:47 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Emil - Gabriel14-Feb-08 22:53
Emil - Gabriel14-Feb-08 22:53 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Paul Conrad17-Feb-08 6:46
professionalPaul Conrad17-Feb-08 6:46 
GeneralRe: A blatant and reckless use of .NET Cache Pin
J4amieC18-Feb-08 7:01
J4amieC18-Feb-08 7:01 
GeneralAn XSLT version of an old favourite Pin
Rob Grainger13-Feb-08 23:15
Rob Grainger13-Feb-08 23:15 
GeneralRe: An XSLT version of an old favourite Pin
Doc Lobster14-Feb-08 1:58
Doc Lobster14-Feb-08 1:58 
GeneralRe: An XSLT version of an old favourite Pin
Rob Grainger14-Feb-08 5:55
Rob Grainger14-Feb-08 5:55 
GeneralRe: An XSLT version of an old favourite Pin
Doc Lobster14-Feb-08 11:21
Doc Lobster14-Feb-08 11:21 
GeneralRe: An XSLT version of an old favourite Pin
Shog915-Feb-08 3:57
sitebuilderShog915-Feb-08 3:57 
GeneralRe: An XSLT version of an old favourite Pin
Nemanja Trifunovic14-Feb-08 6:36
Nemanja Trifunovic14-Feb-08 6:36 
GeneralRe: An XSLT version of an old favourite Pin
Shog914-Feb-08 8:24
sitebuilderShog914-Feb-08 8:24 
GeneralRe: An XSLT version of an old favourite Pin
Rob Grainger15-Feb-08 2:42
Rob Grainger15-Feb-08 2:42 

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.