Fork me on GitHub
#beginners
<
2016-07-05
>
mfikes00:07:18

@digorithm: For what it’s worth, I have an iOS app where the domain is students, classroom, etc., all written with ClojureScript, and pure maps all the way through 🙂

mfikes00:07:09

It is a small enough program where I can keep it all straight without much fuss. 🙂

digorithm00:07:38

That's great @mfikes! I'm starting to understand!

mfikes00:07:30

Almost every Clojure book covers this particular subject (maps vs. records). Read a few, write some code. Certainly, coming from an OO background, it is a bit of a challenge to think about trying things with only maps.

digorithm00:07:27

Okay, I'll check it out in a clojure book, thanks for the help and yes, it's quite complicated to change my OO mindset, but I'm trying hehe.

lewix02:07:04

is clojure open source?

lewix02:07:11

or does cognitect have the monopoly on the language?

richiardiandrea02:07:26

@lewix open source in the sense that you have access to the source code and are able to open issues and send PRs after having signed a Contributor Agreement -> http://dev.clojure.org/display/community/Contributor+Agreement

lewix02:07:24

I do not see the source @richiardiandrea

richiardiandrea02:07:44

Ah, ok yes the source is on github

mfikes02:07:39

@lewix: You can also see the Clojure source for any var in your REPL by typing (source var-name-here) 🙂

gowder17:07:24

So I'm super-curious about something that always sends me to the docs to remember which is which. Why is the syntax different for require on the fly in the repl as opposed to in a namespace declaration? (Quoting vs not, stored in a vector vs not etc.)

hrathod17:07:29

I think may be because ns is a macro and require is a function?

hrathod17:07:48

so don't need to quote for ns, but need to quote for require

hrathod17:07:55

I'm sure someone will correct me, though

mfikes17:07:24

@hrathod: That’s essentially right. For clarification with respect to ClojureScript specifically (if curious): ns is a special form and require is a REPL special form.