Live data from Hacker News

Try Clojure

try-clojure.org

31–40 of 63 posts

Re: Try Clojure

#31

Nice work. Assuming you're trying to advocate Clojure, I'd recommend changing your tutorial to make things look easy (as opposed to highlighting gotchas). I recommend doing math examples first. Show how it makes a good calculator, but avoid discussion of ratios. That's (unnecessarily) confusing.. just like everything in the hello world example starting from the nil output on. By the time I got to the sequence page, I…

The person who submitted this link isn't the author of TryClojure.

http://tryclj.licenser.net/ and http://www.try-clojure.org/ both point to the same IP. And both domains are registered to Heinz Gies - who I assume is the original author of TryClojure.

Re: Try Clojure

#32
post #20

A Clojure REPL that works on iPhone and iPad platforms. Will the wonders of web application delivery never cease? :)

Does it? I couldn't get it to execute anything on my iPhone. Or delete anything I'd written for that matter.

(Not knocking it. A lot of things don't work quite right on touch-only platforms. Try Haskell doesn't work either IIRC. Just a matter of testing and debugging I'm sure.)

Re: Try Clojure

#33
post #26
post #24

Earlier quoted context omitted.

1. I installed ELPA from here: http://tromey.com/elpa/install.html 2. Ran "M-x package-list-packages" 3. Installed clojure-mode, slime, slime-repl, and swank-clojure. Then I rebooted emacs and "M-x slime" just works for me (aquamacs).

This is what I did too. It works, and is simple and easy. The downside is that it sort of "takes over" SLIME and prevents you from easily using other Lisps with it. As a frequent SBCL user, I found this annoying. I ended up putting a switch in my .emacs which I can turn on and off depending on whether I want my SLIME to use Clojure, or some other Lisp. Suboptimal, and someone really needs to fix this Clojure-SLIME in…

That's why the leiningen option with lein swank is useful :).

Re: Try Clojure

#34
post #31

Nice work. Assuming you're trying to advocate Clojure, I'd recommend changing your tutorial to make things look easy (as opposed to highlighting gotchas). I recommend doing math examples first. Show how it makes a good calculator, but avoid discussion of ratios. That's (unnecessarily) confusing.. just like everything in the hello world example starting from the nil output on. By the time I got to the sequence page, I…

The person who submitted this link isn't the author of TryClojure. http://tryclj.licenser.net/ and http://www.try-clojure.org/ both point to the same IP. And both domains are registered to Heinz Gies - who I assume is the original author of TryClojure.

Raynes and Licenser (Heinz) have both worked on their own version of tryclojure but are collaborating on this version if I understand correctly. I'm not sure how they'll feel about this being posted early, but either way, pretty neat.

Re: Try Clojure

#35

Nice work. Assuming you're trying to advocate Clojure, I'd recommend changing your tutorial to make things look easy (as opposed to highlighting gotchas). I recommend doing math examples first. Show how it makes a good calculator, but avoid discussion of ratios. That's (unnecessarily) confusing.. just like everything in the hello world example starting from the nil output on. By the time I got to the sequence page, I…

I don't know if you noticed, but I tried to be very explicit about the fact that the tutorial is nowhere near finished. I wrote that up in 1 hour yesterday. I'm well aware that it needs filling in with less difficult stuff. I intend to start serious work on it today.

Also, I'm trying to get Michael Fogus (author of Joy of Clojure) to write the tutorial. If he decides to do so, I can almost promise you quality. ;)

Re: Try Clojure

#36
post #31

Nice work. Assuming you're trying to advocate Clojure, I'd recommend changing your tutorial to make things look easy (as opposed to highlighting gotchas). I recommend doing math examples first. Show how it makes a good calculator, but avoid discussion of ratios. That's (unnecessarily) confusing.. just like everything in the hello world example starting from the nil output on. By the time I got to the sequence page, I…

The person who submitted this link isn't the author of TryClojure. http://tryclj.licenser.net/ and http://www.try-clojure.org/ both point to the same IP. And both domains are registered to Heinz Gies - who I assume is the original author of TryClojure.

Actually, I'm mostly the author of try-clojure. Heinz hosts it for me and collaborates, but I'm the majority author.

Re: Try Clojure

#37

Neat! FYI, the editor is fairly busted on FF 3.6.3. Key repeat for arrow keys does not work, and paste is broken. Not sure what they're using, but it would also be nice if it supported readline-style navigation (i.e. M-f, M-b, C-e, C-a, etc).

It uses the same thing that tryhaskell.org uses. I was wondering about paste myself, but I suppose it's better for learning, just not for practicality.

The console works fine on my FF 3.6.3.

Re: Try Clojure

#38

Looking better and better. Someone with design chops should fork the repo and give them a good logo and a color treatment.

Lau Jensen and I worked pretty hard on the new layout. And I'll add your damned logo! Just give me time. ;)

Re: Try Clojure

#39
post #7

Man that teddy bear scares me off, I'd hate to make a typo and crash someones server. What kind of precautions against newbie messes are there ?

Licenser (Heinz) and I have another project called clj-sandbox that provides sandboxing for try-clojure and sexpbot in #clojure. You're safe.

Re: Try Clojure

#40
post #16

Nicely done. Would be nice to support copy/paste into the editor. Get rid of the dark grey background on code snippets in the tutorial -- very difficult to read. Having REPL inline with the tutorial is great...wish someone would build something similar for Haskell.

I'm still experimenting with code snippet colors.
Post reply on HN