85,194 reputation
19194342
bio website
location Lancaster, CA
age
visits member for 4 years, 2 months
seen 51 mins ago

enter image description here


Dec
9
comment How many bugs to expect
Color me crazy, but I find the whole idea of estimating the number of code defects a bit misguided. Sure, you can get some anecdotal idea of the quality of your code by counting the number of defects, but why not review the code to reduce the number of defects you get in the first place? Counting defects also doesn't speak at all to the severity of each defect; a single catastrophic defect trumps any effort to count them.
Dec
9
comment Is there a special name for a condition which will break a loop if it increments a set number of times
@Frustrated I upvoted your answer.
Dec
9
comment Is there a special name for a condition which will break a loop if it increments a set number of times
Aren't guards usually in a separate if statement, or at least separated by an else clause?
Dec
9
comment Is there a special name for a condition which will break a loop if it increments a set number of times
The 50 is a magic number. Normally, instead of "hardcoding" a stop value there, you would define a constant at the top of your script, such as MAX_VALUE, and say for (var i = 0; i < len && i < MAX_VALUE; i++) But, your mileage may vary; if this is just a small bit of Javascript, it may not matter. My point is that the "hard coding" aspect of this is not particularly significant.
Dec
9
comment Is there a special name for a condition which will break a loop if it increments a set number of times
@thomas: I'm not totally comfortable with "magic numbers" like the one in your if. Generally, you would define a constant somewhere, like MAX_VALUE, and use the constant for the condition instead of the magic number.
Dec
9
answered Is there a special name for a condition which will break a loop if it increments a set number of times
Dec
8
comment MVP pattern and references
What you say about ViewModels is true. Don't know about the generic views, though; I've never heard of anyone actually genericizing views in this fashion, except for simple key/value administration. I'd love to see an example, or a link to one. There's no such thing as complete decoupling; the View always knows something about the model, even if that knowledge percolates through three layers of architecture. Otherwise the view wouldn't mean anything to the user.
Dec
8
awarded  Nice Answer
Dec
8
reviewed Close How do I evaluate an IDE?
Dec
8
reviewed Close Variable names: underscores, no underscores, or camel case?
Dec
8
reviewed Close Progressing past CRUD applications in PHP?
Dec
8
reviewed Close Keep indentation level low
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
added 8 characters in body
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
added 85 characters in body
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
added 8 characters in body
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
added 2 characters in body
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
added 128 characters in body
Dec
8
answered Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
Dec
8
comment Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
See meta.stackexchange.com/questions/210669/….
Dec
8
revised Why does Mono for Android cost money if the mono project is opensource and therefore everything based on it must be opensource?
deleted 130 characters in body