Click here to Skip to main content
15,887,135 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: If it fails, try again Pin
PIEBALDconsult6-Jun-17 10:21
mvePIEBALDconsult6-Jun-17 10:21 
GeneralRe: If it fails, try again Pin
Rob Grainger6-Jul-17 2:09
Rob Grainger6-Jul-17 2:09 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 1:14
professionalSander Rossel5-Jun-17 1:14 
GeneralRe: If it fails, try again Pin
the Kris5-Jun-17 0:30
the Kris5-Jun-17 0:30 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 1:10
professionalSander Rossel5-Jun-17 1:10 
JokeRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 3:05
professionalJim_Snyder5-Jun-17 3:05 
GeneralRe: If it fails, try again Pin
Sander Rossel5-Jun-17 5:30
professionalSander Rossel5-Jun-17 5:30 
GeneralRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 6:04
professionalJim_Snyder5-Jun-17 6:04 
Being a rather elderly gentleman, I am very religious in my documentation. I know I will be maintaining my own code and will not remember why I did something. Most of my documentation is the "why" I did something or "how" it works, but occasionally I justify to myself why a particular construct or pathway was chosen. My code is self-documenting as far as it can be, but comments still give me quicker access to the areas that need modified/added. In addition, since the compiler doesn't care about whitespace, I use it systematically to separate blocks of code or related groups of commands from the rest.

Now when it comes to resources, I will use whatever the language supplies with the only limitations being running efficiently and being easy to read. I am as likely to use a generic list as I am a hash table depending on what is required.
PraiseRe: If it fails, try again Pin
Jim_Snyder5-Jun-17 6:05
professionalJim_Snyder5-Jun-17 6:05 
GeneralRe: If it fails, try again Pin
kalberts5-Jun-17 22:06
kalberts5-Jun-17 22:06 
GeneralRe: If it fails, try again Pin
Sander Rossel6-Jun-17 5:58
professionalSander Rossel6-Jun-17 5:58 
GeneralRe: If it fails, try again Pin
Nelek6-Jun-17 6:53
protectorNelek6-Jun-17 6:53 
GeneralRe: If it fails, try again Pin
Sander Rossel6-Jun-17 11:06
professionalSander Rossel6-Jun-17 11:06 
GeneralRe: If it fails, try again Pin
Nelek6-Jun-17 19:19
protectorNelek6-Jun-17 19:19 
GeneralRe: If it fails, try again Pin
Sander Rossel6-Jun-17 21:10
professionalSander Rossel6-Jun-17 21:10 
GeneralRe: If it fails, try again Pin
kalberts7-Jun-17 1:34
kalberts7-Jun-17 1:34 
GeneralRe: If it fails, try again Pin
Rob Grainger6-Jul-17 2:12
Rob Grainger6-Jul-17 2:12 
GeneralRe: If it fails, try again PinPopular
kmoorevs5-Jun-17 4:15
kmoorevs5-Jun-17 4:15 
GeneralRe: If it fails, try again PinPopular
Sander Rossel5-Jun-17 5:29
professionalSander Rossel5-Jun-17 5:29 
GeneralRe: If it fails, try again Pin
Daniel Wilianto5-Jun-17 16:04
Daniel Wilianto5-Jun-17 16:04 
GeneralRe: If it fails, try again Pin
Rob Grainger6-Jul-17 2:20
Rob Grainger6-Jul-17 2:20 
GeneralRe: If it fails, try again Pin
DerekT-P6-Jun-17 8:37
professionalDerekT-P6-Jun-17 8:37 
GeneralRe: If it fails, try again Pin
theoldfool5-Jun-17 13:20
professionaltheoldfool5-Jun-17 13:20 
GeneralRe: If it fails, try again Pin
kalberts5-Jun-17 21:51
kalberts5-Jun-17 21:51 
GeneralRe: If it fails, try again Pin
kmoorevs6-Jun-17 4:53
kmoorevs6-Jun-17 4:53 

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.