Two hard things in computer science…

The other day I ran into an infinite loop issue that was caused by an invalid cache. It made me think of this saying, which I’ve heard here and there.

It’s a joke, with a bit of truth. 😂

Set default node version with NVM

I was recently figuring out how to use nvm, and one thing that stood out to me is that I needed to set the default version of node that I wanted to use when opening a new tab.

Because I was new to using nvm it took me a while to find the commands. So, if you happen to find this article while configuring nvm, hopefully you find this useful.

# Install the version that you would like 
nvm install 6.1.0

# Set 6.1.0 (or another version) as default
nvm alias default 6.1.0

Then you can open a new tab and if you run node -v, you should see v6.1.0 (or whichever version you set as the default.

Easy peasy, right? Hopefully this helps you if you’re having some issues!

Barry Schwartz: Our loss of wisdom

One of my coworkers recently shared this video, so I thought it worth a watch. I’m glad I did watch it. 😀

A wise person knows when and how to make the exception to every rule.

A wise person knows when and how to improvise.

Rules and procedures may be dumb, but they spare you from thinking.

– Scott Simon

We know why these scripts are there. We don’t trust the judgement of teachers enough to let them loose on their own. Scripts like these are insurance policies against disaster. And they prevent disaster. But what they ensure in its place is mediocracy.

We must ask, not just is it profitable, but is it right.

– Barack Obama

The single most important thing kids need to learn is character. They need to learn to respect themselves. They need to learn to respect their schoolmates. They need to learn to respect their teachers. They need to learn to respect learning. That’s the principle objective. If you do that, the rest is pretty much down hill.