Reputation
8,228
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 21 38
Newest
 Guru
Impact
~311k people reached

Apr
21
comment Breaking the contract: throw exception or do nothing?
Nonnull annotations could strengthen the contract
Apr
6
comment Should temporary files be saved to /tmp or the current working directory?
+1 for putting in config
Apr
5
comment Writing a valid test case for validating XMLs
for starter separate the xml part from the file io part if you can
Apr
1
comment Accessing C methods from class A
its not a simple as counting '.'s though e.g. fluent interfaces are fine
Mar
31
comment Floating point accuracy and conversions
do you really need to store in this format or is this just about display? i.e. what value would value would you expect (9990 + 10) - 1 to be?
Mar
31
comment Why isn't Bounded a subclass of Enum in Haskell
@semicolon doubles and floats are not Real numbers (e.g. can not store PI in a double without losing some precision) so they are enumerable
Mar
30
comment What is the best way to update boolean variable in this particular scenario?
nitpick: could also use !failures.Any(), instead of Count, also ToList maybe unnecessary
Mar
30
comment How do people make libraries cross-platform?
it really depends what the library does
Mar
23
comment Best two-way compression algorithm for 32-bit numbers
base 63 and 85 are also fairly common
Mar
8
revised Iterating (mapping) recursive data type in Haskell
added 431 characters in body
Mar
8
revised Iterating (mapping) recursive data type in Haskell
added 85 characters in body
Mar
8
answered Iterating (mapping) recursive data type in Haskell
Feb
25
comment Scrum - Dealing with failed sprints and deadlines
the same problem remains under any system - note that you can pretty much replace scrum with an equivalent waterfall one and the company still goes bust
Feb
5
comment What are the drawbacks to mapping integral identifiers to enums?
i'd say you almost certainly so not want to wrap each int in a class but in a struct
Feb
3
comment Why is using an optional preferential to null-checking the variable?
you almost never want to use isPresent, you should usually be using ifPresent or map
Jan
8
awarded  Guru
Dec
17
awarded  Yearling
Dec
16
comment Workaround for implementing operations on doubly linked or circular data structures in languages with immutable data
depending on what is needed a zipper might also be useful
Dec
15
comment Does a C# event have to have an object type as its first parameter?
+1 for monkeys natch ;)
Dec
10
comment Comparison Function Returns True or False
alternatively this is called something different in other languages e.g. java 8 would call this a BiPredicate