Full Clojure project in 5 seconds!
Every time you start a new Clojure project, there is a lot of boilerplate that needs to be added. It can be automated with deps-new
…
Every time you start a new Clojure project, there is a lot of boilerplate that needs to be added. It can be automated with deps-new
…
Clojure is a hosted programming language. This means what you wrote in Clojure will run in an environment of another language. If you can run Clojure where Java or JavaScript runs, can you learn Clojure and conveniently use it in ALL areas of software development?
Clojure and ClojureScript are forms of the same language targeting different hosts - JVM and JavaScript respectively. If you are creating a library, there is a big chance that a significant part of the code will work for both hosts.
The most common way to prepare your Clojure project for distribution is to pack it into a *.jar
file. In Clojure, we usually talk about jars and uberjars…
Here we are going to create a Clojure library, pack it to a JAR file, deploy it to a Maven repository and make its code available from Clojure and ClojureScript projects. We will create the simplest project and will grow it step by step. At the end, we will discuss the build-clj
tool that can be used to create the library template projects.
This article was written for those who want to understand how to work with Clojure CLI (command line interface), and how to configure it with deps.edn
files. There are 2 official articles on this topic. They are both very helpful, but In my opinion, the first one is too brief to gain a good enough understanding of concepts, and the second one is too long for an introduction to the topic. So I tried to write something in between that gives the reader a deep enough explanation of how clj
works, but without all the nitty-gritty details.
This article was written for those who are absolutely new to Clojure and ClojureScript and have a problem distinguishing what hides behind these two terms. It is not about nitty-gritty details. First, we’ll briefly cover what Clojure is and how it works. After that, we’ll see what ClojureScript is and how it’s different.