Is npm not installing properly on Vagrant running on Windows?

Get a Mac! Kidding. (I actually think Microsoft has been more innovative lately.) Run the flag –no-bin-links when you install anything with npm and it will fix your issue. I have a dev Vagrant that I share with my team. I tend to mock things up when I’m playing around at home in the evenings. I work on a Mac at home. So when I confidently came into work with the plan to set up a box for my team to work on, I lost a bunch of time trying to figure out why the npm development tools I wanted, would not install.

Continue reading...

Refactoring a WordPress plugin, Object-oriented, a start

I recently dissected an Object Oriented WordPress plugin boilerplate. This exploration was part of a project I am undertaking to explore best practices for implementing Object Oriented principles in WordPress development. When it comes to implementing coding principles, I’m generally not a purist — I aim to be utilitarian. One of the dictums I drum into my team is: “Make it work, then make it work well.” Do not take that to mean I’m sloppy, the second half of that statement holds as much weight as the first.

Continue reading...

Technological Evolution, Microsoft vs Apple

I’m writing this from my iPad Pro with the Smart Keyboard. It’s a beautiful experience. It’s also a natural evolution of where technology has been going. This past week Microsoft has displayed that it understands this. Apple has not. Writing here is not a perfect experience: I still think multitasking on iOS could benefit by some improvements. But I enjoy being able to reach up, touch the screen and do things.

Continue reading...

How to Globally Ignore files from git

TLDR; nano ~/.gitignore git config –global core.excludesfile ‘~/.gitignore’ Background Git is all the rage, why wouldn’t it be? You can save every iteration of your work; it’s the persistent undo button for developers. Seriously, if you’re not using it, start now. Find a tutorial, stop everything you’re doing and get on that. It will make your work 1000% more efficient. One issue I came across with my workflow is that my Mac, like everyone else’s, places a .

Continue reading...

Ep7 – We hold these truths to be self-evident

On August 28, 1963 Dr. Martin Luther King Jr. gave one of the most powerful speeches of all time. I know I cannot do this speech justice. But to be honest, I’m not doing any of these speeches justice. I’m studying and I’m practicing. I’m studying history, and what makes a great speech and I’m practicing my oratory. I’m doing so with the words of masters in my mouth, and I’m grateful for the opportunity to study these great words.

Continue reading...

Coding Katas: Insertion Sort

Writing tests for sorting algorithms are interesting. The main issue is that the tests would be the same regardless of which algorithm you chose: Given [1], sort returns [1] Given [1,2], sort returns [1,2] Given [2,1], sort returns [1,2] Given [1,2,3], sort returns [1,2,3] Given [2,1,3], sort returns [1,2,3] In Test Driven Development, when writing code for a test, you are supposed to write the least amount of code necessary to make the current test pass.

Continue reading...

Code Katas: Linked Lists

I explored in a previous post the idea of a coding kata. I explained that I thought that data structures, design patterns, and fundamental algorithms are ideal for such practice. I think a good way to practice them is to start with the tests, and practice the kata from there. In this light, last week I put forward the tests for the Stack kata. This week it’s Linked Lists. Background

Continue reading...

Code Katas: The Stack

I explored in my previous post the idea of a coding kata. I expressed that I did not think just any exercise was worthy of being called a kata, because not all exercises are worth of practicing more than a few times. But there are concepts in computer science that are worth repeating again and again, to become a better programmer. What brought this first to my attention was Uncle Bob’s screencast on the Stack kata where he demonstrated Test Driven Development implementing the Stack data structure.

Continue reading...

Exploring Test Driven Code Katas

I’m fairly new to the term Code Kata; I haven’t read any books on the subject. Over the past few years I’ve seen them mentioned around the internet, but with the overuse of the martial arts terminology in coding – everyone’s a ninja – I chose to ignore it for the most part. When I did look into it, the ‘katas’ I saw seemed like a gimmick to sell mere coding exercises.

Continue reading...

Ep6 – Owning Books

On April 8, 1933, the Main Office for Press and Propaganda of the German Student Union proclaimed a nationwide “Action against the Un-German Spirit”, which was to climax in a literary purge or “cleansing” by fire. On May 10, 1933, Nazi Germany staged an event unseen since the middle ages young German students from universities, which formerly had been regarded as among the finest in the world, gathered to burn over 25k books.

Continue reading...