This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-22
Channels
- # admin-announcements (7)
- # beginners (56)
- # boot (69)
- # cider (168)
- # cljs-dev (2)
- # clojure (170)
- # clojure-austin (25)
- # clojure-beijing (3)
- # clojure-belgium (2)
- # clojure-france (3)
- # clojure-poland (17)
- # clojure-russia (115)
- # clojure-uk (40)
- # clojurebridge (3)
- # clojurescript (87)
- # cursive (9)
- # datomic (30)
- # dirac (18)
- # editors (3)
- # emacs (14)
- # hoplon (195)
- # immutant (14)
- # jobs (3)
- # jobs-discuss (4)
- # leiningen (11)
- # melbourne (5)
- # mount (42)
- # off-topic (5)
- # om (24)
- # onyx (48)
- # parinfer (53)
- # proton (1)
- # protorepl (2)
- # re-frame (3)
- # reactive (2)
- # reagent (29)
- # rum (5)
- # spacemacs (4)
- # untangled (91)
- # yada (1)
@polymeris: there is https://github.com/untangled-web/untangled which works on top of Om.next and should make implementing some functionality easier.
Hi, I’m working on my first Clojure project, a consumer of RabbitMQ messages. I’ve created the project with leiningen but I used the single core.clj file to put everything. I’m cleaning this up and creating several files (smtp.clj, mq.clj, sms.clj, …) that I load in the main core.clj. Some functions (that are not in the same files) need the same clojars (like clj-http, log, …) what is the recommended way to load those commun lib ?
This is what the (ns yourproject.core (:require [clj-http :as http] [log :as l] …))
is for
@jswart great so loading them in the core makes them available to all the files loaded with (load « … ») ?
I’m kinda following this recommendation: http://stackoverflow.com/questions/4690758/splitting-a-clojure-namespace-over-multiple-files
Hmm, I would give this a read http://www.braveclojure.com/organization/
In general @lucj06 clojure has changed enough that any comment from > 1-2 years ago is likely not a best practice. Chouser is a smart dude but in general that is not the “state of the art” in clojure.
I recommend reading all of braveclojure
to get started. It is a super fast read but super packed with knowledge.
So when you are writing the files themselves, in your editor you would do this: (one sec I’m making a big snippet to paste in)
thanks. in term of file structure do you have project/core project/smtp and project/db ?
basically src/myproject/core.clj
-> project.core
and src/myproject/db/core.clj
would be project.db.core
the NS macro just looks at the directory structure
So, I guess this has been asked many times, but I see that lists and vectors are pretty much similar - where would one favour lists over vectors?
@dharrigan: http://stackoverflow.com/questions/11504236/as-a-data-container-what-are-the-main-differences-between-vector-and-list