background preloader

The Clojure Toolbox

The Clojure Toolbox
Related:  Programming, Coding & Scripting

First hundred days of Clojure | byte bohemian In politics you have a one hundred days period of grace. In December I started to work with Clojure, so I guess it’s time to have a clojure look. In the last couple of years I encountered a couple of different languages. At scoyo it was ActionScript and Flex from Adobe. When we started to work on our new product I said to my boss and my colleagues: In Java I know how a state of the art application has to look like, but I have no clue how to build a Clojure application. Leiningen (aka lein) – The build and dependency managmement tool for Clojure.Noir – A nice library to build websites/-services in Clojure.CongoMongo and mongoDB – The database driver and the database we use. My first days with Clojure When you are coming from a language like Java you are used to some things like:Structure everything – Static typing is your friend, so smack every data you have into a class. Lots of ceremony – When you work in Java you create a huge amount of classes. (for [i (range 1 100)] (println i))

Clojure box - loading book examples from "Programming Clojure" > Wherever the files goes after C-x C-f ~/.emacs and then C-x C-s is where > emacs thinks your home directory is. I would just go with that. It's > normally in %appdata%, but it won't be there until you create it and save > it. yes, this is better than my #2 > Robert? Here is my entire .emacs file, which is extremely basic but got me up and running at least: (setq swank-clojure-extra-classpaths '()) (add-to-list 'swank-clojure-extra-classpaths (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/technomancy-clojure-http-client/src") (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. You'll notice the paths are different (I changed it during my first post) but obviously they aren't relevant. But with 1.0 out now I haven't had as many issues. Rob - show quoted text -

Clojure Libraries Clojure - home New to Java Programming Center From printers and bank machines to e-book readers and cars, Java technology is predominant in today’s embedded systems. It's in 5 billion SIMs and Smart Cards, 3 billion mobile handsets, 80 million TV devices, including every Blu-ray player shipped, and many other embedded solutions. Three technologies are designed for embedded systems: Java SE Embedded for devices with 32MB; Java ME Embedded for devices with 8MB and Java Embedded Suite for devices connecting to a database. Java ME is an environment for applications running on mobile and embedded systems. Java SE Embedded and small devices In the Java Magazine Internet of Things (IoT) issue, Henrik Stahl discusses IoT for Java developers. Lego Mindstorms EV3 kits are a great way to start programming sensors with Java. Java developers gave detailed JavaOne talks about building applications with small open-source devices such as Arduino, Nao Robot, Raspberry Pi and more. Programming with Java ME on mobile devices

Incanter: Statistical Computing and Graphics Environment for Clojure Basic Web Development | Clojure Documentation | Clojure Docs This guide covers building a simple web-application using common Clojure libraries. When you're done working through it, you'll have a little webapp that displays some (x, y) locations from a database, letting you add more locations as well. It's assumed that you're already somewhat familiar with Clojure. If not, see the Getting Started and Introduction guides. This work is licensed under a Creative Commons Attribution 3.0 Unported License (including images & stylesheets). The source is available on Github. This guide uses Clojure 1.5, as well as current versions of the component libraries noted below. Conceptual Overview of Components We'll use four major components (briefly described below) for our little webapp: RingCompojureHiccupH2 Ring Ring (at clojars) is a foundational Clojure web application library. For this tutorial, we won't actually need to deal with these maps by-hand, as you'll soon see. For more info, see: Compojure Hiccup [:p "Hello, " [:i "doctor"] " Jones."] becomes See Also

Learn Clojure in 15 minutes, perhaps Moving on from pointless flamebait rants, here's something a bit more constructive. Inspired by Tyler Neylon's excellent Learn Lua in 15 minutes, I humbly present my original effort at an equivalent for Clojure (also available as a gist). Further Reading This is far from exhaustive, but hopefully it's enought o get you on your feet. Clojure.org has lots of articles: Clojuredocs.org has documentation with examples for most core functions: 4Clojure is a great way to build your clojure/FP skills: Clojure-doc.org (yeah, really) has a number of getting started articles:

Writing a Clojure/Clojurescript Web Project: Part 1 | Clojured - Figuring out Clojure, Clojurescript, Web frameworks and more This post is an explanation of what I'm using to write Clojure/Clojurescript web projects. I will take you through the basics of writing web app using the technologies I enjoy working with the most. It will delve into the following topics:A basic review and explanation of the concepts of Clojure/Clojurescript.The software ecosystem surrounding writing a Clojure/Clojurescript web project.The libraries and frameworks I've chosen to use.How to write something basic. Part 2 will cover: How to run the server and deploy a standalone (uberjar) executable which includes your web project and the jetty web server to serve it.Adding NoSQL database functionality with the Redis NoSQL database server and the carmine Redis library. Basic Clojure and Clojurescript Roles and Concepts This is to reinforce the difference between Clojure and Clojurescript. Software Ecosystem I'm doing my development on Windows 7, however the tools I'm using should all be available for both OSX and Linux. Leiningen Light Table

Related: