Using Generics in Scala

Scala has, in it’s core library, several classes that are intended to contain (at some point or another) some instance of another class. A few examples of this are seen in OptionĀ and Future. These container classes allow you to act upon values that may or may not exist or even to work with values that should appear in the future (hence the name “Future”). The idea of these container classes is fundamentally simple.

Provisioning a remote server with Ansible

If you’ve ever manually provisioned a server before, you know the feeling of excitement that you receive once you’re finished and your application is running on a remote machine. If you’ve ever provisioned two servers identically, you know the feeling of dread from getting it exactly right the second time. Thankfully, tools like Ansible exist to help us provision multiple servers exactly the same way.

Adding Trigram Searching to a Clojure Webapp with YeSQL, Migratus, and Postgres

A Trigram is a three character subsection of a string of text. This allows you to match text if you’re close to the actual text you’re looking for. For example, the string foobar can be represented as the following trigrams: foo, oob, oba, bar. Click here to learn how to use Trigrams to elevate your search capabilities!

Using Futures in Clojure

It’s late at night so I’ll keep this post short. I’m going to quickly cover how to use Futures in Clojure and why you would want to use them. Let’s start with the why. What is a Future? A future is simply a function that executes code on a background thread and can be dereferenced […]