Reputation
29,804
Next tag badge:
714/400 score
69/80 answers
Badges
6 67 123
Newest
 Nice Answer
Impact
~875k people reached

May
18
comment Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
This is not about machine vs. human. CPU instructions work with fixed length integers; they are irrelevant to this question, which is really about working with arbitrary length numbers. And there have been substantial advances in multiplication algorithms as late as 2007.
May
18
answered Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
May
18
comment Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
I will immediately and without thinking about the technical details offer you a 100:1 bet that you cannot improve computing speed that way. Algorithms for doing arithmetic are a thoroughly researched topic. There is no chance whatsoever that you're the first person to think of implementing a well-known "manual" algorithm in software.
May
7
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: Yes, I would consider it OK, for pragmatic reasons. I don't think it's useful to be dogmatic about this. The point of decoupling in MVC is to improve maintainability by separating concerns. As long as the view's "touch" of the business logic is restricted to choosing which aspect of it to call, this separation is achieved.
May
7
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: good question, but artificially decoupling it wouldn't really achieve anything. It would make sense if the controller did more than just pass through the command. If you want to technically decouple it, you could use a map (MessageEnum -> CommandObject) and replace the if cascades with a lookup.
May
6
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: yes, exactly. Ideally, you'd find that there are other places where you need style-related behaviour or data, and can collect all this in the Style classes.
May
6
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: see update.
May
6
revised Is often using int constants as parameters in communication between objects considered bad design?
added 655 characters in body
May
6
answered Describe business logic with diagrams
May
6
answered Is often using int constants as parameters in communication between objects considered bad design?
May
1
comment Pair programming. How?
@JoshuaCarmody: that tends to make me suspicious.
Apr
29
awarded  Good Answer
Apr
29
comment How should I handle exception that *should* never be thrown?
You can avoid having to deal with the UnsupportedEncodingException by using the overloaded methods that take a Charset Object instead of a String to specify the encoding. And I actually once ran into an UnsupportedEncodingException for UTF-8. That was a long time ago, though, and it turned out the machine ran some beta release of the Java 5 JDK.
Apr
29
awarded  Nice Answer
Apr
19
awarded  Nice Answer
Apr
12
awarded  Good Answer
Apr
9
revised Dropping database in Grails is too easy. How to prevent accidental drops?
added 17 characters in body
Apr
9
answered Dropping database in Grails is too easy. How to prevent accidental drops?
Mar
31
comment How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
@ZacharyK: from the same country?
Mar
28
revised How to distribute, one virtual token to each person in this world, and make sure nobody gets more than one?
added 20 characters in body