Click here to Skip to main content
15,914,452 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.

 
GeneralRepeat After Me Pin
Brady Kelly26-Apr-07 8:00
Brady Kelly26-Apr-07 8:00 
GeneralRe: Repeat After Me Pin
chrishuff26-Apr-07 8:58
chrishuff26-Apr-07 8:58 
GeneralRe: Repeat After Me Pin
John R. Shaw28-Apr-07 13:18
John R. Shaw28-Apr-07 13:18 
GeneralMore Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 7:13
chrishuff26-Apr-07 7:13 
GeneralRe: More Than One Way To Skin A Cat Pin
Dave Kreskowiak26-Apr-07 7:16
mveDave Kreskowiak26-Apr-07 7:16 
GeneralRe: More Than One Way To Skin A Cat Pin
Tim Carmichael26-Apr-07 7:45
Tim Carmichael26-Apr-07 7:45 
GeneralRe: More Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 8:55
chrishuff26-Apr-07 8:55 
GeneralRe: More Than One Way To Skin A Cat Pin
John R. Shaw28-Apr-07 13:37
John R. Shaw28-Apr-07 13:37 
Live and learn! Programs like that is what made me so good at debugging. I was brought into a company to write a custom program and was later hired full time. One of my duties was to maintain and update their software. The first time I looked at the code I automatically wanted to rewrite it. I tried to fix the 350+ warning messages (most should have been errors), but doing so broke the code; that was out. Although I had discovered that touching a single line of code anywhere could break it, I soon learned how to modify it without breaking it.

Rule #1: Ye shall break down your code into individual stand-alone pieces, so that changing them has little or no effect on the rest.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: More Than One Way To Skin A Cat Pin
JMOdom30-Apr-07 8:57
JMOdom30-Apr-07 8:57 
GeneralThe Horror! Pin
Shog924-Apr-07 16:55
sitebuilderShog924-Apr-07 16:55 
GeneralRe: The Horror! Pin
WhiteSpy25-Apr-07 3:24
WhiteSpy25-Apr-07 3:24 
GeneralRe: The Horror! Pin
Jasmine250125-Apr-07 12:36
Jasmine250125-Apr-07 12:36 
GeneralRe: The Horror! Pin
Brady Kelly25-Apr-07 19:12
Brady Kelly25-Apr-07 19:12 
GeneralRe: The Horror! Pin
chrishuff26-Apr-07 7:04
chrishuff26-Apr-07 7:04 
GeneralRe: The Horror! Pin
Brady Kelly26-Apr-07 8:11
Brady Kelly26-Apr-07 8:11 
GeneralRe: The Horror! Pin
PJ Arends26-Apr-07 10:05
professionalPJ Arends26-Apr-07 10:05 
GeneralRe: The Horror! Pin
Shog927-Apr-07 9:15
sitebuilderShog927-Apr-07 9:15 
GeneralRe: The Horror! Pin
John R. Shaw28-Apr-07 13:50
John R. Shaw28-Apr-07 13:50 
GeneralRe: The Horror! Pin
Rajesh R Subramanian1-May-07 21:39
professionalRajesh R Subramanian1-May-07 21:39 
GeneralRe: The Horror! Pin
John R. Shaw5-May-07 23:54
John R. Shaw5-May-07 23:54 
GeneralJoy! Pin
Brady Kelly24-Apr-07 1:44
Brady Kelly24-Apr-07 1:44 
GeneralRe: Joy! Pin
Pete O'Hanlon24-Apr-07 2:15
mvePete O'Hanlon24-Apr-07 2:15 
GeneralRe: Joy! Pin
PIEBALDconsult24-Apr-07 3:16
mvePIEBALDconsult24-Apr-07 3:16 
GeneralRe: Joy! Pin
Mike Dimmick24-Apr-07 5:22
Mike Dimmick24-Apr-07 5:22 
GeneralRe: Joy! Pin
Brady Kelly24-Apr-07 5:40
Brady Kelly24-Apr-07 5:40 

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.