r/backtickbot • • Feb 01 '21

https://np.reddit.com/r/Clojure/comments/l9dx1j/stop_selling_clojure_as_just_a_learning_experience/glnebl0/

By losing time, I mean that I was seeing everywhere that I could solve all the problems much easier if I could use Clojure instead of C++. The same thing was mentioned by Rich in one of his talks.

In general, once you get used to a better tool, it is really hard to work without it. For instance, I got so used to hot code reloading in Figwheel/Shadow-cljs for Reagent apps, that I had to develop my own library Volcano for hot code reloading of static web. When I was coding C++ 20 years ago, I had no problem to restart the app after each code change and manipulate it back into the state I needed. And Clojure makes a lot of things way better (transparent data over objects, REPL driven development, ...).

Haven't used cpp20 since I was forced to use cpp11 (as the entire Google). I looked at Lambdas there with all the types, etc., and they seemed like a lot of extra work which would make the code less readable. Totally uncomparable to ease of

(->> (range 10)
     (map inc)
     (filter odd?)
     (reduce +))

The key problem with other languages is that one has to put too much focus on unimportant stuff like types, passing references vs. consts, building objects, ... I don't want to lose my time with these things, I want to put as much focus on the problems I am trying to solve. The feeling is that in Clojure, I am solving my problems 90% of time, with the rest being spent on the browser, JS libraries, etc. In C++, I only could spend 10% of my time solving the real problems. That's almost 10x advantage.

1 Upvotes

0 comments sorted by