Reputation
2,489
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
12 17
Newest
 Explainer
Impact
~164k people reached

Aug
26
comment How do you troubleshoot an issue that you simply can't duplicate?
Assuming cooperating users you can get away with far less recording than your B option and do multiple iterations. I've never had to go beyond three iterations except when the culprit turned out to be a memory stomp from outside the area I put my watchdogs.
Aug
20
answered Is it ok if a method returns a new instance of the class it's in?
Aug
13
answered Simplifying Some Probabilistic If-Then Spaghetti Code
Aug
13
comment Is code like this a “train wreck” (in violation of Law of Demeter)?
I don't think the Law of Dementer should even apply in a case like this--configuration is basically a container. In every API I have ever worked with looking inside containers is normal and expected behavior.
Jul
30
awarded  Explainer
Jul
30
answered Is this a valid situation for returning rather than throwing an exception?
Jul
30
revised Is this a valid situation for returning rather than throwing an exception?
"now" certainly should be "not"--this inverts the meaning of the sentence!
Jul
18
comment Is ageism in software development based on anything other than bias?
I think the last sentence plays a big part of it: The young guy can pull an all-nighter. The older worker is much harder to abuse.
Jul
18
answered Should the story points of stories created after splitting a story add up to the number of story points of that story?
Jul
13
comment Is the question “What is the using statement” a bad question to ask an interviewee?
Your guess misses the key part of using: There's an implicit try...finally in there that cleans up the item in the using. After that loop is done your TextWriter will be closed even if your loop crashes.
Jul
9
comment Why do so few large websites run a Microsoft stack?
SQL Express is free?? That depends on what you're doing with it. I just had to migrate some stuff from SQL Express to a linux box running MySQL because the program would fail to connect to the server once it went past the 20 users permitted on desktop versions of Windows.
Jul
7
comment How to debug a program after it appears to fix itself
You can get segfaults from well defined but erroneous behavior. A case from 20 years ago that sticks in my mind involved trying to store a real mode pointer into a protected mode pointer.
Jul
5
comment Is overriding Object.finalize() really bad?
And if you leave a file open it might interfere with someone else using it. (Windows 8 XPS viewer, I'm looking at you!)
Jun
20
comment Is blocking an entire web-client due to compatibility a reasonable request?
@user16764 I just got burned by a variation on this--a WebBrowser control in C#. Oops--it defaults to IE7 mode, I was attempting to write for an IE9 feature.
Jun
20
comment Should one use many small configuration files for script or a single large configuration file?
Think about it: If you use a bunch of separate files then you have no ability to search for the setting you're after and have to look in every file to find it.
Jun
18
comment FizzBuzz on Large Scale
The Sieve should not be used in modern environments as it uses too large a chunk of memory--cache misses galore.
Jun
16
comment Are #regions an antipattern or code smell?
One acceptable case for regions I've found--when you have a whole block of data embedded in your code. Who needs to look at that table with all possible permutations of a set of values?
Jun
4
comment Clean Code comments vs class documentation
I can't see any reason to document that it returns a product by ID--the name & return already tell you that. The only thing I see that needs documenting is whether it returns a null or throws if there is no such product. The Try version mentioned in the comments needs no documentation as it clearly returns false if there's no such product.
May
20
comment while(true) and loop-breaking - anti-pattern?
@supercat It's a little cleaner but I still wouldn't call that a really good answer.
May
19
comment Non-licensed source code later becomes licensed
@Brandin The lack of a stated license doesn't mean there's no license. By default it's protected.