Click here to Skip to main content
15,390,952 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
MemberRob Grainger21-Jul-15 6:07 
GeneralComedy code comment misdirection PinPopular
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
mvephil.o8-Jul-15 9:00 
JokeRe: Comedy code comment misdirection Pin
kmoorevs9-Jul-15 11:01
Memberkmoorevs9-Jul-15 11:01 
JokeRe: Comedy code comment misdirection Pin
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
MemberPower 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
MemberPower 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
MemberMike Gaskey4-Jul-15 5:23 
GeneralRe: Fun with touchpads Pin
Afzaal Ahmad Zeeshan4-Jul-15 6:16
mveAfzaal Ahmad Zeeshan4-Jul-15 6:16 
GeneralRe: Fun with touchpads Pin
PIEBALDconsult4-Jul-15 16:47
professionalPIEBALDconsult4-Jul-15 16:47 
GeneralRe: Fun with touchpads Pin
Mike Gaskey5-Jul-15 11:22
MemberMike 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
MemberSentenryu6-Jul-15 3:44 
GeneralRe: Fun with touchpads Pin
Fueled By Decaff8-Jul-15 22:25
MemberFueled By Decaff8-Jul-15 22:25 
GeneralRe: Fun with touchpads Pin
Gary R. Wheeler18-Jul-15 6:21
MemberGary R. Wheeler18-Jul-15 6:21 
GeneralWhen Default is not the default Pin
kmoorevs30-Jun-15 8:06
Memberkmoorevs30-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.