Click here to Skip to main content
15,887,027 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: A disturbing new trend? Pin
patbob4-Nov-14 7:16
patbob4-Nov-14 7:16 
GeneralRe: A disturbing new trend? Pin
Gary R. Wheeler8-Nov-14 1:34
Gary R. Wheeler8-Nov-14 1:34 
GeneralRe: A disturbing new trend? Pin
Peter Shaw8-Nov-14 3:29
professionalPeter Shaw8-Nov-14 3:29 
GeneralCopy and Paste should be banned from a code editor PinPopular
Marc Clifton3-Nov-14 8:26
mvaMarc Clifton3-Nov-14 8:26 
GeneralRequired Response Pin
W Balboos, GHB3-Nov-14 8:45
W Balboos, GHB3-Nov-14 8:45 
GeneralRe: Required Response Pin
Marc Clifton3-Nov-14 8:47
mvaMarc Clifton3-Nov-14 8:47 
GeneralRe: Required Response Pin
Sander Rossel3-Nov-14 8:54
professionalSander Rossel3-Nov-14 8:54 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Sander Rossel3-Nov-14 8:53
professionalSander Rossel3-Nov-14 8:53 
Marc Clifton wrote:
copy and paste should be banned
AMEN BROTHER! Thumbs Up | :thumbsup:
Copy/paste is the evil of this world.
I've seen SO much copy/paste bugs. I'll just copy this code, make some edits, forget to change a variable name and... 1 + 1 = 3...
I actually worked with someone who worked with a certain library for well over a year, but couldn't create a new project because he always copy/pasted his code and didn't actually know what he was doing...
And then there's the duplicated code...

I always say copy/paste is a right you have to earn and once you've earned it you won't need it.
It's an OO world.
C#
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

My blog[^]

GeneralRe: Copy and Paste should be banned from a code editor Pin
Marc Clifton3-Nov-14 8:56
mvaMarc Clifton3-Nov-14 8:56 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Eddy Vluggen3-Nov-14 9:07
professionalEddy Vluggen3-Nov-14 9:07 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Sander Rossel3-Nov-14 9:28
professionalSander Rossel3-Nov-14 9:28 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Ravi Bhavnani3-Nov-14 9:08
professionalRavi Bhavnani3-Nov-14 9:08 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Marc Clifton3-Nov-14 9:29
mvaMarc Clifton3-Nov-14 9:29 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Ravi Bhavnani3-Nov-14 11:11
professionalRavi Bhavnani3-Nov-14 11:11 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Mark_Wallace3-Nov-14 21:26
Mark_Wallace3-Nov-14 21:26 
JokeRe: Copy and Paste should be banned from a code editor Pin
Freak305-Nov-14 0:50
Freak305-Nov-14 0:50 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Ian Shlasko3-Nov-14 9:30
Ian Shlasko3-Nov-14 9:30 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Marc Clifton3-Nov-14 9:39
mvaMarc Clifton3-Nov-14 9:39 
GeneralRe: Copy and Paste should be banned from a code editor Pin
PIEBALDconsult3-Nov-14 10:22
mvePIEBALDconsult3-Nov-14 10:22 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Mark_Wallace3-Nov-14 21:27
Mark_Wallace3-Nov-14 21:27 
GeneralRe: Copy and Paste should be banned from a code editor Pin
Plamen Dragiyski4-Nov-14 0:11
professionalPlamen Dragiyski4-Nov-14 0:11 
GeneralUnreachable code detected Pin
Marc Clifton3-Nov-14 7:56
mvaMarc Clifton3-Nov-14 7:56 
GeneralRe: Unreachable code detected Pin
PIEBALDconsult3-Nov-14 8:04
mvePIEBALDconsult3-Nov-14 8:04 
GeneralRe: Unreachable code detected Pin
Marc Clifton3-Nov-14 8:19
mvaMarc Clifton3-Nov-14 8:19 
GeneralRe: Unreachable code detected Pin
Eddy Vluggen3-Nov-14 9:11
professionalEddy Vluggen3-Nov-14 9:11 

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.