is there a way I can learn clojure with a lot of exercises

365 views
Skip to first unread message

Roelof Wobben

unread,
Apr 16, 2014, 2:56:07 AM4/16/14
to clo...@googlegroups.com
Hello,

I like to try clojure.
I have little or none programming background but I know I learn the best by reading a piece of text
and then do exercises about it so I can check if I really understand it.

What is then the best way to proceed ?

Roelof

Bruce Wang

unread,
Apr 16, 2014, 3:07:36 AM4/16/14
to clo...@googlegroups.com


--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
simple is good
http://brucewang.net
http://twitter.com/number5

Roelof Wobben

unread,
Apr 16, 2014, 3:53:06 AM4/16/14
to clo...@googlegroups.com, br...@brucewang.net


Thanks,

Can this site also be good : http://www.braveclojure.com/

Roelof


Op woensdag 16 april 2014 09:07:36 UTC+2 schreef Bruce Wang:

Kranthi Rajoli

unread,
Apr 16, 2014, 4:23:24 AM4/16/14
to clo...@googlegroups.com
I found this to be very useful

Kranthi

monolithp

unread,
Apr 16, 2014, 4:27:27 AM4/16/14
to clo...@googlegroups.com

Josh Kamau

unread,
Apr 16, 2014, 4:53:09 AM4/16/14
to clo...@googlegroups.com, br...@brucewang.net

Niels van Klaveren

unread,
Apr 16, 2014, 6:45:33 AM4/16/14
to clo...@googlegroups.com, br...@brucewang.net
I suggest read up on Clojure for the Brave and True and Clojure from the Ground Up , then start on 4clojure's exercises. I'd recommend it over sites with euler problems, since those are more about finding good algorithms for generic puzzles, while 4clojure gives more insight into Clojure's inner workings and pitfalls.

As references use clojure-doc.org for tutorials and clojuredocs.org for core function examples.

Roelof Wobben

unread,
Apr 16, 2014, 7:03:55 AM4/16/14
to clo...@googlegroups.com, br...@brucewang.net
Thanks,

At this point Im following the first tutorial.

Roelof


Op woensdag 16 april 2014 12:45:33 UTC+2 schreef Niels van Klaveren:

Charlie Griefer

unread,
Apr 16, 2014, 10:43:09 AM4/16/14
to clo...@googlegroups.com
I know you said that you want to do exercises, but I have to second the recommendations for Clojure for the Brave and True. Great introduction for somebody who has little to no programming background. http://www.braveclojure.com/

Also as others have said, 4Clojure is exactly what you're asking for (exercises). But I'd start off with Clojure for the Brave and True, and as concepts start to click (or maybe even just before that), start working some of the 4Clojure exercises.

--
Charlie Griefer

"Give light, and the darkness will disappear of itself." 
-- Desiderius Erasmus

Roelof Wobben

unread,
Apr 16, 2014, 11:19:02 AM4/16/14
to clo...@googlegroups.com


Op woensdag 16 april 2014 16:43:09 UTC+2 schreef Charlie Griefer:
Thanks,

What I do now is read the braveclojure book and do the exercises from  http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html

So I read a lot and I can see how things work.

Roelof

Guru Devanla

unread,
Apr 16, 2014, 12:01:23 PM4/16/14
to clo...@googlegroups.com
I would suggest 4clojure.com for the following reasons:

1. Problems are tuned towards learning idioms of Clojure
2. In many cases problems are tuned towards making you thinking functionally. 
3. Once you solve the problem, you get to compare it with some of the other submitters. This point is crucial, since this will help you appreciate how some of the solutions submitted by other members can be so small and elegant. For me learning from the submitted code of other and comparing the though process I went through in coming up with my solution was a big take away.
4. It feels good to be on the first page of top users page, once you solved the 150 odd problems.

Cons:

1. A solution to almost all 4Clojure problems is just a google search away. So, stay away from the temptation to look for the answers. You will be surprised with how different your solution would have looked.

For further proof, I noticed many of the problems on this site are inspired by this list:


So good luck!

Guru






blake

unread,
Apr 16, 2014, 3:41:14 PM4/16/14
to clo...@googlegroups.com
As one who has been immersed in Clojure since the beginning of the year, I'd say use 4Clojure judiciously. 

For one thing, the format of the exercises adds an extra layer of complexity: Most of the time, you can't just solve the problem, you must solve the problem and then try to figure out how to phrase your solution into the surrounding assertion.

For another, a lot of the "easy" questions are of the category "easy, if you already know the answer". The first section of the clojure cheat-sheet (http://clojure.org/cheatsheet) gives you your basic tools. (A lot of my first weeks were "Oh, there's a function for that?") 

And finally, personally, I find that there's only so many times I can do Fibonaccis and factorials (and all those other Comp Sci exercises that I've never used in a productive program) before I get antsy. After a few weeks of focusing on 4clojure, I realized I couldn't actually write a running program.

Then, after a few weeks of playing around with a few dumb programs (but actual programs) I could go back and knock out a lot of 4clojure exercises.
But! now I go back and if there's an exercise I can't do, I know it's because there's a hole in my Clojure knowledge, so it's been very good for filling those in. When you start, though, it's all holes.

My 2 cents.

===Blake===

Mimmo Cosenza

unread,
Apr 16, 2014, 5:13:34 PM4/16/14
to clo...@googlegroups.com
In my humble experience, the best way to learn a language is to follow your way to learn a language, that means the same way you were already successful with the latest language you learnt.

Hopefully in the future CLJ could become the very first language the new generation will learn (today I think it’s python). But at the moment I don’t know anyone which start programming by using CLJ as her/his very first programming language. 

There should be no reasons why CLJ/CLJS requires you to adopt a different approach from the latest language you learnt. 

My best

mimmo
   
signature.asc

Gary Verhaegen

unread,
Apr 17, 2014, 2:33:57 AM4/17/14
to clo...@googlegroups.com
Hi Roelof,

I noticed your chat client is in Dutch. On the off chance that you might be in Flanders, I wanted to point out that there is going to be a BeClojure meetup on 2014-04-23 in Antwerp. More details: http://clojuregroup.org/2014/04/11/invitation-beclojure-23-april-2014-antwerpen/

Erlis Vidal

unread,
Apr 17, 2014, 12:41:59 PM4/17/14
to clo...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages