4 ms·
Do you reccomened Clojure over Haskell to learn ?
by verymelo_ 8y ago
Do you reccomened Clojure over Haskell to learn ?
- Royalaid 8y agoMy personal experience is that most programmers either like or don't like type systems. If you don't I would highly recommend Clojure, if you do I would highly recommend Haskell.
- stingraycharles 8y agoAnd then there's this bunch of us that are not as dogmatic and appreciate both. And there's also Typed Clojure, but that might not be the best experience starting out.
- shaunxcode 8y agoLearn both. If you have no functional programming experience then learning clojure first should help you get comfortable with higher order functions and other functional paradigms before diving into the type theory side of things with Haskell.
- sdegutis 8y agoI wrote a little comparison of Haskell and Clojure a few years ago here: https://sdegutis.com/blog/2015-02-10-haskell https://sdegutis.com/blog/2015-02-10-haskell And some of the cons of Haskell in that article may be addressed by these extensions: https://sdegutis.com/blog/2015-03-17-haskell-extensions https://sdegutis.com/blog/2015-03-17-haskell-extensions
- moocowtruck 8y ago>Compared to Clojure Rich borrowed almost all of Clojure’s standard library from Haskell. Destructuring in Clojure also looks like it came directly from Haskell. wat? is this really true?
- preordained 8y agoAnecdotally...I'd say "hell no". I programmed in Haskell before Clojure, and starting out I was never like "this is dynamic Hasell!!" or something. The standard library never gave me Haskell vibes whatsoever. Functional programming? Sure. I don't think anyone has the market cornered on "map" or "filter".
- nocman 8y agoUm, destructuring is a very old concept in Lisp circles. http://www.lispworks.com/documentation/lw50/CLHS/Body/m_destru.htm#destructuring-bind http://www.lispworks.com/documentation/lw50/CLHS/Body/m_dest... Don't know if Rich first got the idea from Lisp or not, but it seems likely since he did a bunch of development in Common Lisp (generating C++, of all things :-D ) ages ago. I don't remember if I heard him talk about that in the "Expert to Expert" video ( https://www.youtube.com/watch?v=wASCH_gPnDw https://www.youtube.com/watch?v=wASCH_gPnDw ), or in "Simple Made Easy" ( https://www.youtube.com/watch?v=34_L7t7fD_U https://www.youtube.com/watch?v=34_L7t7fD_U ). I think it was the former, but both of those are worth watching multiple times. It's also entirely possible that it was in an entirely different video of his -- but it was him. I've yet to be disappointed in any of his talks, so if I'm wrong about the exact one, just keep watching any of his talks on YouTube till you find it. xD
- yogthos 8y agoI learned Haskell first, and I thought it was a valuable learning experience. Laziness and type driven development give you a different perspective on solving problems. That said, I find Clojure to be both simpler and more pragmatic than Haskell. It requires knowing less concepts to use effectively, it encourages interactive development, and it leverages two of the biggest ecosystems by targeting the JVM and Js environments. I would recommend learning Clojure unless you feel strongly about having pervasive static typing.
- sneakypeet 8y agoIf you come from a javascript background, clojure would probably feel more natural
- PKop 8y agoHere's a video of the creator of Clojure explaining his preference for dynamic vs static languages, and how he came to the choice of making Clojure dynamic, that may help inform your decision: https://youtu.be/2V1FtfBDsLU https://youtu.be/2V1FtfBDsLU
- SomeHacker44 8y agoI recommend Haskell over Clojure, because it will really expand and bend your mind. (I take as context your asking this question.) Then, I recommend Common Lisp over Clojure, because that has a lot of things that are uncommon even decades after standardization. Finally, for a practical, day-to-day driver language, Clojure is really good. It's a personal go-to for any server side coding I have to do. (I rarely do front end work and have no preferences there beyond Unity if it is a game.)
- jrsnyder 8y agoAs others have said, it’s a question of what you want to get from learning. Haskell primarily tries to answer the question, “What are static type systems capable of, and what new relationships can we achieve between code representation and code execution?” Clojure primarily tries to answer the question, “How can we write programs more efficiently in the (relatively) short term?”
- yen223 8y agoClojure answers the question "How far can you go if your data is just immutable maps, lists and sets?" The answer is, pretty damn far.