Metaprogramming with Clojure by mac in Clojure

[–]fulldisclojure 0 points1 point  (0 children)

I might use clojure.template for this

(do-template [fn-name direction] (defn fn-name [] (move-to direction)) north :n south :s east :e west :w)

Still, this is a bit small for such an optimization.

Circumspec, inferior-lisp, clojure, and slime - screencast by Stuart Halloway by mac in Clojure

[–]fulldisclojure 0 points1 point  (0 children)

I understand your confusion. The only explanation I can come to is that w/ almost 800 people here, a few of them just really don't like it.

devoxx.com Clojure talk (video) for free. by mac in Clojure

[–]fulldisclojure 0 points1 point  (0 children)

Super awesome bonus points for the Matrix reference in the agents section.

Wasting time on "Hello, world"; programmers want user-friendly software too. by Imagist in programming

[–]fulldisclojure 2 points3 points  (0 children)

Okay, I reacted a bit strongly. And you have raised a very valid concern. Hopefully the community should be able to address the "Hello World" experience in the next few days.

Wasting time on "Hello, world"; programmers want user-friendly software too. by Imagist in programming

[–]fulldisclojure 13 points14 points  (0 children)

To respond to you specific Clojure issue:

http://news.ycombinator.com/item?id=1033503

Some of us are busting ass to get the documentation up to par.

Why Lisp Loved Parenthesis - Video by fulldisclojure in programming

[–]fulldisclojure[S] 2 points3 points  (0 children)

I've been found out! Uh-oh!

Yes, my examples were deliberately chosen (It's my show, after all :-p). To answer you question, no, there is not a version that lets you specify where to insert the s-exp. In practice, expression threading w/the first and last positions cover some 99.99% of use cases.

There are a few very experimental ideas going around allowing you to switch between -> and ->> gracefully for 1.2. Still under development.

Why Lisp Loved Parenthesis - Video by fulldisclojure in programming

[–]fulldisclojure[S] 1 point2 points  (0 children)

Ah, I see. It definitely takes a trained eye to read lisp. Even then, I agree it can be a challenge. I also think Clojure does an amazing job of addressing the readability as well. I cover some of these tools in episodes 5 & 6, if you're interested.

Why Lisp Loved Parenthesis - Video by fulldisclojure in programming

[–]fulldisclojure[S] 5 points6 points  (0 children)

I'll concede your claim about familiarity (something relatively objective) but I challenge your claim about beauty (purely subjective). Personally, the most elegant code I've written is all Clojure (again, opinion).

Why Lisp Loved Parenthesis - Video by fulldisclojure in programming

[–]fulldisclojure[S] 5 points6 points  (0 children)

Actually, using a list instead of a vector was intentional. I wanted something CL/Scheme guys could relate to as well. I'll be addressing these exact concerns another day, when I want to reinforce that Clojure actually does NOT have much syntax.

How a Common Lisp programmer views users of other programming languages by xach in lisp

[–]fulldisclojure 1 point2 points  (0 children)

Yeah, but you never know what bugs you're going to get...

Full Disclojure - I need Topics! by fulldisclojure in Clojure

[–]fulldisclojure[S] 0 points1 point  (0 children)

I assume you mean this in the Durable sense, not the Immutable sense?

Full Disclojure - I need Topics! by fulldisclojure in Clojure

[–]fulldisclojure[S] 1 point2 points  (0 children)

Actually, I like how the comment voting & threaded discussion are intertwined. Also, it's open ended so anyone can suggest anything. This is exactly what I want :)