|
1) none of the break statements are ever hit
2) default does not require nor need break statement
3) DISENABLED is a very odd word.
those are all I got right now.
|
|
|
|
|
Not to mention that it could be written as:
return (es == CS_ENABLED)?::GetSysColorBrush(COLOR_WINDOW) : ::CreateSolidBrush(brRed);
I woke up today with a bad case of one-line syndrome
Mircea
|
|
|
|
|
Mircea Neacsu wrote: a bad case of one-line syndrome This is one case where I actually like one-line solutions, especially using the conditional operator. I have a prejudice against using it in any case that takes more than a single line, or at worst something like this:
value = condition ?
true-value :
false-value; Anything more involved than that, and I want it expressed as a complete if statement.
Software Zen: delete this;
|
|
|
|
|
Your #3 was the first thing I noticed, followed by #1. I think #2 is a matter of personal taste, as that works only when the default: case is the last one in the switch statement.
FWIW, "disenabled" grates on my nerves only slightly less than the British word "orientate". I'm a third-generation 'Murican descended from German immigrants, and I use "orient" as the verb.
Software Zen: delete this;
|
|
|
|
|
To the rest of the world (who actually speak English ), the Orient is a (somewhat dated) way to refer to the Far East. It's where oriental is derived.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
The boss just said, "we'll be doing Scrum, but with a Kanban approach" -- just shoot me now.
|
|
|
|
|
Had to look up Kanban and should probably look up Scrum too.
All this development methodology stuff is for AR OCD types.
EDIT: OMG, the name Scrumban[^] has actually been coined for this tripe. Well, at least you won't be a guinea pig!
|
|
|
|
|
|
Quote: McConnell contends that competence ultimately determines whether a project succeeds or fails, regardless of the development approach taken; furthermore, he claims that incompetent "imposter organizations" (which merely imitate the form of successful software development organizations) are in fact engaging in what he calls cargo cult software engineering.
|
|
|
|
|
Kanban is just a way to organize tasks, and not to bad either.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
Still for AR OCD types. A project needs a few, but I try to keep my distance.
|
|
|
|
|
You start and stop everything ... "just in time".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
You available for expert testimony?
There's a member of the household here taking exception to my agreement with the premise..
|
|
|
|
|
|
Very bad code[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Why don't the Dutch stick to what they do best: tulips, wooden shoes and windmills ...
|
|
|
|
|
xkcd: Random Number[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Best random generator!
|
|
|
|
|
How did I not know about r/badcode before
|
|
|
|
|
Put a Dent in Your Logfiles - The Daily WTF[^]
Shudder
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
|
Have to give Henry some credit: he IS a problem solver! Unfortunately, the problems he solves are the exact wrong ones for good products.
|
|
|
|
|
Ahh, Hump logic...Test less, and the number of reported Covid cases goes down. Problem solved.
"Go forth into the source" - Neal Morse
|
|
|
|
|
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Oh! Stop using logic in the forum!
I am not wrong. I am just different!
|
|
|
|