Bob Nadler, Jr. Bob Nadler, Jr.

Don't miss a post! Subscribe to my mailing list.

No spam, ever. Unsubscribe at any time.
shadows

Middleman, Shadow-CLJS and React

Published over 3 years ago 7 min read

A few months ago I wrote about integrating Middleman with Shadow-CLJS. Today I'm going to expand on that by showing you how to add React to the mix by making a simple BMI calculator from scratch. I'm not going to spend too much time explaining the...

Read more →
MSZ-008 Z II(rear booster #9)

Middleman Shadow-CLJS Project Template

Published over 3 years ago less than 1 min read

Awhile ago I wrote about how to set up Shadow-CLJS with Middleman. I finally got around to making a Middleman project template to ease the process of setting up Shadow-CLJS. The source is available on GitHub.

To use the template, you'll need to have...

Read more →
Running test suite on computer screen

Write the Assertion First

Published over 3 years ago less than 1 min read

When writing automated tests (whether in a TDD fashion or otherwise) I find it helpful to write the assertion first, before any setup code. There are two main reasons I think it is helpful.

One, I think it's useful to begin with the end in mind. Writing...

Read more →
5 different coins in 5 different currency units (Japanese yen, Taiwanese dollar, Malaysian ringgit, US cent, Thai baht)

Formatting Currency in JavaScript

Published almost 4 years ago less than 1 min read

The other day I needed to format some currency values in JavaScript. I remembered coming across Intl.NumberFormat a long time ago on another project, but browser support was sketchy. I looked up the most recent info on caniuse and thankfully almost...

Read more →
In the middle

ClojureScript with Middleman via Shadow-CLJS

Published almost 4 years ago 6 min read

Ruby's Middleman is my preferred tool when I need to generate a static website. In this post I'm going to show you how to set up a Middleman project that uses ClojureScript instead of the default JavaScript or CoffeeScript that ships with Middleman...

Read more →
Pair of boots

boot-selmer

Published over 4 years ago 7 min read

Introduction

I’ve been playing around with Clojure and ClojureScript for awhile. So far I’ve always used Leiningen for managing dependencies and build tasks. I recently decided to give Boot a try. I needed to create a Boot task for compiling Selmer

Read more →
Copy-Paste

xclip for Ubuntu

Published over 5 years ago less than 1 min read

Awhile back I wrote about pbcopy for OS X. These days I find myself using Ubuntu quite often and missed having pbcopy. Turns out there is a package called xclip that does the same thing on Ubuntu! Give it a try!

Read more →
Whooping Crane migration

Rails Data Migration Results

Published over 5 years ago 1 min read

When writing data migrations, it can be useful to know the number of records that were updated / created. If you run your migration in a Rails console, ActiveRecord will print out the database response object like this for PostgreSQL:

2.1.5 :008 >
Read more →
Copy-Paste

OS X pbcopy

Published about 6 years ago less than 1 min read

OS X has a nifty utility program named pbcopy that I just learned about which can be used to copy things to the system clipboard.

For example: cat foo.txt | pbcopy or pbcopy < foo.txt will copy the contents of foo.txt onto the system clipboard.

...
Read more →
Iceberg

Iceberg Classes and Inheritance

Published about 6 years ago less than 1 min read

Better developers than I have written about iceberg classes and why they are a code smell. I’d like to talk about a specific kind of iceberg class I’ve recently come across. This type involves inheritance. Here’s an example of what I mean.

class Job
Read more →