667 reputation
511
bio website
location
age 41
visits member for 4 years, 1 month
seen Dec 3 at 12:59

Nov
8
awarded  Yearling
Oct
2
comment Why is cleverness considered harmful in programming by some people?
No objection to that :)
Oct
1
comment Why is cleverness considered harmful in programming by some people?
Depends on whcich dictionary you thumb, I guess. In my experience, any "clever" code - easy to udnerstand or not - still exploits a fortunate conjunction in the spec. Even if it's obvious, it should be marked if such an assumption may change and shouldn't leak to different parts of the code.
Oct
1
awarded  Good Answer
Nov
8
awarded  Yearling
Sep
25
comment Why are exceptions considered better than explicit error testing?
@Lie Ryan: I see most degradation problems with code that needs to throw. Calling code often needs to translate exceptions every 2..3 call levels, but that's a minor issue. ---- The key point of that particular GOTW is that you can't make T pop()exception neutral if T's copy constructor throws (even if implemented correctly).
Sep
25
comment Why are exceptions considered better than explicit error testing?
@LieRyan: IMO you put that very well - though from my experience I'd say the degradation is more common. I think the fundamental problem here is that exceptions vs. error code is a decision made very early, and significantly affects API's (even when using a global instead of return values - see the GOTW example).
Sep
25
comment Why are exceptions considered better than explicit error testing?
@Lie Ryan: The "cleaner code and better error handling" is largely a false promise, it's a tradeoff. It looks amazing in a few sample scenarios, but in practice degrades to something that is close to well-planned error-code-based implementation. So yes, it gives you the option, but the advantage isn't as large as often made out to be.
Sep
25
comment Style bits vs. Separate bool's
Thanks - The C++ 0x solution looks darn nice, though i have to delve deeper...
Sep
25
answered Why are exceptions considered better than explicit error testing?
Sep
25
comment Why are exceptions considered better than explicit error testing?
Mandatory Raymond Chen link: blogs.msdn.com/b/oldnewthing/archive/2005/01/14/352949.aspx
Sep
25
asked Style bits vs. Separate bool's
Jun
8
awarded  Caucus
Feb
16
awarded  Popular Question
Feb
15
comment Why are regular expressions so morbidly attractive?
@Ben Lee: I guess so - OTOH, I've never encountered a commented regex in the wild. Some of the problems with regexes may be based on an attitude of coolness.
Nov
8
awarded  Yearling
Aug
28
asked How do you deal with errors in enumeration / list processing (lowish-level API)
Aug
19
awarded  Good Question
Aug
10
comment Managing manual test protocols
I'd file that under "Markdown to HTML". Viable approach, but seems to lack a bit "infrastructure" to get up to speed quickly. (Such as interactively browsing tests and selecting them in a test run)
Aug
10
revised Managing manual test protocols
added example