Re: Clojurecademy: Learning Clojure Made Easy

2017-10-04 Thread Ertuğrul Çetin
Here is the DSL documentation link if anyone interested in creating Clojure based courses: https://clojurecademy.github.io/dsl-documentation On Monday, October 2, 2017 at 6:47:55 PM UTC+2, Ertuğrul Çetin wrote: > > Hi everyone, > > I've created site called Clojurecademy which seems like Codecadem

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
2, 2017 at 2:37:28 PM UTC-7, Ertuğrul Çetin wrote: >> >> Hi Bost, >> >> It's important for courses, I mean once your course get updated you will >> be notified, also you can continue to a course where you left off etc. >> Of course this site is no

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Christopher Small
continue to a course where you left off etc. > Of course this site is not the only platform that you can learn Clojure, > it just has different approach. Also it is not just learning Clojure, with > powerful Clojurecademy DSL( > https://clojurecademy.github.io/dsl-documentation/) Clojur

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
I removed Terms of Service from the site, also all Clojurecademy projects have MIT license(https://github.com/clojurecademy) and Clojurecademy Web App is going to be an open source project in near future. I hope everything is fine now, if not please let me know I'll do adjusments Thank you...

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
My goal is not earning money, this platform will remain free actually and be an open source project when I'm done with unit testing and documentation, my goal is making Clojure adoption as much easy as possible. I'll update Terms and consider your suggestion. On Tuesday, October 3, 2017 at 1:31

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Rostislav Svoboda
> Which part(s) is preventing you from contributing? Please the remove that sign-up wall, Terms-of-service nonse and alike. You know what we mean, don't you? If you think your users (= us) need some kind notifications, suspend-resume (i.e. save-load) functionality etc. then make it optional plea

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Ertuğrul Çetin
It's auto generated Terms of service, I should admit that I did not read all Terms. Which part(s) is preventing you from contributing? I can remove/change it, community's contribution is very important to platform. On Tuesday, October 3, 2017 at 5:03:12 AM UTC+2, Sam Griffith wrote: > > Terms of

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Sam Griffith
Terms of service prevent me from helping. I'm not willing to write things for the site and then have you own them like it says. That said, good luck. It does look guise nice from looking at your GitHub. Sam -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Ertuğrul Çetin
Hi Bost, It's important for courses, I mean once your course get updated you will be notified, also you can continue to a course where you left off etc. Of course this site is not the only platform that you can learn Clojure, it just has different approach. Also it is not just learning Cl

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Rostislav Svoboda
It looks like I can't learn clojure using your site unless I sign up with my email and such. Hmm... Until now I went pretty far with learning clojure without signing up anywhere. So what are your reasons for demanding a sign up? Thanks. 2017-10-02 18:47 GMT+02:00 Ertuğrul Çetin : > Hi

Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Ertuğrul Çetin
Hi everyone, I've created site called Clojurecademy which seems like Codecademy for Clojure with powerful DSL to create courses. Feel free to provide feedback so we can improve Clojure adoption together! Link: https://clojurecademy.com -- You received this message because you are subscribed t

Free webinar - Deep Learning: Clojure

2016-07-27 Thread Rachael Russell
Every language has many pre-defined core functions, so we can quickly get on building what we really want. This ease of use does come at a cost, though. Do we really know the power of the magic that we are wielding? In this webinar we will look at how to learn a language by implementing models

Deep learning: Clojure

2016-06-23 Thread Adele Green
Want to learn more about Clojure? Join us for our upcoming webinar with Dr. Jonathan Graham In this presentation we will look at how to learn a language by implementing models of some of its key features. To put this in practice, we will be diving deep into Clojure, and implementing our own ve

Re: practice for learning clojure

2014-07-11 Thread Alex P
:58:44 PM UTC+2, Randy Chiu wrote: > > Hi all, > I'm new to clojure and want to find some suggestion for learning clojure. > I googled some project about "how to learn clojure" but without any perfect > answers until now. > I worked on linux kernel in last sev

Re: practice for learning clojure

2014-07-10 Thread Gregg Williams
end *a lot* of time studying other people's solutions, looking at > both the factors of elegance and readability in solutions. > do you have any good projects/solutions recommended? > > 在 2014年5月28日星期三UTC+8上午3时15分37秒,Gregg Williams写道: >> >> Hi, Randy, >> >

Re: practice for learning clojure

2014-05-27 Thread Randy Chiu
o you have any good projects/solutions recommended? 在 2014年5月28日星期三UTC+8上午3时15分37秒,Gregg Williams写道: > > Hi, Randy, > > I'm several years into learning Clojure. Here's what has worked for me: > > * Use either Light Table or (if you're determined) Emacs as your IDE. >

Re: practice for learning clojure

2014-05-27 Thread Gregg Williams
Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table or (if you're determined) Emacs as your IDE. * I learned a lot from taking this free online course: http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html * I

Re: practice for learning clojure

2014-05-27 Thread Plínio Balduino
t; Hi all, > I'm new to clojure and want to find some suggestion for learning clojure. I > googled some project about "how to learn clojure" but without any perfect > answers until now. > I worked on linux kernel in last several years mainly with C, and I'm > rec

practice for learning clojure

2014-05-27 Thread Randy Chiu
Hi all, I'm new to clojure and want to find some suggestion for learning clojure. I googled some project about "how to learn clojure" but without any perfect answers until now. I worked on linux kernel in last several years mainly with C, and I'm recently interested in lisp

Re: Books for learning Clojure

2014-04-23 Thread Hercules Merscher
I saw this, very nice. These days i started with Programming Clojure Book and i'm enjoying :) On Wed, Apr 23, 2014 at 2:14 PM, Plínio Balduino wrote: > A nice post by Nikola Peric about this subject with what to read and what > to avoid. > > > http://deltadata.wordpress.com

Re: Books for learning Clojure

2014-04-23 Thread Plínio Balduino
A nice post by Nikola Peric about this subject with what to read and what to avoid. http://deltadata.wordpress.com/2014/04/19/learning-clojure-tutorial-books-and-resources-for-beginners/ Plínio On Wed, Apr 23, 2014 at 1:27 PM, Cecil Westerhof wrote: > 2014-04-23 15:05 GMT+02:00 Ste

Re: Books for learning Clojure

2014-04-23 Thread Cecil Westerhof
2014-04-23 15:05 GMT+02:00 Stefan Kamphausen : > Would German be an option for you? > ​With what is available, not for me, but maybe for others it would.​ -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: Books for learning Clojure

2014-04-23 Thread Stefan Kamphausen
Would German be an option for you? Just curious stefan -- 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

Re: Books for learning Clojure

2014-04-23 Thread Daniel Higginbotham
"Clojure Programming" was the most useful to me when I started with Clojure (I already had a bit of Lisp experience). Kyle Kingsbury has an online series going, "Clojure from the Ground Up" (http://aphyr.com/tags/Clojure-from-the-ground-up). I'm writing a book as well, "Clojure for the Brave an

Re: Books for learning Clojure

2014-04-23 Thread kurofune
I'm about halfway through all of them, and find the back and forth to actually be helpful. First and foremost though, i recommend you go through the "clojure koans" video series on YouTube and get started with 4clojure.com (subsequent, difficult problems will become easier for you as you progres

Re: Books for learning Clojure

2014-04-22 Thread Marcus Blankenship
Let me also +10 for Eric Normand’s excellent Clojure videos, found at http://www.purelyfunctional.tv On Apr 22, 2014, at 10:13 PM, Cecil Westerhof wrote: > 2014-04-22 20:18 GMT+02:00 Cecil Westerhof : > I have a ‘little’ to learn. ;-) I have worked with a lot of languages, > including Lisp. I

Re: Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
2014-04-22 20:18 GMT+02:00 Cecil Westerhof : > I have a ‘little’ to learn. ;-) I have worked with a lot of languages, > including Lisp. I was thinking about the following books (in that order): > - Practical Clojure > - Clojure in Action > - The Joy of Clojure > - Clojure Programming > - Programmi

Re: Books for learning Clojure

2014-04-22 Thread Andrey Antukh
Hi Cecil I had read almost all books of you list and without a doubt clojure programming (o'reilly) is the best book for me ;) Andrey 2014-04-22 20:18 GMT+02:00 Cecil Westerhof : > I have a ‘little’ to learn. ;-) I have worked with a lot of languages, > including Lisp. I was thinking about the

Re: Books for learning Clojure

2014-04-22 Thread Mike Haney
Yeah, JoC is my favorite clojure book, but I agree it's not the best to start with. Let me throw a couple others into the mix that haven't been mentioned yet. If you come from a solid OO background, I highly recommend Brian Marick's book "Functional Programming For the Object Oriented programm

Re: Books for learning Clojure

2014-04-22 Thread Gary Trakhman
JoC is like SICP, just really worth doing, not necessarily immediately practical. On Tue, Apr 22, 2014 at 3:16 PM, Plínio Balduino wrote: > Exactly, Thiago. > > I just understood Clojure after dive into Clojure. The books helped a lot, > but alone they are almost useless. > > Plínio > > > On Tue

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
Exactly, Thiago. I just understood Clojure after dive into Clojure. The books helped a lot, but alone they are almost useless. Plínio On Tue, Apr 22, 2014 at 3:53 PM, Thiago Massa wrote: > I think you should care about learning the concepts involved in clojure > and functional programming in

Re: Books for learning Clojure

2014-04-22 Thread Alex Vzorov
I started with JoC and reading Programming Clojure now. Both give pretty good introduction to the language and its capabilities. JoC is full of not-so-simple examples, but they make one's brain work, show the clojure way, and are good for people how know they way around programming in general.

Re: Books for learning Clojure

2014-04-22 Thread Alex Ott
Hi I would recommend to take Programming Clojure or Clojure Programming first, and after that take the The Joy of Clojure (2ed)... On Tue, Apr 22, 2014 at 8:18 PM, Cecil Westerhof wrote: > I have a ‘little’ to learn. ;-) I have worked with a lot of languages, > including Lisp. I was thinking ab

Re: Books for learning Clojure

2014-04-22 Thread Thiago Massa
I think you should care about learning the concepts involved in clojure and functional programming in general. "Getting" clojure after you have done some haskell, lisp or erlang is supposed to be a breeze, so you need to get to the basics! I bet that most of the books will teach you almost the sam

Re: Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
2014-04-22 20:32 GMT+02:00 Plínio Balduino : > Some will say that Joy of Clojure is not the best choice for the newcomer. > > I read all the books more in your list more than once and had the better > comprehension with JoC. > The important thing is that I didn't get Clojure reading the first or >

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
Some will say that Joy of Clojure is not the best choice for the newcomer. I read all the books more in your list more than once and had the better comprehension with JoC. The important thing is that I didn't get Clojure reading the first or second book. I just really understood after read the

Books for learning Clojure

2014-04-22 Thread Cecil Westerhof
I have a ‘little’ to learn. ;-) I have worked with a lot of languages, including Lisp. I was thinking about the following books (in that order): - Practical Clojure - Clojure in Action - The Joy of Clojure - Clojure Programming - Programming Clojure Someone told me it was better to start with Prog

Re: [Learning] Clojure web programming - thoughts and series of articles

2012-11-23 Thread Johan Sundström
Nice pointers, I'm soo noob in the clojure world that I'm not able to answer your question, but I will look into your articles. Cheers, Johan Den torsdagen den 8:e november 2012 kl. 19:42:31 UTC+2 skrev Yakovlev Roman: > > Some time have passed since i posted > "Is clojure need it's own web f

[Learning] Clojure web programming - thoughts and series of articles

2012-11-08 Thread Yakovlev Roman
Some time have passed since i posted "Is clojure need it's own web framework like ruby on rails" ? https://groups.google.com/forum/?hl=en&fromgroups=#!topic/clojure/C41MfD72UBE There answer mostly was no. But i still think that clojure need some base for "Clojure web programming" maybe wiki site

Re: Learning clojure: debugging?

2012-06-03 Thread Softaddicts
Not yet, I'll put this on my agenda. I need some research time not being familiar yet with how it would translate in ClojureScript and if it's worthwhile to implement it. Comments from any one using ClojureScript ? Luc > Does Clojurescript have a trace function? > > On Sat, Jun 2, 2012 at 5:26

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Nvm. Not yet. I'm reluctant to dive into clojurescript because the debugger and trace functions aren't ready yet. I suppose if I make test cases for everything and stick to tiny functions, I should be alright. Anyway, if Chris Granger uses it, it's probably pretty good. HERE GOES! On Sun, Jun

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Does Clojurescript have a trace function? On Sat, Jun 2, 2012 at 5:26 PM, Softaddicts wrote: > clojure.tools.trace beats println by far (biased advice, I maintain > it:))) > It's also easier to segregate between debug and normal output in the code. > > You can enable/disable fn tracing dynami

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Corfield
On Sun, Jun 3, 2012 at 1:55 AM, Vinzent wrote: > Actually, it's kinda the same (Fogus and me decided to merge trammel and > clojure-contracts into one library) Yeah, I figured. I just wanted to point people to the newly created contrib library since that's where (I assume) future development will

Re: Learning clojure: debugging?

2012-06-03 Thread Vinzent
Actually, it's kinda the same (Fogus and me decided to merge trammel and clojure-contracts into one library) воскресенье, 3 июня 2012 г., 6:31:50 UTC+6 пользователь Sean Corfield написал: > > On Sat, Jun 2, 2012 at 5:22 PM, Vinzent wrote: > > BTW, you may want to use clojure-contracts > > (ht

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Sat, Jun 2, 2012 at 5:22 PM, Vinzent wrote: > BTW, you may want to use clojure-contracts > (https://github.com/dnaumov/clojure-contracts) instead of asserts or > :pre\:post in order to get much nicer and informative error reporting. Or keep an eye on https://github.com/clojure/core.contracts c

Re: Learning clojure: debugging?

2012-06-02 Thread Vinzent
BTW, you may want to use clojure-contracts ( https://github.com/dnaumov/clojure-contracts) instead of asserts or :pre\:post in order to get much nicer and informative error reporting. > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Learning clojure: debugging?

2012-06-02 Thread Softaddicts
clojure.tools.trace beats println by far (biased advice, I maintain it:))) It's also easier to segregate between debug and normal output in the code. You can enable/disable fn tracing dynamically from the REPL for all fns in a given namespace. I seldom use a debugger. When I do it's to dive

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Sat, Jun 2, 2012 at 2:34 PM, Moritz Ulrich wrote: > I think one important point here is that you use two different data > structures to hold the same kind of data. Points and deltas are not the "same kind of data". Yes, they both have x/y/z values but their meaning is different. Perhaps {:poin

Re: Learning clojure: debugging?

2012-06-02 Thread Moritz Ulrich
On Fri, Jun 1, 2012 at 8:18 PM, Abraham Egnor wrote: > Is there some technique I'm not seeing to make this kind of simple > typo-based error less of a hassle to track down?  Or is this simply a matter > of getting better at deciphering the stack traces? I think one important point here is that yo

Re: Learning clojure: debugging?

2012-06-02 Thread Sean Corfield
On Fri, Jun 1, 2012 at 11:18 AM, Abraham Egnor wrote: > I'm early in the process of learning clojure, and am hoping that the > community has suggestions for a frustration I've run into. ... > I eventually tracked it down by evaluating each subexpression of line - the > root

Re: Newbie's Guide to Learning Clojure

2012-03-29 Thread George Oliver
On Mar 28, 10:16 am, Elango Cheran wrote: > Hi everyone, > On Gregg's suggestion, I want to share a writeup about how total beginners > can learn Clojure in a minimally painful way.  I'd welcome any comments, > suggestions, etc. You could add a link to this guide, http://www.unexpected-vortice

Newbie's Guide to Learning Clojure

2012-03-28 Thread Elango Cheran
Hi everyone, On Gregg's suggestion, I want to share a writeup about how total beginners can learn Clojure in a minimally painful way. I'd welcome any comments, suggestions, etc. http://www.elangocheran.com/blog/2012/03/the-newbies-guide-learning-clojure/ Thanks. Elango -- You rec

Re: Learning clojure - comments on my function?

2011-09-29 Thread Peter Hull
Thank you, both! I guessed there would be a neater solution (I wasn't aware of partition-by) Pete -- 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 mode

Re: Learning clojure - comments on my function?

2011-09-29 Thread Islon Scherer
You probably want something like (defn split-zero [ls] (filter #(not= (first %) 0) (partition-by zero? ls))) -- 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 me

Re: Learning clojure - comments on my function?

2011-09-29 Thread Jonathan Fischer Friberg
(take-nth 2 ...) '(3 1 7 3 0) -> '(3 7 0) On Thu, Sep 29, 2011 at 1:35 PM, Peter Hull wrote: > Hi All, > I am just learning clojure and I've written a function to split a list (see > docstring for details). I was wondering if any of you experienced hands > could tak

Learning clojure - comments on my function?

2011-09-29 Thread Peter Hull
Hi All, I am just learning clojure and I've written a function to split a list (see docstring for details). I was wondering if any of you experienced hands could take a look at it and comment. I've never used lisp or a functional language before so I was wondering if I was doing it r

Re: learning clojure library

2011-08-03 Thread Islon Scherer
You can use (ns-publics 'your.namespace) to see every public intern mapping in this namespace. Islon -- 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 m

learning clojure library

2011-08-03 Thread Vincent
How shld i go about for studying about a Clojure library , functions provided with it ? Is there any function which will list all the functions available in a namespace of library ? Which are the namespace available in library.? MY problem is how to study to use functions avail. , as (doc fun

ANN: Learning clojure? Here's a practical example using clojure and nmap.

2010-07-26 Thread Ryan Waters
I don't have a website I maintain right now so I thought I'd post this to the mailing list. I have a need to scan a list of IP addresses and I wanted the scan order to be random. Nmap can do this. However, I also want the scan order to be consistent so I can do handy things like diff output logs

Re: Learning Clojure Offline

2010-06-20 Thread Wilson MacGyver
Other than downloading clojure and clojure.contrib itself, I'd suggest you get the "progmraming in clojure" book by Stuart Halloway. Book in hand, try out the examples in clojure REPL. That's good enough to get started. Welcome! On Sun, Jun 20, 2010 at 3:50 AM, Martin Larsson wrote: > Hi! > I'm

Learning Clojure Offline

2010-06-20 Thread Martin Larsson
Hi! I'm all new to Clojure. And to functional programming in general except for some Scheme and ML work in college way back when... How would I learn Clojure without being connected to the internet? IOW. What do I need to download so that I can sit on a mountain top and teach myself? M. -- You

Learning Clojure - Wiki

2009-05-30 Thread Rock
I'm editing the Reader Macros section. I hope I got this right: For Lists, syntax-quote establishes a template of the corresponding data structure. Within the template, unqualified forms behave as if recursively syntax-quoted. `(x1 x2 x3 ... xn) is interpreted to mean (clojure.core/seq (cloju

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
Ok. I'll try to correct that. It was already there when I started working on that section. My main concern is the part where I describe the rules for the syntax-quote expansion. Does it seem correct to you? Thanks so much for helping :) Rock On May 29, 5:47 pm, Rich Hickey wrote: > On May 29,

Re: Learning Clojure Wiki

2009-05-29 Thread Rich Hickey
On May 29, 10:18 am, Rock wrote: > By the way, here's the link: > > http://en.wikibooks.org/w/index.php?title=Learning_Clojure&stable=0#R... > > On May 29, 4:14 pm, Rock wrote: > > > Hi, > > > I've just finished updating the "Reader Macros" section of the Wiki > > (especially the syntax-quote

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
By the way, here's the link: http://en.wikibooks.org/w/index.php?title=Learning_Clojure&stable=0#Reader_Macros On May 29, 4:14 pm, Rock wrote: > Hi, > > I've just finished updating the "Reader Macros" section of the Wiki > (especially the syntax-quote part), and I would like to know if it's > r

Re: Learning Clojure Wiki

2009-05-29 Thread Rock
By the way, here's the link: http://en.wikibooks.org/wiki/Learning_Clojure#Reader_Macros On May 29, 4:14 pm, Rock wrote: > Hi, > > I've just finished updating the "Reader Macros" section of the Wiki > (especially the syntax-quote part), and I would like to know if it's > reasonably correct. It'

Learning Clojure Wiki

2009-05-29 Thread Rock
Hi, I've just finished updating the "Reader Macros" section of the Wiki (especially the syntax-quote part), and I would like to know if it's reasonably correct. It'd be great to have Rich's blessing. Thanks. Rock --~--~-~--~~~---~--~~ You received this message b

learning clojure: macro for importing all static public methods of a Java class

2009-05-01 Thread Boris Mizhen
w static import from contrib :) - the difference here is that my code creates clojure functions that can be passed to other functions. This is just an exercise for learning clojure macros, so I would be very grateful for any comments on the code, suggestions on how to improve it, etc ... It is easier

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Christophe Grand
IMHO, the slowdown comes from allocation: with (apply merge-with concat (map (fn [x] {(key-fn x) [x]}) s)) you build a map containing a vector, plus a seq (merge-with calls seq on each argument) for each item before performing a reduction which calls assoc and concat. In seq-to-multimap you o

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Boris Mizhen
Thanks Jason. merge-with seems to be made to support a function like this, I wonder where is the slowdown coming from? Is apply slow? I named your version seq-to-multimap2. The timing results are below: user> (def a (reverse (take 10 (iterate (fn [x] (rand-int 100)) 1 #'user

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-29 Thread Boris Mizhen
Thanks Christophe, > Using a default return value, you can rewrite the (if-let...) as (conj > (amap key ()) item). A good point, getting clojure and clojure :) (defn seq-to-multimap "takes a sequence s of possibly repeating elements and converts it to a map, where keys are obtained by app

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Jason Wolfe
(defn seq-to-multimap   "takes a sequence s of possibly repeating elements    and converts it to a map, where keys are obtained by applying key- fn    to elements of s and values are sequence of all elements of s with the particular key" [s key-fn] (apply merge-with concat (map (fn [x]

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Meikel Brandmeyer
Hi, Am 28.04.2009 um 23:28 schrieb Boris Mizhen: BTW, I hope I'm not abusing this mailing list by asking questions like this? This list and the #clojure channel are the right place to ask such questions. That said, there is the search facility of google groups and the log of the channel at ht

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Christophe Grand
Hi Boris, Boris Mizhen a écrit : > I am starting to learn clojure. I would appreciate comments on the > utility function below. > Coding style, idiomatic Clojure, comment style, efficiency, naming > conventions, indentations (used slime) ... anything I should > improve :) > > (defn seq-to-multima

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Boris Mizhen
Thanks Stuart, preserving order is a nice touch :) I also did not realize that conj preserves sequence type ... BTW, I hope I'm not abusing this mailing list by asking questions like this? Boris On Apr 28, 5:15 pm, Stuart Sierra wrote: > Hi Boris, welcome to Clojure! > > This function looks r

Re: learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Stuart Sierra
Hi Boris, welcome to Clojure! This function looks reasonable to me. In your example, you don't need to write "#(identity %)" -- just "identity" is enough. If you want to preserve the order of objects in the sequence, you can use a vector instead of a list. I would use "contains?" in the condit

learning clojure, converting a sequence with repetitions to a multi-map

2009-04-28 Thread Boris Mizhen
Hello all, I am starting to learn clojure. I would appreciate comments on the utility function below. Coding style, idiomatic Clojure, comment style, efficiency, naming conventions, indentations (used slime) ... anything I should improve :) (defn seq-to-multimap [s key-fn] "takes a sequence s

Re: Learning Clojure

2009-01-28 Thread Emeka
Thanks Steve and Tim. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@g

Re: Learning Clojure

2009-01-28 Thread Timothy Pratley
Thanks for the detailed explanation Steve! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to

Re: Learning Clojure

2009-01-28 Thread Stephen C. Gilardi
On Jan 28, 2009, at 6:48 PM, Timothy Pratley wrote: You didn't do anything wrong, there is a definition of + with no arguments which just returns 0, but no definition of - with no arguments. Similarly (*) is defined as 1, but (/) is undefined. I guess there is no such thing as negative 0, then

Re: Learning Clojure

2009-01-28 Thread Timothy Pratley
On Jan 29, 6:03 am, janus wrote: > While reading Programming Clojure the other night I found this code > interesting (+), however, when I tried out (-) I got my fingers burnt. > Why this? Or did I do something wrong which has nothing to do with > the code in question? You didn't do anything wro

Learning Clojure

2009-01-28 Thread janus
While reading Programming Clojure the other night I found this code interesting (+), however, when I tried out (-) I got my fingers burnt. Why this? Or did I do something wrong which has nothing to do with the code in question? Emeka --~--~-~--~~~---~--~~ You rece

Re: Learning Clojure WikiBook

2009-01-14 Thread Rock
On 14 Gen, 17:58, Chouser wrote: > On Wed, Jan 14, 2009 at 6:07 AM, Rock wrote: > > [snip] > > > #^{:ack bar} foo      ; (clojure/with-meta foo {:ack bar}) > > This is not correct, and a common misunderstanding. > > "#^ is not sugar for with-meta. It does not expand into a call to > with- meta

Re: Learning Clojure WikiBook

2009-01-14 Thread Chouser
On Wed, Jan 14, 2009 at 6:07 AM, Rock wrote: > [snip] > > #^{:ack bar} foo ; (clojure/with-meta foo {:ack bar}) This is not correct, and a common misunderstanding. "#^ is not sugar for with-meta. It does not expand into a call to with- meta. They are not equivalent." http://groups.google.

Re: Learning Clojure WikiBook

2009-01-14 Thread Rock
Here's an update on syntax-quote in the WikiBook (Reader Macro section): The most complicated reader macro is syntax-quote, denoted by ` (back- tick). When used on a symbol, syntax-quote is like quote but the symbol is resolved to its fully-qualified name: `meow; (quote cat/meow) ...assuming

Re: Learning Clojure WikiBook

2009-01-14 Thread Rock
On Jan 13, 11:35 am, Rock wrote: > I've added some info regarding the backquote expansion mechanism in > the Reader section here: > > http://en.wikibooks.org/wiki/Learning_Clojure#The_Reader > > I tried to answer the author's question regarding the possible > expansion order in nested backquote

Learning Clojure WikiBook

2009-01-13 Thread Rock
I've added some info regarding the backquote expansion mechanism in the Reader section here: http://en.wikibooks.org/wiki/Learning_Clojure#The_Reader I tried to answer the author's question regarding the possible expansion order in nested backquotes and the general algorithm Clojure apparently e

Re: Learning Clojure

2008-12-11 Thread rb
On Dec 11, 7:06 am, Alex Burka wrote: > To the debate on whether there should be examples early in the text,   > here are my two cents: > > When I click on something called "Learning [programming language]" I   > like to see a representative example of the syntax early on. If   > there's just t

Re: Learning Clojure

2008-12-11 Thread Brian Will
Tim, just go ahead and make any changes you like. If I don't like them, I can always revert ;) Actually, I'm sure anything you add we can find a place for, but like I said, that would likely be a separate example page in most cases. Thanks, Randall, I mention keywords-as-functions where I talk ab

Re: Learning Clojure

2008-12-11 Thread Randall R Schulz
On Thursday 11 December 2008 07:41, samppi wrote: > Great article, but I'm not sure this part in the keyword section is > correct: > > "Keywords exist simply because, as you'll see, it's useful to have > names in code which are symbol-like but not actually symbols. > Keywords have no concept of be

Re: Learning Clojure

2008-12-11 Thread samppi
Great article, but I'm not sure this part in the keyword section is correct: "Keywords exist simply because, as you'll see, it's useful to have names in code which are symbol-like but not actually symbols. Keywords have no concept of being namespace qualified as they have nothing to do with names

Re: Learning Clojure

2008-12-11 Thread janus
Timothy, Your post is a great one indeed , you have developed a template that anyone could use to introduce Clojure. I would implore to fresh out thoughts and deepen it for all to enjoy. Emeka --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Learning Clojure

2008-12-11 Thread Alex Burka
To the debate on whether there should be examples early in the text, here are my two cents: When I click on something called "Learning [programming language]" I like to see a representative example of the syntax early on. If there's just text as far as the eye can see (that is, the first

Re: Learning Clojure

2008-12-10 Thread Timothy Pratley
Hi Brian, > Rich talks about destructuring in the part about "let" on the "special > forms" page. Ah indeed, thanks for pointing that out :) > If you have any examples to add, please add them yourself (it is a wiki > page). You've given some really good reasons why I shouldn't mess with it *

Re: Learning Clojure

2008-12-10 Thread Brian Will
Tim: Rich talks about destructuring in the part about "let" on the "special forms" page. The discussion of functions and basic syntax is deliberately delayed because of dependencies, e.g. evaluation can't really be understood without understanding the reader, and explaining the reader involves t

Re: Learning Clojure

2008-12-10 Thread Stephen C. Gilardi
On Dec 10, 2008, at 9:03 PM, Brian Will wrote: btw, you'll see a few notes I left in the text in square brackets where I wasn't sure on some point. If someone could address those questions, I'd appreciate it. [hmm, what are the chances of a false positive due to hash collision? are the odds

Re: Learning Clojure

2008-12-10 Thread Timothy Pratley
your desired scope, but I don't think would bloat it: 1) "Learning Clojure" launches straight into describing Clojure. I think you should at least have a link to a more basic tutorial or dedicate a paragraph to the syntax so that your concepts can be more fully understood. - I propos

Re: Learning Clojure

2008-12-10 Thread Brian Will
Thanks for explaining the origin of "var" and "ref". An important thing you should do for learners is to explain their origin of odd/ cryptic names because that makes them much easier to remember. For example, no text on C I've ever read explains the meaning of standard library function names, lik

Re: Learning Clojure

2008-12-10 Thread Rich Hickey
On Wed, Dec 10, 2008 at 4:32 PM, Brian Will <[EMAIL PROTECTED]> wrote: > > A Java reference type is basically any type allocated on the heap. The > four Clojure reference types are particular Java reference types. My > complaint is this is exactly the sort of weirdness that causes > learners to sc

Re: Learning Clojure

2008-12-10 Thread J. McConnell
On Wed, Dec 10, 2008 at 4:32 PM, Brian Will <[EMAIL PROTECTED]> wrote: > > A Java reference type is basically any type allocated on the heap. The > four Clojure reference types are particular Java reference types. My > complaint is this is exactly the sort of weirdness that causes > learners to sc

  1   2   >