Reputation
1,220
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 11 23
Impact
~23k people reached

  • 0 posts edited
  • 0 helpful flags
  • 43 votes cast
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
Also, instead of using Clojure for everything, even things that are expressed more cleanly in more traditional OO syntax, how about using Clojure for the data processing bits where it is cleaner, and using Java or some other OO language for the other bits. Polyglot programming instead of multiparadigm programming with the same language for all parts of the program. (Sort of like how most web applications use SQL and OO for different layers.) ?
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
I've heard the phrase "OO in the large, FP in the small" somewhere -- I think Michael Feathers quoted it. Meaning, that FP may be good for particular parts of a big program, but in general, it should be OO.
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
@mikera Thanks for the code example. So players (and their points, positions, etc.) are just dumb data structures nested in a big game state data structure? Doesn't that reduce the encapsulation between players and their behavior and other moving parts of the game?
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
I'm not sure your opening assertion is true. The root of "most" of the complexities? In the programming I've done or seen, the problem is not so much mutable state as a lack of abstraction and an overabundance of detail through the code.
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
The link for the Stuart Halloway quote: thinkrelevance.com/blog/2009/08/12/…
Jan
12
comment How would Functional Programming proponents answer this statement in Code Complete?
Yes, you're right. I did assume that Functional Programming favors reusable functions operating on the same simple data structures (lists, trees, maps) over and over & actually claims that this is a selling point over OO. See Stuart Halloway (a Clojure FP proponent) here saying that "the over-specification of data types" is "negative consequence of idiomatic OO style" and favoring conceptualizing an AddressBook as a vector or map instead of a richer OO object with other (non-vectorish & non-maplike) properties and methods.
Oct
14
comment Is it a betrayal of user privacy to publish server logs with IP addresses in them?
I don't have one.
Jul
27
comment How important are Haskell's advanced concepts like Monads and Applicative Functors for most routine programming tasks?
@Job yes, I'm sure it's mostly a matter of taste and familiarity. To each his/her own! :)
Jul
27
comment How important are Haskell's advanced concepts like Monads and Applicative Functors for most routine programming tasks?
Thanks for the advice @Job. I have tried Clojure for a bit, but the Lisp syntax really does not work for me, for both reading and typing. I find Haskell's syntax more natural. I'm happy using Ruby for projects in the meantime, but I hope to start doing some practical projects in Haskell.
Jul
26
comment How important are Haskell's advanced concepts like Monads and Applicative Functors for most routine programming tasks?
Thank you! I've been wavering between Clojure and Haskell, but now I am leaning toward Haskell because of how helpful people like you have been.
Jul
26
comment How important are Haskell's advanced concepts like Monads and Applicative Functors for most routine programming tasks?
Thanks for that encouraging answer. I'll march forward
Apr
29
comment If you use multiple computers, how do you sync everything?
Do you get version conflicts when you use Unison? How do you minimize them?
Apr
28
comment If you use multiple computers, how do you sync everything?
Thanks for the tips. I have 5 computers, but I use only 3 of them a lot, and I need the three. 1 Ubuntu server at home, 1 Thinkpad Ubuntu laptop (the workhorse), and 1 Macbook Pro for iOS development
Apr
28
comment If you use multiple computers, how do you sync everything?
Does anyone use CouchDB or UbuntuOne?
Apr
28
comment If you use multiple computers, how do you sync everything?
Maybe I should try network shared folders
Feb
12
comment What should a Python developer know while learning Ruby?
@Time @ccppjava OK I found it. It's called a "conditional expression" in Python.
Feb
12
comment What should a Python developer know while learning Ruby?
@Tim @ccppjava What's the name of this special kind of if statement in Python? I'm looking through the Python documentation but I can't find it.
Feb
12
comment What should a Python developer know while learning Ruby?
@ccppjava Does that all have to go on one line, or can you actually break that code up into separate lines and have it work?
Feb
11
comment What should a Python developer know while learning Ruby?
@Eimantas thanks for the catch. Fixed.
Feb
11
comment What should a Python developer know while learning Ruby?
@Tim OK thanks for correcting me. But can you do the same thing with an if/elsif/elsif/else statement -- i.e. if/elif/elif/else in Python? Can you do the same thing even if there are multiple statements inside the if or else clause?