So I did

07:40 < IronAngel> I'm horny drunk and mean spirited, and you can quote me on that

#r4nger5 on freenode


Accessorising

image

Klean Kanteen in a bottle cage on my bike. Shame they don't make cages for the larger bottles.


Wherein we find out about the author's inability to follow instructions

So I've been thinking that I really should learn Lisp. A nice programming language unlike any other I have seen. Clojure is one dialect of Lisp which is targeted at the JVM and .NET CLR. A quick search of the Youtubes revealed a decent video introducing Clojure with a practical example and a quick touch on Leningen.

I started going along with the video a couple days ago when I hit a snag. Errors about not finding files, no such namespace etc. The versions of the libraries I was using were quite old, was that the issue? Has the syntax changed?. The answer is a lot more depressing.

(defroutes (GET "/" request (homepage request)) (GET "/:id" [id] (redirect id)))

Can you see the issue? I coudn't.

(defroutes myroutes (GET "/" request (homepage request)) (GET "/:id" [id] (redirect id)))

I missed a single argument from (defroutes). Literally could have put any old ascii string in there and it would have worked.

2.

Sodding.

Days.

Remember kids, when copying code from a video, make sure to get it all.


Video from Craigowl Hill

Scott got some of our rambling on camera while we walked up Craigowl Hill. Can't see much due to the weather unfortunately.