Sensible Development Dotfiles

author image
By Ben Radler

My Dotfiles repo contains a sensible set of vim, fish, zsh, git, and tmux configuration files that work well for my development workflow (thanks mdp!).

These are a wonderful way to keep track of the plethora of configuration files that you'll undoubtedly set up while working as a developer, and quickly install them on another machine. Nothing like having your environments on your home and work boxes be the same!

Continue Reading

Where I've Been Since November 2014 (aka Breaking Your Femur 101)

author image
By Ben Radler

The Accident

On November 17, 2014 at around 9:30AM, I was involved in a bicycle accident at the intersection of 3rd Street and Market Street in San Francisco. I was traveling northbound on Market Street at around 10 miles per hour as I entered the intersection on a solid green light.

There was a man standing in the middle of market street, and at the very last moment, he stepped directly in front me. I collided with him handlebars-to-chest, and immediately fell to my right side. Despite over 20 years of bicycling, I went against my instinct and stiffened up and put my hand down to my side. My hand and wrist broke much of my fall, and I put a hairline fracture in the scaphoid bone in my right wrist.

Continue Reading

NPM and Nodemon install errors

author image
By Ben Radler

Having trouble getting packages installed in NPM? Getting an error that looks like this??

~ npm install -g nodemon
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! path /Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR! ENOENT, open '/Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
~ which npm
/usr/local/bin/npm
~ node -v
v0.10.32
~ which node
/Users/me/.nvm/v0.10.32/bin/node
~ cd ~/Code/onelogin/search

The solution is simple.

Continue Reading

Awesome Git Configuration, Shortcuts, and Aliases

author image
By Ben Radler

Introduction

When working with Git, and software in general, the most important thing for me is that the act of using the application blends seamlessly into my workflow. It should feel natural, simple, and shouldn't slow you down.

I've worked with Git for a few years now, and like all things, I've kept track of my favorite tweaks and configurations. I'd like to share a few of the most awesome Git shortcuts I use on a daily basis.

Continue Reading

Bangs (exclamation points) in front of function definitions in Javascript?

author image
By Ben Radler

I recently came across a function declaration with a Javascript syntax that I had never seen before.

!function() {
  // some logic
}

This ! bang is called the unary operator.

I immediately started playing around in the Node console to try and understand this syntax.

Continue Reading

© 2023 benradler.com. I love you.