Re:From Rails to Clojure, Then to Java, Then Back to Rails
by cutler on Thursday March 22, 2018 @12:52AM
(#16645854)
Can you say more about this Pythonisation process? How is Python any better at immutable operations? Ruby and Python are both OO languages which can be used in a procedural style. Hell, you can write a whole app in Ruby without creating a single class if you so choose.
[ Parent
| on HN ]
Re:From Rails to Clojure, Then to Java, Then Back to Rails
by wrmsr on Thursday March 22, 2018 @10:52AM
(#16649136)
I think what they mean by 'pythonize' is ditching fluent functional style and embracing dumb imperative mutability for the sake of efficiency. Rewriting sequence compositions as stateful for-loops. Idiomatic Python is more pragmatic than Ruby in that regard, stupid=good (yet ironically Ruby's strings are mutable and Python's aren't :p).
Re:From Rails to Clojure, Then to Java, Then Back to Rails
by dogweather on Thursday March 22, 2018 @05:10AM
(#16647013)
IMO, Python is worse at immutable operations. Ruby makes it easy (but inefficient). Python makes mutable code the easy path.