Fork me on GitHub
#beginners
<
2016-04-04
>
bfast00:04:09

hi i am trying to use cli-tools to parse from command line can anyone tell me why this doesnt work

seancorfield01:04:54

Hi @bfast I answered in #C03S1KBA2 — didn’t see you’d posted your question in both channels.

seancorfield01:04:12

I maintain tools.cli these days so I’m happy to (try to) answer your questions.

biscuitpants19:04:27

Can anyone suggest some books around Clojure(Script) and using Om? With re-frame, there seemed to be a lot of theory in the README, so I want to see if there are any books suited for learning Om and Clojure / Functional programming theories

biscuitpants19:04:31

If that makes sense?

biscuitpants19:04:03

So less of ‘this is the Clojure syntax’, and more of ‘these are the theories and information behind functional programming / clojure'

shaun-mahood20:04:28

@biscuitpants: Are you looking more for Om resources and the theory and reasons for Om, or Clojure in general?

biscuitpants20:04:57

@shaun-mahood: well I am going to be using Om at work, so it would be great to get that too, if possible? I’ve found ‘Functional Thinking’ by O’Reilly, which seems like a good general book for FP

shaun-mahood20:04:52

@biscuitpants: Do you know if you are using Om Next or Old Om? What's your previous programming / FP / Clojure experience like?

biscuitpants20:04:32

@shaun-mahood: I come from OOP, the C# world, so not much till now. I would like to use Om Next, but not sure if it would be better to start with Old Om to learn the basics?

shaun-mahood20:04:20

Ok cool, there are some good resources - I came from C# to ClojureScript and Clojure, so hopefully some of this will help.

biscuitpants20:04:46

Oh definitely!

shaun-mahood20:04:36

I've not made the jump into Om yet, been using re-frame and reagent, so my advice there might not be great - but there are at least resources out there. Eric Normand has a great site at http://purelyfunctional.tv, and he has a course on Om at http://www.purelyfunctional.tv/single-page-applications . It's a pretty reasonable monthly cost for some good video resources.

shaun-mahood20:04:49

It's also really worthwhile going through David Nolen's posts - some of them are OM specific but they are all excellent. http://swannodette.github.io/

shaun-mahood20:04:42

I enjoyed this book and have heard that others have found it useful coming from OO https://leanpub.com/fp-oo

biscuitpants20:04:45

I’ve looked at re-frame @shaun-mahood, the README is absolutely incredible! I loved reading through it.

biscuitpants20:04:12

@shaun-mahood: been wanting to read that book, just have not got around to it yet unfortunately

shaun-mahood20:04:14

There's a work in progress Om Next tutorial as well https://github.com/awkay/om-tutorial

shaun-mahood20:04:10

I also really enjoyed https://www.packtpub.com/web-development/clojure-reactive-programming and found it really helpful for understanding a lot of the reactive ideas that underlay things like re-frame

shaun-mahood20:04:30

If you have time to read a bunch of books (or parts of books), a subscription to Safari Books Online is a great resource - it gives you access to most of the clojure books that are out there https://www.safaribooksonline.com/search/?query=clojure

shaun-mahood20:04:34

This is also a great resource for excellent talks - there are more out there, and it's well worth watching everything you can find by Rich Hickey and David Nolen, but it's a good starting point https://github.com/matthiasn/talk-transcripts

biscuitpants20:04:33

Ah thank you @shaun-mahood simple_smile These resources will definitely help me - they give me a good starting point. I was a bit overwhelmed by all the books and resources available.

shaun-mahood20:04:37

I've also found a lot of value in Tim Baldridge's videos at https://tbaldridge.pivotshare.com/

shaun-mahood20:04:40

@biscuitpants: Yeah, there's a lot out there now - most of it is really excellent though, so the problem is more filtering down to what you need to learn to get the next bit of work done. I tend to look at https://clojuredocs.org/ very frequently, http://www.clojure-toolbox.com/ for libraries, and the books after that to actually understand what I just figured out. It's a fun adventure!

biscuitpants20:04:43

@shaun-mahood: it definitely has been a fun adventure so far! Clojure is the best language I’ve learned so far, and I’m really enjoying all the theories behind it and FP. The community, like this Slack channel, is also amazing

shaun-mahood20:04:11

Yeah the community is unbelievably good IMO.

biscuitpants20:04:16

Thank you so much for the resources @shaun-mahood, I really appreciate it simple_smile I will definitely be back to ask more questions.

morland23:04:07

Having what I assume is a laziness issue here — I have a function that returns a coll, and mapping it over finite ranges while feeding it to take-while will work fine, i.e.,

(take-while #(not-empty (:key %)) (map mapping-fn [1 2 3 4 5]))
will return results for only inputs in the range that have non-nil results (e.g., equivalent to [1 2 3]) but
(take-while #(not-empty (:key %)) (map mapping-fn (range)))
will never terminate. I've tried doall to no avail. What obvious rookie mistake am I making?

seancorfield23:04:33

@morland: Are you sure that your mapping-fn returns something that would "fail" the #(not-empty (:key %)) test for some reasonable integer?

seancorfield23:04:21

(and, also, is it possible your mapping-fn does not terminate for some non-negative value? perhaps zero?)