TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Brief Beginner's Guide To Clojure

61 pointsby pelleabout 13 years ago

5 comments

weavejesterabout 13 years ago
The Emacs setup steps are somewhat behind the times. These days it's easier to use packages to install new modes and themes, and Technomancy's Emacs Starter Kit should be mentioned for those who are new to Emacs and want sensible defaults.<p>It's even easier with Emacs 24, as the starter kit can be installed via a package as well. Current best practise is to put all the packages you need in your init.el file, then when you start Emacs, it'll download and install any packages you're missing.<p>You have a section "Other Libraries" and a section "Finding the Libraries You Want", which cover essentially the same ground, but are strangely split up. So the former mentions the Clojure wiki page, and the latter mentions clojure-toolbox and other third-party library lists. Maybe they should all be in one section?<p>Other things... "lein deps" isn't really necessary anymore, as Leiningen checks for dependencies before running each command.<p>I think you also need to mention that you can effectively forgo the group-id and have [foo "1.0"] (which is the same as [foo/foo "1.0"]).<p>Pushing to Clojars is easier with the "lein-clojars" plugin. Then it's just a "lein push" away.
评论 #3695423 未加载
评论 #3695693 未加载
评论 #3697524 未加载
评论 #3697698 未加载
codehaloabout 13 years ago
In "5. The Language", not one mention of the language's real roots - Lisp.<p>Very unfortunate, IMHO.
评论 #3694550 未加载
kreekabout 13 years ago
Nice to see chapter 4 on setting up a dev environment early on, many clojure tutorials (and even a book I have) leave this out, or until the end. Working within a project is how you'll write real-world code so you might as well start with it.
ludwigvanabout 13 years ago
Thanks for this, very useful.<p>Btw,<p><pre><code> git config --global core.editor nano </code></pre> This made me smile :)
评论 #3695035 未加载
ineedtosleepabout 13 years ago
What does the author mean here?<p>&#62; "If you're using [...] another OS (tsk tsk tsk) [...]"<p>I develop on Mint and Gentoo, so any joking here is probably passing over me. Other than a jab at MS (and maybe Apple), does this mean that programming in Clojure would/could be difficult outside of Linux?
评论 #3694784 未加载