Re: An Averaging function

2014-07-11 Thread Adrian Mowat
Hi Blake Brian Marick's book on FP for OO programmers is an excellent book for Clojure beginners who already have a programming background. https://leanpub.com/fp-oo Cheers Adrian -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-10 18:34 GMT+02:00 Plínio Balduino pbaldu...@gmail.com: IMO, ! is used when change any global state. A side effect like print on screen is not enough to cause a ! in the name. I think that's why the functions print/println don't have ! =) ​Than I did it in the 'right' way. In the

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-10 18:46 GMT+02:00 Stefan Kamphausen ska2...@gmail.com: On Thursday, July 10, 2014 5:28:26 PM UTC+2, Cecil Westerhof wrote: When a function returns a true/false value you should end it with a '?'. Clojure Programming says that with side effects you should end the function name with

Re: When to use ! in function name

2014-07-11 Thread Stefan Kamphausen
Hi, On Friday, July 11, 2014 11:10:53 AM UTC+2, Cecil Westerhof wrote: 2014-07-10 18:34 GMT+02:00 Plínio Balduino pbal...@gmail.com javascript:: IMO, ! is used when change any global state. A side effect like print on screen is not enough to cause a ! in the name. I think that's why the

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-10 19:10 GMT+02:00 Softaddicts lprefonta...@softaddicts.ca: The fn that does the display is the one having side effects. Now if your look fn creates the side effect, it should reflect that in its name. ​Look discribes the current location. So it has a side-effect, but as I understood

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-11 11:28 GMT+02:00 Stefan Kamphausen ska2...@gmail.com: On Friday, July 11, 2014 11:10:53 AM UTC+2, Cecil Westerhof wrote: 2014-07-10 18:34 GMT+02:00 Plínio Balduino pbal...@gmail.com: IMO, ! is used when change any global state. A side effect like print on screen is not enough to

Re: practice for learning clojure

2014-07-11 Thread Alex P
You can check out Defworkshop repository: https://github.com/defworkshop/defworkshop and start by simply implementing everything from simple functions further down the line. We also have complimentary slides here: https://speakerdeck.com/defworkshop Hope that helps On Tuesday, May 27, 2014

Re: When to use ! in function name

2014-07-11 Thread Softaddicts
I look at side effects this way, will it ever record some state change that some code in the universe will eventually rely on ? If no, then there's no state change/side effect to care about. Sending a message is a side effect (a pgm will eventually use it), writing to a database, ... qualify.

Re: When to use ! in function name

2014-07-11 Thread Stefan Kamphausen
Hi, On Friday, July 11, 2014 11:33:34 AM UTC+2, Cecil Westerhof wrote: 2014-07-10 19:10 GMT+02:00 Softaddicts lprefo...@softaddicts.ca javascript:: ​but as I understood from others it is not about side-effects, but global state. as James and I already pointed out, that is not what it

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-11 14:19 GMT+02:00 Softaddicts lprefonta...@softaddicts.ca: I look at side effects this way, will it ever record some state change that some code in the universe will eventually rely on ? If no, then there's no state change/side effect to care about. Sending a message is a side

Re: When to use ! in function name

2014-07-11 Thread Cecil Westerhof
2014-07-11 14:28 GMT+02:00 Stefan Kamphausen ska2...@gmail.com: On Friday, July 11, 2014 11:33:34 AM UTC+2, Cecil Westerhof wrote: 2014-07-10 19:10 GMT+02:00 Softaddicts lprefo...@softaddicts.ca: ​but as I understood from others it is not about side-effects, but global state. as James

Re: 101 on simple and flexible graph query/update?

2014-07-11 Thread Bertrand Dechoux
@Francois Rey : I totally forgot that Datomic could be used on regular data structures. Thanks a lot, it might indeed be something to investigate. @Frank Castellucci : Indeed, I guess someone working with ontologies would have the same concerns. Thanks for all the pointers. Le vendredi 11

Re: [ClojureScript] [ANN] Cats: category theory abstractions library for clojure(script).

2014-07-11 Thread Herwig Hochleitner
Hello Andrey, after having spent some time with Haskell lately, trying to wrap my head around those categorical abstractions, I enjoy your take on them a lot. At first glance, I feel your design blends in with clojure's style very well. Also, congratulations on the documentation, it's a great

careful w/ edn injection

2014-07-11 Thread Ignacio Thayer
serialized)] (for [[k v] roundtripped] (lg/info KEY[ k ]=v) and the following request: /submit-op?operation=register%20:is-admin?%20true} the trusted data is overwritten INFO 20140711 120431,062 rfz.web.routing ] KEY[ :raw-user-input ]= :register

