This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (3)
- # announcements (1)
- # aws (3)
- # beginners (41)
- # boot (109)
- # braid-chat (2)
- # braveandtrue (5)
- # cider (11)
- # cljs-dev (38)
- # cljsjs (15)
- # cljsrn (5)
- # clojure (87)
- # clojure-berlin (16)
- # clojure-ireland (1)
- # clojure-japan (10)
- # clojure-madison (3)
- # clojure-nl (3)
- # clojure-poland (6)
- # clojure-russia (115)
- # clojure-sg (1)
- # clojurebridge (35)
- # clojured (8)
- # clojurescript (36)
- # core-async (24)
- # cursive (18)
- # datavis (1)
- # datomic (27)
- # dirac (22)
- # editors (1)
- # emacs (3)
- # events (19)
- # hoplon (149)
- # ldnclj (7)
- # lein-figwheel (1)
- # luminus (1)
- # off-topic (70)
- # om (196)
- # onyx (63)
- # parinfer (155)
- # proton (36)
- # re-frame (69)
- # reagent (2)
- # ring (2)
- # ring-swagger (1)
- # slack-help (4)
- # spacemacs (9)
- # testing (11)
What is the best book recommendation following Clojure For the Brave and True, which I already have
@joshua.d.horwitz: I think Clojure Applied ( https://pragprog.com/book/vmclojeco/clojure-applied ) is really good as a second book. I also really enjoyed Web Development with Clojure (2nd edition now in beta and seems good so far https://pragprog.com/book/dswdcloj2/web-development-with-clojure-second-edition) and Clojure Reactive Programming ( https://www.packtpub.com/web-development/clojure-reactive-programming ) if either of those subjects are interesting to you. Pretty much all the Clojure books are available on on Safari books, which has a 30 day trial, so it's pretty easy to get access for a month and see which ones really resonate with you (or get a subscription longer if the rest of the service seems worthwhile). Pragmatic seems to put out really good Clojure books, Packtpub is pretty mixed in quality from what I've seen, and O'Reilly and Manning have some good books that are a bit older. Brian Marick also has a good book on Leanpub if you are coming from the OO world (https://leanpub.com/fp-oo ).
@joshua.d.horwitz: I think Joy of Clojure is a pretty unbeatable second book (although I haven't read Clojure Applied yet, and it sounds great).
It’s not commonly recommended, but nothing really clicked for me like Brian Marick’s Functional Programming for the Object-Oriented Programmer
hey @gowder- that's a good example. It's confusing in the sense that if Character referred to a Clojure namespace in which lived a single arity function called isWhitespace, your second example would work fine. But Character refers to a Java class so the implications of the same syntax are a little different, as described: http://clojure.org/reference/java_interop. In the (every? Character/isWhitespace ...) form, Character/isWhitespace is not in function position, so Clojure treats it as a "static field"- roughly equivalent to a class variable in Python, a value slot associated with the class, rather than with an instance. But it's not a static field, so when examining the Character class, Clojure can't find it. In the (every? #(Character/isWhitespace ...)) form, Character/isWhitespace is in function position, so Clojure treats it as a "static method"- a function associated with the class, rather than an instance- and that is what it is, so Clojure is able to find it when examining the Character class.
Anyway- you do have to wrap or otherwise adapt Java incantations for use in a Clojure function context.
Hi everyone. I am literally just starting my journey into the land of Clojure. I was curious as to how html is used within Clojure for web app development. Are
.html files included inside projects or is everything down with a templating engine similar to this article (https://devcenter.heroku.com/articles/clojure-web-application#html-templating-with-hiccup)?
I tried using Luminus to generate their example app and this appears to have a
/resources/templates/ folder with html files in
Is the inclusion of these template html files within Luminus something that Luminus itself makes possible or is this functionality built-in to Clojure?
No, clojure does not include any „templating“. IIRC then luminus uses the Selmer library to do html based templating: https://github.com/yogthos/Selmer
But it supports some other templating libraries too, so take this as an educated guess for your particular case.
Any recommendations for books for a Clojure noob coming from a specifically web-oriented background? Clojure Web Development Essentials, Web Development with Clojure (2nd Ed.), etc.?
@yogidevbear: try the official documentation of luminuweb,its a nice framework too
Thanks Sam, I was looking through that earlier this morning. Seems very cool. I suppose I'm really trying to wrap my head around the differences between what is Clojure specific and what is 3rd party developed library/framework stuff in the context of web app dev.
@yogidevbear: from my point of view libraries /framework are to make your work easier in accomplishing some tasks in clojure and also make development much faster. its an intresting framework,learning to use it too
I'm all for frameworks that make work easier/faster I suppose the main difference is that frameworks come and go whereas the core language features are likely to persist for longer, so striking a good balance between understanding the core language and using the most appropriate framework is important. And because I'm completely new to Clojure, I guess I'm just trying to figure out what the best approach or framework is to use that will give me the most mileage and keep me heading in the right direction.
you are so right,understanding the core language is quit important and it even makes it easier understanding how to work with a http://framework.Am also learning clojure though quit held up by work stuff,and as for luminusweb its great.
Yes, coming from a ColdFusion background at the moment. Before that I did .NET (back in the days of webforms - shudder)
I really like it. I think it gets a lot of flack from the newer "cool kids", but truthfully I quite enjoy coding with it.
haha.the cool kids are quit a number and seem to be taking over in web development
@yogidevbear: if you’re new to clojure, I would recommend taking a couple of days learning some clojure before getting into the web development. This course https://iloveponies.github.io/ is good, starting from the basics.
If I use
(java.util.Date.), I get a java.util.Date object which looks like
#inst "2016-02-17T20:28:02.815-00:00". I just want the date part as a string, but
take doesn't work on that object and
str changes the formatting completely. How do I just get the date?
I see mentions of packages like clj-time online but that seems like overkill to just get the date.
@arijun: if you don't want to use
clj-time, I think you could cobble together a solution using
Another option is, and especially if the library is well-designed, to simply take the functions you need and incorporate them directly. Most libraries have generous licenses; just make sure you credit the original authors in the comments and so forth as required.
@akiva: not sure that would work in this case since it looks like clj-time is built on top of a java library (joda).