8,609 reputation
11021
bio website
location Mid-Atlantic NorthAm
age 53
visits member for 4 years, 7 months
seen 2 days ago

Software by day, hardware by night, beer on the weekends.


Mar
21
comment Is better Show() + Hide() or SetVisible(bool visible)?
SetVisible() doesn't suggest (to me) that you are actually displaying anything. It reads more like you're setting the visibility property of an object, possibly leaving it up to a corresponding Refresh() or Redisplay() method to check the value of this property to determine if the object should be displayed or hidden.
Mar
12
answered When to pay for C++ compilers
Mar
12
answered Design for creating a menu based on user type
Mar
12
answered About protection for important actions on the server
Feb
28
comment Why is my page load time so closely correlated with number of database queries?
Even with a local database, you're still probably connecting over a TCP socket. So every query you make has to be sent over the (virtual) wire, and the results sent back. It still gets serialized into and out of network buffers, so you still have that overhead. Smaller data volumes will only affect the query execution time, not the transmission time.
Feb
7
comment Is it ever justifiable to write code without tests when doing TDD?
I never write tests for simple getters and setters, because if they're not working there's not much I can do about it anyway!
Jan
10
answered Is there any specific reason to use “else if” clause?
Dec
20
answered eCommerce use case: removing a product
Dec
6
comment Keep indentation level low
With good names, adding local functions can actually improve readability. At least, I find it easier to understand isReadyToGo(thing) than (thing.hasA() && thing.canB() && !thing.isC() && ...).
Dec
5
comment Emulation of MMU accessing the contents of the registers
If the CPU's responsible for managing the registers, wouldn't it make sense to ask the CPU for the register contents?
Nov
25
comment Initializing a variable as undefined
Not that I'm aware of. Whenever I've seen this, it was always done because it was required by a coding standard.
Nov
21
answered How to scope code base health when interviewing for new a company?
Nov
20
comment Static factory vs factory as a singleton
@bstempi: Fair enough, I withdraw my objection (although I'll leave the comment to prevent confusion).
Nov
20
comment Static factory vs factory as a singleton
Shouldn't your singleton factory have a private constructor and a getInstance() method? Sorry, incorrigible nit-picker!
Nov
20
answered Initializing a variable as undefined
Nov
5
comment Design pattern: static function call with input/output containers?
Makes it kind of hard to do any method overloading, doesn't it?
Oct
16
awarded  Nice Answer
Oct
16
comment Are there any SQL servers that support compiled queries?
IIRC, DB2 actually does compile queries into executable statements. It even does this for queries entered interactively.
Oct
16
answered What to call requirements that are “assumed”/“invisible”/“very obvious”
Oct
10
comment Where in computer science education does “reuse and integration” find comprehensive coverage?
@RobertHarvey: Like I said, survey the software engineering courses. Unfortunately, it appears that Coursera is not very rigorous with their classification system (at least, I wouldn't put Sedgewick's Algorithms in the same category as An Introduction to Programming for Musicians and Digital Artists, but maybe that's just me). I didn't really see anything appropriate to OP's question in their catalog,