14,719 reputation
13460
bio website
location
age
visits member for 4 years, 7 months
seen 1 hour ago

Apr
10
comment Why server-side repository merge is a terrible idea in git?
How would that even work? SSH into the (presumably headless) server and do the merge there? What advantage does your colleague hope to gain from that?
Apr
8
awarded  Good Answer
Apr
7
comment difference between generics and interfaces
@scriptin In several languages generics can put bounds on the generic type parameters, which means that the generic can only be instantiated with types fulfilling certain constraints (such as implementing some interface). Since there's no language tag, I assume this is pseudo-code.
Apr
7
awarded  Nice Answer
Apr
7
answered How much work should I place inside a lock statement?
Mar
31
revised is a DoS attack a good analogy of Dining Philosophers?
added 188 characters in body
Mar
31
answered is a DoS attack a good analogy of Dining Philosophers?
Mar
28
comment Should I modify an algorithm I coded for my employer if I remember the code perfectly and want to reuse?
Deliberately introduce changes that improve code clarity. I'm only half-joking. Virtually everything can be made clearer and doing so puts you in a win/win situation.
Mar
22
answered How hidden classes allows faster access to properties in google's V8?
Mar
22
answered Function naming design in a C Library
Mar
20
comment How come the computer doesn't have to read the entire table when the column is indexed?
@gnat That is a rather different breed of index, for (sub)text search, while this is an ordinary data base index on the exact value of some column. The concept is related, but the algorithms and data structures are very different.
Mar
17
comment When is it a good idea to force garbage collection?
@Doval I was also including soft real time, video games are the real time systems I know most about. On a graphic-intense game, the heap will be in the gigabytes and a GC of any significant chunk of that may cause noticeable stutter. Doesn't cost lives or anything, but it's a pretty major defect for a game.
Mar
17
comment When is it a good idea to force garbage collection?
@Doval If you're under a real time constraint and the GC doesn't provide matching guarantees, you're between a rock and a hard place. It might reduce undesired pauses vs. doing nothing, but from what I've heard it's "easier" to avoid allocating in the normal course of operation.
Mar
17
comment Why did programming languages start using = for assignment?
@RobertHarvey We're talking about mathematical writing, not C programming. COME FROM: I concede that it's not as clear cut as I put it before, but since mathematical prose is based on conventions and there is no specification that can be lawyer'd to permit "let 4 = x", no, said statement is not just as valid as "let x = 4". At the very least, it confuses readers and hence fails the primary purpose of the prose.
Mar
17
awarded  Enlightened
Mar
17
awarded  Nice Answer
Mar
17
answered When and how to do a release?
Mar
17
comment Why did programming languages start using = for assignment?
@COMEFROM "Let 4 = x" is about as unnatural as the INTERCAL statement from which you take your user name. When "x" has never been mentioned before, "Let x = {something}" or "Let x be a {widget}" introduces a variable in addition to specifying its value and this puts the variable first by convention. That's precisely because, at least in terms of intuition, this is a different thing from just stating "the value equals ...".
Mar
17
comment Is this a race condition?
You're both wrong. Has neither of you ever heard of transactions?
Mar
16
comment Do enums create brittle interfaces?
Adding a new enum variant breaks code using that enum. Adding a new operation to an enum is quite self-contained on the other hand, as all cases that need to be handled are right there (contrast this with interfaces and superclasses, where adding a non-default method is a serious breaking change). It depends on the kind of changes that are really necessary.