Skip to main content

Brandon Bohling

Underscore Your JavaScript This Moment

Up until last year it had been many years since I had been a full-time developer. After a year back in the code, I still do not feel as competent as I felt in my prime. So maybe what I am about to share is common knowledge among the developer community, but just in case… If you are developing solutions using JavaScript I highly recommend you check out two helpful libraries: Underscore and Moment.

Configuring Homebrew in a Multi-User Setup

My MacBook Pro is setup with two user accounts: one for personal and one for work. This is certainly not my setup of choice, but if I want to use my own MBP (which is retina) at work then I have to abide by this rule. Anyway, this setup caused an issue when I went to do something that required Homebrew. After a little research and testing Leif Hanack had the best answer.

Hazel and ImageOptim for Easy Image Optimizations

ImageOptim is a fantastic utility to reduce the size of your images without impacting image quality1. I use it both for my web and iOS work, but it was not until today that I made it even better. My Old Workflow Save whatever image I was working on to some folder Open ImageOptim Drag the image onto ImageOptim canvas ImageOptim does its work I move the optimized image to its final destination My New Workflow Save whatever image I was working on to an “optimize” folder Hazel automatically moves to an “optimized” folder Hazel automatically kicks off ImageOptim and it optimizes the image I move the optimized image to its final destination My responsibilities went from four steps to two; a 50% reduction.

Count Lines of Code in a Visual Studio Solution

At work I was wading through a very old code base and was curious how many lines of code it contained. Not wanting to open the seemingly endless list of files in the solution, I went looking for a quick-n-dirty way to count the lines of code in the solution. Preferring a command-line approach than installing a utility that I would likely rarely use, I found this simple powershell snippet:

Redefining My Photography

While a single change cannot take credit, it was a single change that was the catalyst to my rekindled passion for photography. In large part, the changes reduced the friction of taking photos and doing something with the photos. This is going to take some time, but hopefully anyone can learn at least one little nugget. A Brief History To understand my recent changes it would help to at least know a little bit about my photography background.