Click here to Skip to main content
12,696,920 members (29,048 online)

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: Over-documentation Pin
OriginalGriff17-Nov-13 6:42
protectorOriginalGriff17-Nov-13 6:42 
GeneralRe: Over-documentation Pin
Max Methot28-Nov-13 6:01
memberMax Methot28-Nov-13 6:01 
GeneralRe: Over-documentation Pin
PIEBALDconsult28-Nov-13 6:45
professionalPIEBALDconsult28-Nov-13 6:45 
GeneralRe: Over-documentation Pin
Sander Rossel17-Nov-13 1:09
memberSander Rossel17-Nov-13 1:09 
GeneralRe: Over-documentation Pin
Ron Beyer17-Nov-13 6:21
professionalRon Beyer17-Nov-13 6:21 
GeneralRe: Over-documentation Pin
Sander Rossel17-Nov-13 7:54
memberSander Rossel17-Nov-13 7:54 
GeneralRe: Over-documentation Pin
ENOTTY18-Nov-13 6:24
memberENOTTY18-Nov-13 6:24 
GeneralRe: Over-documentation Pin
Ron Beyer18-Nov-13 6:41
professionalRon Beyer18-Nov-13 6:41 
Some LINQ queries are more like when people first discover the ? : conditional operator and you start seeing nested inline conditionals like

firstvar == somevalue ? ((myvalue1 + 10) <= 4 ? : false : true) : false

Or something worse than that. Your query above could be refactored to be much more clear, therefore removing the need for concise comments. If the above were broken down into individual lines (instead of using a new line and the "."), along with not inline defining the function, it would be easy to understand, and even easier to debug.

This is where my problem with "fluent" language extensions come in, while fluent reads more like English, the formatting/extras required to get it to look that way generally obscures the intent.
GeneralRe: Over-documentation Pin
d@nish 17-Nov-13 7:20
member d@nish 17-Nov-13 7:20 
GeneralRe: Over-documentation Pin
Ron Beyer17-Nov-13 7:55
professionalRon Beyer17-Nov-13 7:55 
GeneralRe: Over-documentation Pin
Bernhard Hiller18-Nov-13 0:01
professionalBernhard Hiller18-Nov-13 0:01 
GeneralRe: Over-documentation Pin
ENOTTY18-Nov-13 6:05
memberENOTTY18-Nov-13 6:05 
GeneralRe: Over-documentation Pin
CPallini18-Nov-13 8:39
mvpCPallini18-Nov-13 8:39 
GeneralRe: Over-documentation Pin
Marc Clifton19-Nov-13 9:24
protectorMarc Clifton19-Nov-13 9:24 
GeneralRe: Over-documentation Pin
Stewart Judson20-Nov-13 1:49
memberStewart Judson20-Nov-13 1:49 
GeneralRe: Over-documentation Pin
Ron Beyer20-Nov-13 4:08
professionalRon Beyer20-Nov-13 4:08 
GeneralRe: Over-documentation Pin
s_mon25-Nov-13 10:56
members_mon25-Nov-13 10:56 
GeneralRe: Over-documentation Pin
Rob Grainger28-Nov-13 23:26
memberRob Grainger28-Nov-13 23:26 
GeneralRe: Over-documentation Pin
Vasudevan Deepak Kumar29-Nov-13 2:54
memberVasudevan Deepak Kumar29-Nov-13 2:54 
GeneralAbsolutely necessary Pin
imagiro16-Dec-13 0:00
memberimagiro16-Dec-13 0:00 
GeneralRe: Over-documentation Pin
Jacek Gajek27-Dec-13 2:05
memberJacek Gajek27-Dec-13 2:05 
GeneralVS Go BOOM! Pin
Brisingr Aerowing15-Nov-13 13:54
professionalBrisingr Aerowing15-Nov-13 13:54 
GeneralRe: VS Go BOOM! Pin
DaveAuld15-Nov-13 21:38
protectorDaveAuld15-Nov-13 21:38 
GeneralRe: VS Go BOOM! Pin
devvvy16-Nov-13 23:51
memberdevvvy16-Nov-13 23:51 
GeneralRe: VS Go BOOM! Pin
Im_no_troll18-Dec-13 11:19
memberIm_no_troll18-Dec-13 11:19 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 20 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid