background preloader

The Clojure Toolbox

The Clojure Toolbox
Related:  Programming, Coding & Scripting

Training and Certification Resources NetBeans and Java Training Several of these courses also help you prepare for certification in Java technology. Oracle University: Training Offerings for Developers The following courses from Oracle University use NetBeans IDE. Java Certification Validate your development skills and advance your career with an Oracle Certification in Java technology. Discounts are available when you purchase a Certification Value Package which includes the training, certification exam voucher and a free exam retake – just in case you need it. Other Professional Training Offerings for Developers Java Passion: Online Classes for anyone who wants to enhance their knowledge and programming skill on all Java and Web 2.0 technologies: Courses cover Java SE, Java EE, Ajax, Ruby/Ruby on Rails, Groovy, Scala, and much more! Community Training Here are free courses from the NetBeans community and beyond: NetBeans Platform Certified Training Also check out our community support options.

Prismatic's "Graph" at Strange Loop At last month's Strange Loop conference, I gave a talk about "Graph", a library developed at Prismatic to simplify some of our complex software systems. This post will briefly summarize the main ideas behind Graph; if you're left wanting more, the talk slides go into considerably more detail, including real-world examples, and we'll be answering questions in the Hacker News thread. And if you're exited about working with us to release some great (soon to be) open source Clojure libraries like Graph, please ping us -- we're hiring! Motivation Software engineering is very important to us at Prismatic. We've written about our fondness for fine-grained, composable abstractions (FCAs). At left is our production API service, and at right is our real-time newsfeed builder pipeline. To keep ourselves happy and sane, we need a way to cleanly implement complex systems such as these. A simple example So, what's wrong with this implementation? What is Graph? This gets us 90% of the way there. Graph

Clojure Atlas – An experimental visualization of the Clojure language and its standard library 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 -

Schema 0.2.0: back with Clojure(Script) data coercion tl;dr: Schema 0.2.0 is here, adding support for data coercion and 5x faster validation. We've also added Schema support in Plumbing and Graph 0.2.0. Join the discussion on Hacker News and let us know what you think. Back in September, Prismatic released the first version of Schema, and we've been blown away by the interest and contributions from the community since. In addition to a variety of small bugfixes, improvements, and a huge performance boost (see the Changelog), version 0.2.0 brings something new to the party: transformations, which provide a way to perform structured manipulation of data using rules cued by Schemas. Why Transformations? One reason we built Schema was to make sure our backend API servers send and receive properly formed data when communicating with our iOS and web clients. Clojure has a much more nuanced system of data types than JSON, and so simple JSON parsing of inputs did not always produce the data we ordered. And the fun doesn't stop at coercion. Coercion

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:

New to Java Programming Center Java Basics offers a quick overview and the steps to create a 'Hello, World' program. Get Started provides the resources needed to develop applications with Java technologies Training includes courses, certifications and package information Connect with the millions of existing Java professionals via conferences, blogs and more. Young Developers covers online resources to learn Java application development at any age, as well as a tutorial about Minecraft mods and Java What's New! JavaOne 2014 Sessions Replay Available Virtual Technology Summit on Demand Java The Complete Reference, by Herbert Schildt (Free Sample) 20% discount on the latest Java Books from Oracle Press Oracle's Java Magazine features The Internet of Things Save 50% on NEW Java ebooks from O’Reilly Media. An array is a ____________ of variables of the same type, referred to through a common name. Click here for the answer Why Java? What Would You Like to Build with Java?

Schema for Clojure(Script) Data Shape Declaration and Validation tl;dr: We open-sourced Schema to get many of the benefits of type systems in Clojure with less hassle. In the future, we will use Schema declarations to do awesome things like auto-generate Objective-C classes (take a peek). Join the discussion on Hacker News and tell us what you think One of the touted benefits of functional programming is that it produces easier to understand and more reusable code. This is a pure function. Now, the author of this function could definitely have written a doc-string for the function, explaining the 'shape' that share-counts and updates ought to have: This is less than ideal for a number of reasons: In order to easily understand this function, it's not only nice to know it's free of side-effect or mutation, we also want to understand how to use this function: what kind of data should I provide it and what will it give me back. Don't you really just want static types? Introducing Schema An extensible protocol Schemas are still just data Flexible validation

Clojure - Functional Programming for the JVM by R. Mark Volkmann, Partner Object Computing, Inc. (OCI) last updated on 6/2/13 Contents Introduction The goal of this article is to provide a fairly comprehensive introduction to the Clojure programming language. Please send feedback on errors and ways to improve explanations to mark@ociweb.com, or fork the repository and send a pull-request. You said X, but the correct thing to say is Y. Updates to this article that indicate the "last updated" date and provide a dated list of changes will be provided at Code examples in this article often show the return value of a function call or its output in a line comment (begins with a semicolon) followed by "->" and the result. (+ 1 2) ; showing return value -> 3 (println "Hello") ; return value is nil, showing output -> Hello Functional Programming Functional programming is a style of programming that emphasizes "first-class" functions that are "pure". In practice, applications need to have some side effects.

Related: