6,257 reputation
11129
bio website
location Juneau, AK
age 46
visits member for 3 years, 4 months
seen 22 mins ago

I have three wonderful kids, two boys and a girl. My wife is a treasure.


Mar
26
awarded  Popular Question
Mar
25
reviewed Approve suggested edit on Inner workings of the IF() function - why aren't expressions evaluated?
Mar
23
comment Why did the Sun engineers decided to make Java only call by value?
@delnan: I agree with Jörg and believe you are the one using a different (and less common and useful definition). Variables are mutable in most languages, including Java, and in those languages saying that you are "mutating" a value is limited to structures that can have part of their structure changed. In this view, ints are not made of a series of bits, they are whole, distinct values ie 1 or 2, not whatever bit pattern is used to hold a specific number. And in java mutable structures have to be classes.References aka pointers, refer to locations in memory and changing that memory is CBR.
Mar
21
comment Can you use Pi as a crude random number generator?
+1 for "well known random data". If you need random data that someone can't guess, pi is not for you, if just need a bunch of random numebers for some reason, it works just fine.
Mar
21
comment how should I handle server error during ajax logout?
Generally the important part is how it affects the user, so if a cookie remains in the database, but unusable, after they logout, that's not a problem. If they logout and only have to hit refresh to be logged back in, that's a problem.
Mar
20
comment how should I handle server error during ajax logout?
If you can't verify closure, return failure -- better that the user try something and be told they've been logged out, particularly since logging out is what they just attemted to do, than someone else try something and succeed.
Mar
19
answered how should I handle server error during ajax logout?
Mar
18
comment Do Design Patterns Stifle Creativity
I don't think the two are necessarily comparable -- design patterns are not the classical solution, they are an approach to a multitude of solutions.
Mar
12
comment How to build configurable forms?
No, I mean you have to build a data structure that is capable of holding your form design. Basically Adam Zuckermans third option (although I'm not sure it would require a EAV data store).
Mar
11
answered How to build configurable forms?
Mar
5
answered Is it conventional to raise a NotImplementedError for methods whose implementation is pending, but not planned to be abstract?
Mar
5
answered Basic OOP Question for a Report
Mar
2
comment Branch twice for unique condition
@infogulch: the query optimizer should be smarter than that. See SQL Fiddle: sqlfiddle.com/#!6/d5e86/2
Feb
26
answered Branch twice for unique condition
Feb
25
awarded  Quorum
Feb
23
comment What are the advantages of pass by value?
@AdamZuckerman: does "passed in variable" mean passed in object, the variable in the calling function or the local parameter? Not knowing the difference between these is a common misunderstanding that leads to people using by ref when they shouldn't. By Ref is used to change the variable in the calling function, something that is a fairly uncommon necessity even in languages without support for returning multiple values.
Feb
22
comment What are the advantages of pass by value?
@AdamZuckerman: if you are passing by ref when you don't need to (and I am includinging performance reasons when dealing with large structures as "need to") you are doing the next programmer to work on your code a disservice, and that is assuming you understand what you are doing. It is non-standard behaviour which can introduce subtle and hard to track down bugs. It makes all of your variables globals.
Feb
21
awarded  Nice Answer
Feb
19
reviewed Close Why doesn't VB.NET allow unnamed, one-line objects to be used?
Feb
19
reviewed Close Is MongoDB the right choice in my case?