Click here to Skip to main content
15,867,568 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: And you thought some of the CodeProject questions were bad... Pin
Rob Grainger21-Jul-15 6:07
Rob Grainger21-Jul-15 6:07 
GeneralComedy code comment misdirection Pin
Duncan Edwards Jones8-Jul-15 6:52
professionalDuncan Edwards Jones8-Jul-15 6:52 
GeneralRe: Comedy code comment misdirection Pin
Richard Deeming8-Jul-15 7:14
mveRichard Deeming8-Jul-15 7:14 
GeneralRe: Comedy code comment misdirection Pin
phil.o8-Jul-15 9:00
professionalphil.o8-Jul-15 9:00 
JokeRe: Comedy code comment misdirection Pin
kmoorevs9-Jul-15 11:01
kmoorevs9-Jul-15 11:01 
JokeRe: Comedy code comment misdirection PinPopular
Eddy Vluggen8-Jul-15 11:30
professionalEddy Vluggen8-Jul-15 11:30 
GeneralRe: Comedy code comment misdirection Pin
Duncan Edwards Jones8-Jul-15 11:43
professionalDuncan Edwards Jones8-Jul-15 11:43 
GeneralRe: Comedy code comment misdirection Pin
Sander Rossel13-Jul-15 11:49
professionalSander Rossel13-Jul-15 11:49 
That's exactly why I hate comments.
I've seen this type of comments A LOT...
VB
' Save the customer
product.Save()

' A helper variable
Dim helper As String
That kind of stuff.
And yes, I've seen it in C# too!

I've even written a tip about proper commenting, which 99.9% of the time is not commenting Dead | X|
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Comedy code comment misdirection Pin
Eddy Vluggen20-Jul-15 10:28
professionalEddy Vluggen20-Jul-15 10:28 
GeneralRe: Comedy code comment misdirection Pin
Sander Rossel21-Jul-15 8:50
professionalSander Rossel21-Jul-15 8:50 
GeneralRe: Comedy code comment misdirection Pin
Power Puff Boy27-Jul-15 3:59
Power Puff Boy27-Jul-15 3:59 
Generalif...else if.. & bad casting Pin
Robin Imrie7-Jul-15 22:53
professionalRobin Imrie7-Jul-15 22:53 
GeneralRe: if...else if.. & bad casting Pin
Power Puff Boy27-Jul-15 20:48
Power Puff Boy27-Jul-15 20:48 
GeneralRe: if...else if.. & bad casting Pin
Robin Imrie27-Jul-15 22:07
professionalRobin Imrie27-Jul-15 22:07 
GeneralFun with touchpads Pin
Mike Gaskey4-Jul-15 5:23
Mike Gaskey4-Jul-15 5:23 
GeneralRe: Fun with touchpads Pin
Afzaal Ahmad Zeeshan4-Jul-15 6:16
professionalAfzaal Ahmad Zeeshan4-Jul-15 6:16 
GeneralRe: Fun with touchpads Pin
PIEBALDconsult4-Jul-15 16:47
mvePIEBALDconsult4-Jul-15 16:47 
GeneralRe: Fun with touchpads Pin
Mike Gaskey5-Jul-15 11:22
Mike Gaskey5-Jul-15 11:22 
GeneralRe: Fun with touchpads Pin
Thanks78726-Jul-15 0:25
professionalThanks78726-Jul-15 0:25 
GeneralRe: Fun with touchpads Pin
Sentenryu6-Jul-15 3:44
Sentenryu6-Jul-15 3:44 
GeneralRe: Fun with touchpads Pin
Fueled By Decaff8-Jul-15 22:25
Fueled By Decaff8-Jul-15 22:25 
GeneralRe: Fun with touchpads Pin
Gary R. Wheeler18-Jul-15 6:21
Gary R. Wheeler18-Jul-15 6:21 
GeneralWhen Default is not the default Pin
kmoorevs30-Jun-15 8:06
kmoorevs30-Jun-15 8:06 
GeneralRe: When Default is not the default Pin
Richard Deeming30-Jun-15 8:16
mveRichard Deeming30-Jun-15 8:16 
GeneralRe: When Default is not the default Pin
Sander Rossel3-Jul-15 22:14
professionalSander Rossel3-Jul-15 22:14 

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.