Reputation
8,083
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 19 38
Newest
 Enlightened
Impact
~251k people reached

18h
comment What's the use of .Any() in a C# List<>?
in what way is any less clear on intent?
1d
comment How to unit test method that returns a collection while avoiding logic in the test
+1 for comming back with an update
Aug
15
comment Using 'reduce' vs 'for' loop for returning boolean
@OverlyExcessive yes i take your point - added point free haskell version - as f# doesnt appeat to have away to do this without changing the operator i'd argue that it hurts readability there
Aug
15
revised Using 'reduce' vs 'for' loop for returning boolean
added 95 characters in body
Aug
15
comment Using 'reduce' vs 'for' loop for returning boolean
@OverlyExcessive i dont think that will do what you think it will, that will bind the first argument of > to 5 i.e. you will be checking 5 > x
Aug
15
answered Using 'reduce' vs 'for' loop for returning boolean
Aug
10
comment How to smooth out a diagram?
yes there is loads of them en.wikipedia.org/wiki/Smoothing
Aug
9
awarded  Enlightened
Aug
9
awarded  Nice Answer
Jul
28
comment Origin of “a method should return a value or have side-effects, but not both”
the comment and code do not match, BarWithSideEffects is not called if FooWithSideEffects returns false
Jul
27
comment Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?
yep so you will need to do some sort of fold applying <|> at each stage which is I beleive what Thomas' answer does
Jul
27
comment Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?
i.e. monoid for lists is the empty list and concat
Jul
27
comment Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?
@JimmyHoffa it will depend on the typclass Maybe <|> will be different to List <|> no ?
Jul
22
comment How to show retry in sequence diagram
+1 it has always amused me that about the same time that software people were deciding graphical programming was the future, hardware people were deciding that graphical design didn't scale and they needed HDLs
Jul
15
awarded  Great Answer
Jul
13
comment Why are return values from compare functions in many languages defined loosely?
My suspicion is this is all ultimately inherited from C, hence prevalent in languages that have some C heritage but not in others. Considering C it makes the simple implementation arguments present below look right as overflow is UB in C anyway
Jul
13
comment Is there any programming language(s) which has mathematical number types?
one problem here is that FORTRAN REAL is not a Real number but floating point, so there is very little FORTRAN does here than any other programming language
Jul
10
comment Source code “prints” at release
@JanHudec you could argue that people that build release packs by hand don't understand software either ;)
Jun
16
comment Is the semantic contract of an interface (OOP) more informative than a function signature (FP)?
@9000 well most FP languages dont have typeclasses but yes there is some relation there
Jun
9
answered Find a line that is closest to scattered points