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

Nov
24
comment What is the purpose of wrapped values in Haskell?
on the Java side, as I said Optional in a monad but as a pattern only, Java lacks the power in its type system to write a function that can operate on any monad
Nov
24
comment What is the purpose of wrapped values in Haskell?
at the very least i'd think the static/dynamic divide is a difference between them, but I don't know enough python to know if there are any other implications
Nov
24
answered What is the purpose of wrapped values in Haskell?
Nov
18
comment Should we test all our methods?
It will depend on your system to some extent, if you are developing a system with a moderate to hight level of safety certification you will need to cover all methods regardless of triviallity
Nov
6
comment Function behavior dependent on the calling class
Could you not have a callback from N to the B children?
Oct
29
comment UML: Should an asynchronous request-response message exchange be modelled as two ports/interfaces or one
I don't think this changes the edvice though, unless you are trying to produce an executable model then it only depends on what you want the diagram to show. Consider why are you producing this diagram in the first place? who is it for? what inormation do they want from it?
Oct
28
comment Should actions / methods be conjugated in comments?
the example comments here are nearly useless compare to docs.oracle.com/javase/8/docs/api/java/util/stream/…
Oct
19
comment How to write maintainable, not brittle, unit tests for a GUI?
I think this is part of the problem though, fundamentally you can't really test any interface by unit testing alone as their raison d'etre is to interface to something. GUIs are no different in this respect.
Oct
15
comment Functional programming: Compare all items in an array
ecmascript for and appears to be every
Oct
8
comment Does C# 6.0's new null-conditional operator go against the Law of Demeter?
anything more than that does not necessarily break LoD e.g. builder pattern
Sep
29
comment What is a good name for functions like 'sum', 'max', 'min'?
aggregate aka fold aka catamorphism aka reduction
Sep
9
comment How is dependency inversion related to higher-order functions?
Many functional languages also allow you to create a type that encapsulates a function as well
Sep
6
comment What's the use of .Any() in a C# List<>?
@SargeBorsch any is the same in haskell?
Sep
4
comment What's the use of .Any() in a C# List<>?
in what way is any less clear on intent?
Sep
3
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