4 ms·
The whole point of the comment was that Clojure, by and large, forces you to work one way and Python doesn't. The point of my comment is that it's not true (ex
by brokenkebab 7y ago
The whole point of the comment was that Clojure, by and large, forces you to work one way and Python doesn't.
The point of my comment is that it's not true (except in a narrow educational meaning). Your working environment (managers, colleagues, existing codebase) is what defines your limits in general, including language, approach, style, and frameworks. If your current shop can't accept your call to write more functional code in whatever language is used there, it obviously won't start developing in Clojure. It works exactly this way, not in the opposite direction. Ergo, the guy's problem was that his environment wasn't inclined to switch from OO. He couldn't say "Mates, let's use Clojure, because it will finally FORCE you to discover the beautiful world of FP", because they just want to keep doing what they were doing yesterday.
Fixed that for you.
It's not a correction, and I hope you see now what I mean.
- nanomonkey 7y agoYou have a point, but coming to a consensus within a working environment can lead to a lot of friction and politics. Sadly also software is hardly ever one working environment. In Python, the libraries are a strong feature, and each library will have different contributors. Each with their own opinion on what is the most effective programming style. Take Python's Django framework for an example, it contains both OO and functional ways of doing most things. This can be confusing for newcomers who just want to know what is the best methodology going forward. One of the key features of using a framework is it allows you to add new developers to your project and they will know how to get things done.