Click here to Skip to main content
15,892,059 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: Apparently there is no limit to naming conventions for method Pin
BobJanova4-May-12 2:53
BobJanova4-May-12 2:53 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Michael Kingsford Gray4-May-12 2:58
Michael Kingsford Gray4-May-12 2:58 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
User 43300284-May-12 4:17
User 43300284-May-12 4:17 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
BobJanova4-May-12 4:25
BobJanova4-May-12 4:25 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
bkebamc4-May-12 5:37
bkebamc4-May-12 5:37 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
AspDotNetDev4-May-12 6:54
protectorAspDotNetDev4-May-12 6:54 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
PIEBALDconsult4-May-12 9:07
mvePIEBALDconsult4-May-12 9:07 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Keith Barrow5-May-12 12:07
professionalKeith Barrow5-May-12 12:07 
SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue
You genuiely think this is readable? I got bored half way through, though it is 1 am where I am.
Michael K Gray wrote:
If not, then fill it in here:


Well in probability this is several methods and attributes:

C#
public void ReAddRequiredDeletedDevice()
{
  //OK this if is a punt, but if gives the idea
   if(!Device.IsDeleted && Device.IsIncluded)
   {
       //Add or whatever
   }
}

public void SetDeviceList()
{
   ReAddRequiredDeletedDevice();
   return; //Hey the one useful line of code from the OP!
}


GeneralRe: Apparently there is no limit to naming conventions for method Pin
Gary Wheeler4-May-12 3:03
Gary Wheeler4-May-12 3:03 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
musicdev4-May-12 16:18
musicdev4-May-12 16:18 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Mohibur Rashid4-May-12 16:24
professionalMohibur Rashid4-May-12 16:24 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Reza Ahmadi5-May-12 18:26
Reza Ahmadi5-May-12 18:26 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
ARopo10-May-12 5:42
ARopo10-May-12 5:42 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Florin Jurcovici5-Jun-12 23:10
Florin Jurcovici5-Jun-12 23:10 
GeneralSee the writing on the wall... PinPopular
CDP18022-May-12 22:42
CDP18022-May-12 22:42 
JokeRe: See the writing on the wall... Pin
kdgupta872-May-12 23:32
kdgupta872-May-12 23:32 
GeneralRe: See the writing on the wall... Pin
CDP18022-May-12 23:56
CDP18022-May-12 23:56 
GeneralRe: See the writing on the wall... Pin
Jeremy Hutchinson4-May-12 1:29
professionalJeremy Hutchinson4-May-12 1:29 
GeneralRe: See the writing on the wall... PinPopular
Jörgen Andersson3-May-12 0:00
professionalJörgen Andersson3-May-12 0:00 
GeneralRe: See the writing on the wall... PinPopular
CDP18023-May-12 0:17
CDP18023-May-12 0:17 
GeneralRe: See the writing on the wall... Pin
Jörgen Andersson3-May-12 0:59
professionalJörgen Andersson3-May-12 0:59 
GeneralRe: See the writing on the wall... Pin
CDP18023-May-12 2:34
CDP18023-May-12 2:34 
GeneralRe: See the writing on the wall... Pin
MythicalMe11-May-12 4:59
MythicalMe11-May-12 4:59 
GeneralRe: See the writing on the wall... Pin
Jörgen Andersson11-May-12 8:28
professionalJörgen Andersson11-May-12 8:28 
GeneralRe: See the writing on the wall... Pin
Florin Jurcovici5-Jun-12 23:02
Florin Jurcovici5-Jun-12 23:02 

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.