Disclaimer: these posts are synchronized from Planet Clojure

Hacking the blog: favicon

The fun thing about having a blog which is built with a static site generator is that you get to waste spend time customising it. In today's instalment of "Hacking the blog", we'll see how to add a "favicon", which is that little icon thingy on your tab title.My first order of business was to figure...

A bit of cleanup for smaller, faster pages

I’ve now completed a pass at removing the Flickr images from this blog (many of which no longer rendered) and made a few other changes. There were several posts that used embedded Gists as a way to get syntax highlighting and a download link for each file. In the spirit of using less bandwidth, cons...

Using React.forwardRef in Fulcro

How (and why) do you use React.forwardRef in Fulcro? Let’s first explore ref. When you need access to the raw HTMLElement in React - f.ex. to call .focus on it - you need to create a Ref object[1] (similar to Clojure’s atoms) and pass it to a React DOM element such as dom/div via the magical propert...

Printing n numbers in Clojure

Somewhere I saw a question where one needs to print from 1 to a number in Clojure, and this is a way it could be done:;; print-n-numbers.clj (require '[clojure.string :as string]) (let [number 10] ; setting variable number (println ; let's print the joined sequence (string/join "\n" ; joini...

Use format rather than str

I’d like to share a Clojure trick I’ve been using for years. It’s simple, it makes your code safer; I always highlight it when making reviews. The trick is: don’t use the str function to concatenate strings. Instead, use format. A couple of examples:(let [username "Ivan"] (str "The user `" usernam...

Clojure Deref (July 1, 2022)

Welcome to the Clojure Deref! This is a weekly link/news roundup for the Clojure ecosystem. (@ClojureDeref RSS) Highlights This week we released Clojure 1.12.0-alpha1 with several fixes and enhancements we’ve been working on over the last couple months. We are particularly interested in feed...

Clojure Sound 3 - Hello MIDI Controller

You may not know that music instrument were connected devices even in the Stone Age, that is, many decades ago. In the 80's that even resulted in the standard that facilitated connectivity of heterogeneous devices. Typically, you'd have a keyboard, a synthesizer, some external knobs, maybe effect b...

Software Engineer (all levels) at Gravie

Software Engineer (all levels) at GravieLocal? Remote? MN company using clj/cljs ….. If you’re dreaming about how you can use an awesome tech stack to disrupt an industry... Gravie could be the place for you.  AWS native since we started, we’re using functional programming (clj/cljs/groovy) with aut...

Writing Transducer Friendly Code

Introduction Clojure Transducers are a thing of beauty. They maybe hard to wrap your head around the first time, but are a joy to work with when it clicks. I’m not going to cover Transducers in this post, you can watch Lamdba Island’s video on transducers. All that you need to know is transducers ar...

State of Clojure 2022

I love to see that Clojure is used more and more at work and it does reflect in my own experience as well from when I was job searching recently. Seems that each time I do job searching there are more and more opportunities for Clojure.I'm also very happy with the Clojure ecosystem, which is flouris...

Everyone Should Learn Ethereum

We pride ourselves on being polyglots at 8th Light, and I learn something new from every new language and paradigm I try. If you’re a Javascript or Python programmer, learning Haskell, Rust, or Clojure will give you a new perspective on programming, introduce you to new ideas and patterns, and chall...

Everyone Should Learn Ethereum

We pride ourselves on being polyglots at 8th Light, and I learn something new from every new language and paradigm I try. If you’re a Javascript or Python programmer, learning Haskell, Rust, or Clojure will give you a new perspective on programming, introduce you to new ideas and patterns, and chall...

Clojure Deref (June 2, 2022)

Welcome to the Clojure Deref! This is a weekly link/news roundup for the Clojure ecosystem. (@ClojureDeref RSS) Highlights Today we posted the State of Clojure 2022 Results - check out the state of our community! It’s great to see Clojure continuing to be used more for work and more at bigge...

State of Clojure 2022 Results

With the introduction of Deref (the Clojure weekly news blog) almost 1 year ago, the growth of the Clojure community has become readily evident in the periods between State of Clojure Surveys. The State of Clojure Survey highlights the effect of that growth: Clojure continues to strengthen it...