577 reputation
27
bio website
location Utrecht, Netherlands
age
visits member for 2 years, 9 months
seen 16 hours ago

Dec
2
awarded  Nice Answer
Apr
6
comment Zero behavior objects in OOP - my design dilemma
+1 for why "it's not equal to having global functions." This hasn't been much addressed by others. (Although if you have several decks, a global function would still return different values for distinct instances of the same card).
Apr
6
comment Zero behavior objects in OOP - my design dilemma
@immibis, it's silly I agree, but it's a sequence, not (any) function. You can ask for the next number, the n'th number, or for the number at a particular index or indices. And while the values are fixed, how you calculate them is an implementation detail.
Mar
10
awarded  Yearling
Feb
27
comment What should I do when I've already waited too long between commits?
What version control program are you using? Many have modules that allow you to break up your edits in "hunks", i.e. groups of modified lines, which would allow you to group your edits any way you like and distribute one file's mods to several changesets. E.g., mercurial has the "shelve" extension. Of course you should still check whether each batch of changes compiles, if that matters to your process. Whether it's all worth the trouble is up to you and your shop.
Feb
17
comment How to manage accidental complexity in software projects
"Cannot be taught" and "cannot be learned" are very different things, hence the objections... Apparently the point is that it can't really be taught, but can most certainly be learned?
Jan
21
comment Should I convert the whole project to UTF-8?
Glad to hear it turned out to be so straightforward! (I still think my advice was appropriate, in general: Consider the costs and benefits of conversion, and compare them to the alternatives.)
Jan
20
comment Should I convert the whole project to UTF-8?
These languages are still well-supported by the ISO-8859 family, as long as you only need one encoding per site. ISO-8859-5 is Cyrillic, ISO-8859-4 covers the Baltic languages along with Scandinavian, etc. The main thing utf-8 gains you is the ability to easily have multiple languages on the same site (not counting English/ASCII, which all include). But if the conversion to UTF is going well, it's a superior approach. No question there.
Jan
20
comment Should I convert the whole project to UTF-8?
That's good to hear, then my point is moot :-)
Jan
20
comment Should I convert the whole project to UTF-8?
It needs to be customizable to different countries, not to support them on one site. A multilingual site is a different animal, as I clearly say in my answer (which you should read more carefully).
Jan
20
comment Should I convert the whole project to UTF-8?
You'd seriously recommend converting an 8-bit application to Unicode just because, say, it needs to display Polish (and maybe English, which comes for free)? I beg to differ: You'd be wasting your time. Kindly clarify why the ISO version is not "appropriate".
Jan
20
answered Should I convert the whole project to UTF-8?
Jun
2
comment How to rotate an array of bits
But a particular rotation only requires one sine and cosine call, for the required angle; for 45 degrees it's just sqrt(2)/2. The time-consuming work is elsewhere.
Jun
2
revised How to rotate an array of bits
added 650 characters in body
Jun
2
answered How to rotate an array of bits
Mar
10
awarded  Yearling
Feb
24
revised Interview puzzle on traveling on a line segment
added 132 characters in body
Feb
22
revised How to count condition coverage
deleted 6 characters in body
Feb
22
answered How to count condition coverage
Feb
22
revised Patching open source software when upgrading is not an option?
added 2 characters in body