¯\_(ツ)_/¯
Why I Switched from Python to Clojure (2016)
21–30 of 200 posts
Re: Why I Switched from Python to Clojure (2016)
#22I have considered multiple times switching from Python to other alternatives. However, I instantly discard any language with a Lisp-like syntax. I just cannot work with it. Being a Haskell hobbyist, I would like Python to be statically type and have better support for pure functional programming, but Python has the libraries that I need.
Re: Why I Switched from Python to Clojure (2016)
#23I notice this was written in 2016, but I wonder if the author's opinion has changed since dataclasses have been implemented in Python.
The author switched to kotlin from clojure, kotlin's interop with java is leagues ahead of clojure.
Re: Why I Switched from Python to Clojure (2016)
#24Earlier quoted context omitted.
Python's async support also seems to be getting better. There's a flask clone called Quart ( http://pgjones.gitlab.io/quart/ ) and an async postgres client ( https://github.com/MagicStack/asyncpg ). It works very similar to JavaScript, with async and await keywords. I think it should provide speed and comfort especially if you're a regular JavaScript user.
I wrote a pretty substantial experiment using asyncio for 100k websocket client connections across a massive theoretical fleet of robots. It's not open source but the general result was that I used to hate async in Python and now I love it. The syntax makes blending sync and async easy. And the cooperative multitasking paradigm is very easy to reason about. No locks!
Re: Why I Switched from Python to Clojure (2016)
#25I notice this was written in 2016, but I wonder if the author's opinion has changed since dataclasses have been implemented in Python.
The author switched to kotlin from clojure, kotlin's interop with java is leagues ahead of clojure.
Re: Why I Switched from Python to Clojure (2016)
#26Earlier quoted context omitted.
Just think of the parenthesis as loving warm homoiconic hugs.
Hehe, when teaching my 8yr-old programming (in Python) I call (function call) parenthesis a hug to explain that a function "hugs" all arguments to it. She seems to get that :).
Re: Why I Switched from Python to Clojure (2016)
#27I don't have a horse in this race but I find it interesting that in my career I've seen a lot of bad code but the worst clusterfucks I've met where all in Clojure while the community seems to be chock full of purists and in general people that takes craftmanship seriously at least at face value. ¯\_(ツ)_/¯
The high probability that clojure was someone's first functional language could also contribute to the problem.
Your thoughts?
Re: Why I Switched from Python to Clojure (2016)
#28I have considered multiple times switching from Python to other alternatives. However, I instantly discard any language with a Lisp-like syntax. I just cannot work with it. Being a Haskell hobbyist, I would like Python to be statically type and have better support for pure functional programming, but Python has the libraries that I need.
> I just cannot work with it. Can't or won't? I'm not being facetious, here. I just can't imagine any reason one _couldn't_ work with it, once the syntax is learnt. There's nothing about lisp-like syntax that's inherently hard to learn. Why is lisp special?
Once the brain grasps this, a whole layer of complexity just vanishes. Furthermore, not having to use punctuation between items is just heavenly. There's so much less noise compared to Python, and Python isn't even a particularly noisy language.
Re: Why I Switched from Python to Clojure (2016)
#29I have considered multiple times switching from Python to other alternatives. However, I instantly discard any language with a Lisp-like syntax. I just cannot work with it. Being a Haskell hobbyist, I would like Python to be statically type and have better support for pure functional programming, but Python has the libraries that I need.
I haven't got much experience with Lisp, but I can imagine that, similarly to Python's significant indentation, it's a shallow weirdness that can be overcome easily after a little while. In both cases a little help from the editor will probably be needed.
Plus, many editors without any plugins can jump between matching braces; so moving around the code is very quick compared to Python (unless you have a Python plugin that has block movement shortcuts).
Re: Why I Switched from Python to Clojure (2016)
#30I have considered multiple times switching from Python to other alternatives. However, I instantly discard any language with a Lisp-like syntax. I just cannot work with it. Being a Haskell hobbyist, I would like Python to be statically type and have better support for pure functional programming, but Python has the libraries that I need.