Reputation
12,388
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 28 61
Newest
 Nice Answer
Impact
~447k people reached

Feb
3
awarded  Nice Answer
Feb
2
answered What are the drawbacks to mapping integral identifiers to enums?
Jan
26
comment Name-Based Sorting Algorithms For Maximized Common Letters
+1 for clustering.
Jan
26
comment Are there compilers which optimize the use of mathematical functions?
I'd suggest that operations that are better defined, like the whole addition / multiplication number field, could have more reordering support. It is common to reorder multiplications and divisions to avoid loss of precision. I wonder if any compilers are so advanced as to predict the range of the numbers for that, though; to me it looks (a wild speculation follows) more like a thing a JIT compiler could do.
Jan
26
comment Are there compilers which optimize the use of mathematical functions?
@NeinDochOah: sorry, missed the unsigned part. But C being what it is, b * b is actually (b * b) % (1 << (sizeof(int))), so if b * b overflows the intwhen b is does not, the semantics still change.
Jan
26
comment Are there compilers which optimize the use of mathematical functions?
Note that replacing sqrt(a) == b with a == b * b changes the semantics. For a = -1 the first program crashes, the second does not.
Jan
23
comment avoid nan and inf in floating point multiplication and division
Reordering operations to avoid loss of precision is an old and pretty normal practice. Use your favorite search engine to learn more (e.g.).
Jan
22
comment What is the equivalent of The Little Lisper project in Haskell?
Possibly the ongoing "Write you a Haskell" work can be of some interest.
Jan
15
awarded  Nice Answer
Jan
13
comment Name-Based Sorting Algorithms For Maximized Common Letters
I don't think it's a 'sorting' algorithm, for there's no total or partial order in the 'number of common letters' relation. It looks more like clustering.
Jan
13
answered Is there a generally accepted definition of “Secondary Index” independent of DB product?
Jan
12
comment What's the best way to manage list item sort order with Drag & Drop UI?
if you have Item A with position 123 and Item C with position 124, there's no easy way to put Item B between them. One solution would be using fractional numbers (e.g. floats), but they have a limited precision, too. Sometimes you're better off doing a renumbering, normalizing intervals, and keeping things simple.
Jan
11
comment What's the best way to manage list item sort order with Drag & Drop UI?
This is a nice approach. Notice that you'll have to recalculate the whole (or a big part of) the ordering info if there's no room lest to insert an item. It would be a rare enough event to put up with.
Jan
7
comment Linking stylesheets and scripts when using server side includes
Frames have several problems, one of them is that a page is hard to bookmark or otherwise link to, because it will link to a frame and not the frameset. I suggest frames be left in 1990s, along with <marquee> and <blink>.
Jan
5
awarded  Excavator
Jan
5
revised Object oriented vs vector based programming
formatting
Jan
4
revised How to prevent user from requesting API method multiple times in parallel?
added 178 characters in body
Jan
4
answered How to prevent user from requesting API method multiple times in parallel?
Jan
4
revised Advantages and disadvantages of building a single page web application
added 15 characters in body
Jan
4
comment Debugging mutually recursive functions
@BartvanIngenSchenau: if a recursive function has some internal state and / or a long(ish) argument list, it becomes mentally straining to understand what is happening where after several levels of recursive calls.