Re: careful w/ edn injection

2014-07-11 Thread James Reeves
/info KEY[ k ]=v) and the following request: /submit-op?operation=register%20:is-admin?%20true} the trusted data is overwritten INFO 20140711 120431,062 rfz.web.routing ] KEY[ :raw-user-input ]= :register INFO 20140711 120431,063 rfz.web.routing ] KEY[ :is-admin? ]= true

Re: When to use ! in function name

2014-07-11 Thread Softaddicts
You do not reuse log file output to propagate state changes. If you do I would like to know for what purpose... In my world the ultimate goal of log file output is human consumption with or without aggregation or alert filtering. It has nothing to do with your system internal state. It's merely

Re: careful w/ edn injection

2014-07-11 Thread Ignacio Thayer
-op?operation=register%20:is-admin?%20true} the trusted data is overwritten INFO 20140711 120431,062 rfz.web.routing ] KEY[ :raw-user-input ]= :register INFO 20140711 120431,063 rfz.web.routing ] KEY[ :is-admin? ]= true if i missed something about this, i apologize. in any case

Puppet Labs is hiring Clojure developers

2014-07-11 Thread Ryan Senior
Hi, everyone! Puppet Labs [0][1] builds open source and commercial systems automation tools. We're in every major linux distribution, and we're managing literally millions of systems at a wide variety of shops (from Google to GitHub to Spotify to CERN to SpaceX to NYSE ...). Even if you've not

Re: [ClojureScript] [ANN] Cats: category theory abstractions library for clojure(script).

2014-07-11 Thread Andrey Antukh
Hi Herwig! 2014-07-11 17:49 GMT+02:00 Herwig Hochleitner hhochleit...@gmail.com: Hello Andrey, after having spent some time with Haskell lately, trying to wrap my head around those categorical abstractions, I enjoy your take on them a lot. At first glance, I feel your design blends in with

[ANN] Clojure cheatsheet variants with links to Grimoire

2014-07-11 Thread Andy Fingerhut
Thanks to some updates from Reid McKenzie (aka arrdem), there are now Clojure cheatsheet variants published with links to Grimoire pages, in addition to the ones that have been up for years now that have links to ClojureDocs pages. The version at clojure.org/cheatsheet is unchanged (it still

Re: [ANN] Clojure cheatsheet variants with links to Grimoire

2014-07-11 Thread Reid McKenzie
Sorta kinda on the automated synchronization. Whenever I rebuild/update Grimoire (and you can too!) it fetches the latest examples from ClojureDocs and formats them appropriately. So as of the last rebuild Grimoire is at least a clone of Clojuredocs. I hope that this proves useful, Reid On

Re: [ANN] Clojure cheatsheet variants with links to Grimoire

2014-07-11 Thread Mark Mandel
Brilliant work :) This is definitely my new goto for Clojure docs. Mark On Sat, Jul 12, 2014 at 8:38 AM, Reid McKenzie rmckenzi...@gmail.com wrote: Sorta kinda on the automated synchronization. Whenever I rebuild/update Grimoire (and you can too!) it fetches the latest examples from

[ANN] Grimoire 0.2.0

2014-07-11 Thread Reid McKenzie
I'm delighted to say that I managed to make some ninja updates before Andyf announced the cheat sheet changes I submitted. Grimoire version 0.2.0 is now live with a boatload of changes and more to come. Grimoire (http://grimoire.arrdem.com) is up to date Clojure examples and documentation built

[ANN] Grimoire 0.2.0

2014-07-11 Thread Ryan Neufeld
This is fantastic! Thanks for all the hard work you've put in. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: [ANN] Grimoire 0.2.0

2014-07-11 Thread George Oliver
Great UI improvement, nice work! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-11 Thread cldwalker
On Tuesday, July 8, 2014 3:07:03 PM UTC-4, Reid McKenzie wrote: 1) doesn't make a whole lot of sense. I'm an adherent to the simplest thing that could possibly work philosophy, and as a result Grimoire is entirely static HTML. Search and symbol quick access could be implemented by

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-11 Thread George Oliver
I'd also love to see a custom domain for this as well. I'm happy to pay for it if no one else will. How about clj-docs.org or clj-doc.org (which are available)? I do see clojuredoc.org is available but could easily be confused with clojuredocs.org There's also clojure-doc.org. --

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-11 Thread cldwalker
Once Grimoire starts getting custom examples, we could provide a corresponding client like clojuredocs-client that slurps _includes/**/examples and strips text only between raw and endraw tags. That would allow you to keep Grimoire as simple static HTML while still allowing for painless