3 ms·
Hey congrats! I have been using Clojure professionally for 9 years and absolutely love it. A really important concept I tell all the new Clojurists at work:
by ARandomerDude 5y ago
Hey congrats! I have been using Clojure professionally for 9 years and absolutely love it. A really important concept I tell all the new Clojurists at work:
Clojure is simple.
Nearly everything is just (function arg1 arg2 ...), even at a fundamental language level. It's actually our background experience in complex languages with all kinds of wacky syntax that makes Clojure seem hard at first. But it's very simple. So if you can't remember the syntax or why something is the way it is, step back and you'll realize it's just (function arg1 arg2 ...).
For example:
(defn add-these [x y] (+ x y))
is still just
(function arg1 arg2 arg3)
Where:
function = defn
arg1 = add-these (a symbol)
arg2 = [x y] (a vector)
arg3 = (+ x y) (an expression, which itself is just (function arg1 arg2))
You may already know all that, but regardless I hope it's encouraging because the bottom line is Clojure is easer than you think and you can do it! :-)