73,688 reputation
16122286
bio website
location
age 39
visits member for 4 years, 7 months
seen 1 hour ago

I've written software for everything from network equipment to Apache helicopters. Although I mostly program in C++ now, it was actually my seventh language I used professionally, so I like to think I can still think outside the C++ box.


15h
answered Differences in design/thought process for OO in Java and JavaScript
23h
comment What is the functional programming answer to type-based invariants?
@Ben, my point isn't that those OOP constructs don't exist. It's that every programmer must agree to use those constructs that help enforce the invariant. In FP, you make a similar agreement to use the constructors.
1d
answered What is the functional programming answer to type-based invariants?
1d
answered Does this data processing pipeline design need to be so complex?
May
18
comment How to name variables without plural in a for-each loop?
Don't feel bad. Our ways are foreign and strange to some long-timers too.
May
15
answered What makes functional programming languages declarative as opposed to Imperative?
May
15
awarded  refactoring
May
14
answered How to explain design decisions when refactoring code
May
8
answered Benefits of RTOS vs Bare Metal for MCU Programming?
May
7
comment What aspects of Haskell led to its rise in popularity among experts?
I think this might be confirmation bias. Tiobe (a decent indicator of what languages people are "talking about"), puts F#, ML, Scala, Scheme, and Erlang ahead of Haskell among functional languages.
May
6
answered Why is Haskell unable to avoid repeated evaluation without the monomorphism restriction?
May
6
answered Build odd and even hanoi tower
May
6
awarded  Nice Answer
May
4
comment Why do methods that take an unlimited amount of parameters often define overloads with fewer parameters?
In C#, you have a point, @Thomas. However, .NET also supports other languages without params.
May
4
awarded  Nice Answer
Apr
30
comment Dealing with states in a immutable approach
Yes, you can do just about everything with immutability. Whether it's a good fit depends on your point of view. On one hand, it's fairly difficult to get this kind of problem right with FP, especially for a beginner, as you've discovered. On the other hand, during the process of getting it right, you're pretty much forced to arrange your data and functions in a highly decoupled way that often lends itself to some very elegant solutions.
Apr
29
answered Dealing with states in a immutable approach
Apr
24
answered Structuring Procedural vs OO code
Apr
20
comment Problem with quicksort and python
This belongs on stack overflow, where it will probably get migrated soon. However, note that if you think the problem is in the choice of pivot, it would probably help if you actually posted your choice function.
Apr
17
answered Why do I need to map arguments to instance variables?