Click here to Skip to main content
15,913,722 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: For loop Pin
V.13-Mar-07 22:51
professionalV.13-Mar-07 22:51 
GeneralRe: For loop Pin
Captain See Sharp14-Mar-07 13:15
Captain See Sharp14-Mar-07 13:15 
JokeRe: For loop Pin
imagiro28-Apr-07 4:49
imagiro28-Apr-07 4:49 
JokeRe: For loop Pin
Sylvester george22-Jun-07 0:25
Sylvester george22-Jun-07 0:25 
GeneralIt always worked well before so leave it like that... [modified] Pin
Stephan Poirier12-Mar-07 21:04
Stephan Poirier12-Mar-07 21:04 
GeneralRe: It always worked well before so leave it like that... Pin
Hal Angseesing12-Mar-07 22:16
professionalHal Angseesing12-Mar-07 22:16 
GeneralRe: It always worked well before so leave it like that... Pin
Stephan Poirier13-Mar-07 17:26
Stephan Poirier13-Mar-07 17:26 
GeneralRe: It always worked well before so leave it like that... Pin
Emil - Gabriel12-Mar-07 22:35
Emil - Gabriel12-Mar-07 22:35 
Ok, it took me a while to see the ";" after the first "if". You would have done me a great favor by simply mentioning that in your message. It's funny!

I just wanted to say that I know what you mean. I'm stuck with something similar. Lots of code doing nothing. I can't believe you actually took the time to count the lines of code! Smile | :) All I can say is that the program I have to work on has about 30000 files of source organized in about 2000 folders.
So, if there were about 400 lines of code per file, that would make a total of 12 million lines of code! However, that's an understatement, since most files have more than 400 lines of code.

When I run into errors like this I think a lot about whether I should fix them or not, since doing so might actually be causing a bug. Smile | :) ) I took up assembly language a long time ago, just because of this. C++ and all other high level programming languages are supposed to be related a great deal to human language. But people say stupid things all the time. Smile | :)
GeneralRe: It always worked well before so leave it like that... Pin
Stephan Poirier13-Mar-07 17:21
Stephan Poirier13-Mar-07 17:21 
GeneralRe: It always worked well before so leave it like that... Pin
Stephen Hewitt13-Mar-07 2:25
Stephen Hewitt13-Mar-07 2:25 
GeneralRe: It always worked well before so leave it like that... Pin
Pete O'Hanlon13-Mar-07 5:56
mvePete O'Hanlon13-Mar-07 5:56 
GeneralRe: It always worked well before so leave it like that... Pin
PIEBALDconsult13-Mar-07 8:14
mvePIEBALDconsult13-Mar-07 8:14 
GeneralRe: It always worked well before so leave it like that... Pin
Stephan Poirier13-Mar-07 17:10
Stephan Poirier13-Mar-07 17:10 
GeneralRe: It always worked well before so leave it like that... Pin
Stephan Poirier13-Mar-07 17:11
Stephan Poirier13-Mar-07 17:11 
GeneralRe: It always worked well before so leave it like that... Pin
John R. Shaw14-Mar-07 17:13
John R. Shaw14-Mar-07 17:13 
GeneralRe: It always worked well before so leave it like that... Pin
Stephan Poirier14-Mar-07 17:52
Stephan Poirier14-Mar-07 17:52 
GeneralRe: It always worked well before so leave it like that... Pin
vijay_aroli15-Mar-07 0:59
vijay_aroli15-Mar-07 0:59 
Generalif bool Pin
innominate12-Mar-07 10:01
innominate12-Mar-07 10:01 
GeneralRe: if bool Pin
Marcus J. Smith12-Mar-07 10:41
professionalMarcus J. Smith12-Mar-07 10:41 
GeneralCould've been worse Pin
Ravi Bhavnani12-Mar-07 10:49
professionalRavi Bhavnani12-Mar-07 10:49 
GeneralRe: if bool Pin
Kevin McFarlane12-Mar-07 11:12
Kevin McFarlane12-Mar-07 11:12 
GeneralRe: if bool Pin
PIEBALDconsult12-Mar-07 14:27
mvePIEBALDconsult12-Mar-07 14:27 
GeneralRe: if bool Pin
Captain See Sharp12-Mar-07 15:01
Captain See Sharp12-Mar-07 15:01 
GeneralRe: if bool Pin
ThatsAlok12-Mar-07 18:41
ThatsAlok12-Mar-07 18:41 
GeneralRe: if bool Pin
eugene.genis13-Mar-07 23:20
eugene.genis13-Mar-07 23:20 

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.