Click here to Skip to main content
15,886,919 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: Boolean Variable Name Pin
killabyte11-Jul-08 14:08
killabyte11-Jul-08 14:08 
GeneralRe: Boolean Variable Name Pin
supercat914-Jul-08 6:13
supercat914-Jul-08 6:13 
GeneralRe: Boolean Variable Name Pin
CDP180221-Jul-08 2:00
CDP180221-Jul-08 2:00 
GeneralRe: Boolean Variable Name Pin
killabyte21-Jul-08 19:28
killabyte21-Jul-08 19:28 
GeneralRe: Boolean Variable Name Pin
Paul Conrad12-Jul-08 7:18
professionalPaul Conrad12-Jul-08 7:18 
GeneralRe: Boolean Variable Name Pin
Lutosław16-Jul-08 11:29
Lutosław16-Jul-08 11:29 
GeneralRe: Boolean Variable Name Pin
CDP180221-Jul-08 2:07
CDP180221-Jul-08 2:07 
GeneralRe: Boolean Variable Name Pin
Lutosław21-Jul-08 6:48
Lutosław21-Jul-08 6:48 
Yes and I add such extra pieces to enumerations too. However, in the situation I mentioned there are a lot of various flags and the additional enum member would look sth like
CHANGED_AND_VALIDATED_AND_FLAG3_AND_FLAG5_AND_FLAG11_AND_FLAG12_AND_.... = some code

I have nothing against long names in programming but if a name of one of constants starts taking more than 10% of a whole method content then something is going wrong I think.
Although 0x0301 contains just three flags, it's very simple to determine which flags are used (x0100, x0200 and x0001), therefore there is nothing bad in ecode boolean names.

Greetings - Gajatko

Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

GeneralRe: Boolean Variable Name Pin
CDP180223-Jul-08 4:09
CDP180223-Jul-08 4:09 
GeneralRe: Boolean Variable Name Pin
Lutosław23-Jul-08 4:48
Lutosław23-Jul-08 4:48 
GeneralRe: Boolean Variable Name Pin
CDP180223-Jul-08 4:53
CDP180223-Jul-08 4:53 
GeneralIt's horrible Pin
jamie5509-Jul-08 18:44
jamie5509-Jul-08 18:44 
GeneralRe: It's horrible Pin
Paul Conrad9-Jul-08 18:55
professionalPaul Conrad9-Jul-08 18:55 
GeneralRe: It's horrible Pin
_Damian S_9-Jul-08 19:14
professional_Damian S_9-Jul-08 19:14 
JokeRe: It's horrible Pin
Paul Conrad10-Jul-08 16:39
professionalPaul Conrad10-Jul-08 16:39 
GeneralRe: It's horrible Pin
PIEBALDconsult10-Jul-08 3:58
mvePIEBALDconsult10-Jul-08 3:58 
GeneralRe: It's horrible Pin
jamie55010-Jul-08 4:18
jamie55010-Jul-08 4:18 
GeneralRe: It's horrible Pin
snorkie10-Jul-08 4:54
professionalsnorkie10-Jul-08 4:54 
GeneralRe: It's horrible Pin
jamie55010-Jul-08 4:57
jamie55010-Jul-08 4:57 
GeneralRe: It's horrible Pin
BillW332-Sep-08 11:22
professionalBillW332-Sep-08 11:22 
GeneralRe: It's horrible Pin
Dan Neely10-Jul-08 5:43
Dan Neely10-Jul-08 5:43 
GeneralRe: It's horrible Pin
BadKarma10-Jul-08 21:20
BadKarma10-Jul-08 21:20 
GeneralRe: It's horrible Pin
Dan Neely11-Jul-08 4:22
Dan Neely11-Jul-08 4:22 
GeneralRe: It's horrible Pin
Rage11-Jul-08 4:59
professionalRage11-Jul-08 4:59 
GeneralRe: It's horrible Pin
Philippe Lhoste11-Jul-08 11:08
Philippe Lhoste11-Jul-08 11:08 

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.