background preloader

Try Clojure

Try Clojure

Fast Track Clojure functional-koans/clojure-koans Getting Started with Titanium, a Clojure graph library About this guide Every journey begins with a single (. This guide is meant to provide a quick taste of Titanium and all the power it provides. What Titanium isWhat Titanium is notClojure and Titan version requirementsHow to include Titanium in your projectA very brief introduction to graph databasesHow to create vertices and edgesHow to find vertices againHow to execute simple queriesHow to remove objectsGraph theory for smug lisp weenies This work is licensed under a Creative Commons Attribution 3.0 Unported License (including images & stylesheets). What version of Titanium does this guide cover? This guide covers Titanium 1.0.0-beta1. Titanium Overview Titanium is a Clojure graph library built on top of Aurelius Titan. To learn more about the Titan database, please see the following: What Titanium is not Titanium is not a database. Supported Clojure versions Titanium is built from the ground up for Clojure 1.4 and later. Adding Titanium dependency to your project With Leiningen With Maven

Clojure Libraries Clojure Tutorial For the Non-Lisp Programmer | Moxley Stratton I intend to keep this tutorial as accurate and up-to-date as possible. If you have any suggestions for changes, please leave a comment at the bottom of this page. Clojure is a functional lisp dialect that uses the Java Virtual Runtime as its platform. The language home page is at Table of Contents A Quick Comparison In C-like languages, a function call might look something like this: In Clojure, the same function call would look like this: Here, Clojure’s syntax differs in these ways: The opening parenthesis is to the left of the function name.There are no commas delimiting the function parameters.By convention, words in a function name are separated by dashes. There’s not a huge difference. Here’s how adding two values might look in a C-like language: And here’s how it would look in Clojure: In C, the plus operator goes in between the two operands. Installing Clojure A fast and easy way to get started with Clojure is to download and run Clooj. Numbers Booleans Nil Strings Symbols

Clojure 101: clojure def If you have nested associative structure than using assoc-in and update-in you can manipulate the inner structured item and get back a newly nested structure. update-in takes the sequence of keys to find the location and a function to apply to the old value at that location: (def m {:a [1 2 3]})(update-in m [:a] conj 4)=> {:a [1 2 3 4]} Nested map update(def m {:a {:b [1 2 3]}})(update-in m [:a :b] conj 4)=> {:a {:b [1 2 3 4]}} Apply merge function to an inner map(def m {:a 1 :config {:b 1}})(update-in m [:config] merge {:b 3})=> {:a 1, :config {:b 3}} We can also apply the same functions to the vectors also. (def v [:a {:c 2, :b 1} :d])(v 2)=> :d ;Item at the 3rd index We can use both sequential and associative de-structuring binds on vectors:(let [{fred 2} v]fred)=> :d assoc-in also takes the sequence of keys and a new value. (assoc-in v [1 :rows] 42)=> [:a {:rows 42, :c 2, :b 1} :d] (update-in v [1] assoc :rows 42 :cols 21)=> [:a {:cols 21, :rows 42, :c 2, :b 1} :d]

Self-Taught Developers: Are You Missing Your Foundation You seem to equate "foundation" with knowledge that's not immediately applicable. There's some truth to that, but I think it misses the forest for the trees. Knowledge is just the tip of the iceberg when it comes to excellence in software development. Think of programming like writing an essay. Clearly some knowledge is required; you need to include some information in the essay or it's completely pointless. Programming is similar. Now from your "I'm fine" list it sounds like maybe you're not interested in excellence in programming per se, just in the business value you can create by programming well enough to solve your customers' problems. But if you want to be a good programmer, to really master the skill, then you need a bit more than a few tools that can solve most problems, and being able to learn new skills just in time. I'm self-taught too, so I get it.

Emerick C., Carper B., Grand C. - Clojure Clojure for the Brave… by Daniel Higginbotham This book is going to be published by No Starch Press. If you buy the Leanpub book, you will receive the final digital formats when the book is published as well! *Clojure!* For weeks, months — no! from the very moment you were born — you've felt it calling to you. Now, at long last, the web-based instructional material you have in front of your face will unite you with the programming language you've been longing for. Are you ready, brave reader? The Four Labyrinths To wield Clojure to its fullest, you will need to find your way through the four labyrinths confronting every programmer learning a new language: The Cave of Artifacts. Such a quest is fraught with obstacles and dead ends.

Vimcasts - free screencasts about the text editor Vim Clojure Workshop - Clojure mini cheatsheet Clojure Cup 2013

Related: