Fork me on GitHub
#luminus
<
2016-09-07
>
yogthos00:09:56

@eslachance shouldn’t that be db/save-message! in the screenshot?

eslachance00:09:36

I copy/pasted directly from the guide. The issue was the order of the code

yogthos00:09:58

ah yeah that’s important 🙂

yogthos00:09:17

Clojure uses a single pass compiler, so you do have to make sure stuff is defined in order

eslachance00:09:32

I've been doing a whole lot of coding with node.js with event handlers that don't require any sort of order. 🙂

yogthos00:09:16

easy to forget about 🙂

yogthos00:09:45

I find that a nice side effect of this is that it enforces a common structure on namespaces

yogthos00:09:59

the top level functions are always at the bottom, and things get more specific as you go up

yogthos00:09:31

so whenever you’re looking through some new code, you can always scroll down and work your way up without having to jump around the file all the time to figure out what’s happening

eslachance00:09:45

Oh yeah it's actually fine, it's just something one needs to get used to I guess - compared to JS specifically I mean.