465 reputation
210
bio website
location
age
visits member for 3 years, 9 months
seen Sep 12 at 16:09

Jun
19
comment How old is “too old”?
We hate fun here apparently. Shame on you for joking!
Mar
22
accepted Data structures in functional programming
Mar
20
asked Data structures in functional programming
Feb
24
awarded  Yearling
Feb
17
awarded  Student
Feb
16
awarded  Scholar
Feb
16
awarded  Commentator
Feb
16
accepted Using the decorator pattern in a deep class hierarchy
Feb
16
comment Using the decorator pattern in a deep class hierarchy
Looks like I didn't remember the pattern correctly. You're right: they must implement the same interface, not inherit from one another!
Feb
16
asked Using the decorator pattern in a deep class hierarchy
Jan
11
comment Algorithm to determine fastest route?
An admissible heuristic would be somewhat challenging to find here considering we seem to take into account many factors (such as traffic jams).
Nov
8
comment What language should an 11-year old start with to learn game programming?
+1, conditional on your choice being C# and not god-awful-VB.
Apr
21
answered Teaching programming, quickly to those adults that haven't programmed
Apr
19
answered What specific branches of Mathematics are useful for a programmer to learn?
Apr
19
comment Are outdated comments an urban myth?
@Karl Bielefeldt That makes a lot of sense as well.
Apr
19
comment Are outdated comments an urban myth?
The problem in this case is probably the misuse of TODOs. I believe TODOs should be only used when the code is actually functional but improvements could be made later, so TODO: implement kind of comments should not exist and the fact that no one actually came back doesn't matter that much. Sadly, not a lot of people adhere to this rule and I totally agree I'd like to see a comment like you posted in some production code at some point. It'd make my day.
Apr
15
comment Job Interview Challenges
Considering functional languages avoid side effects, I think this solution wouldn't work in any of them.
Apr
15
answered Is a genetic algorithm a correct approach to this problem?
Apr
14
comment When is it appropriate to use a bitwise operator in a conditional expression?
After some more research, I found out that the only difference between | and || and & and && for boolean operands in Java is the short circuit behavior so the scenario you're describing isn't really possible.
Apr
14
comment When is it appropriate to use a bitwise operator in a conditional expression?
I don't think this can happen in Java as I believe calling the | or & operators on values that can't be bitwise and'd or or'd just performs a logical | or &. I can't recall if this is the case in Java, but know for sure it is in C# MSDN: "Binary | operators are predefined for the integral types and bool. For integral types, | computes the bitwise OR of its operands. For bool operands, | computes the logical OR of its operands"