NPM Style installs for composer

I have been clueless up until recently about how to install things with composer in the same way that it is done with NPM. Its amazing that something so small is so easy to do yet can still remain mysterious. Perhaps because in the grand scheme of things, it is…

How to be a web developer: Will you be successful?

First let me start this post by saying I am truly grateful to be working in this field. Being a developer is pretty much the top of the food chain in terms of what you can do for a career. Let's dissect the pros and cons: Pros You get paid…

What is a service class in PHP?

When you hear the term service in relation to PHP it can lead to some ambiguity. Like the previous post where we referred to repositories, the term services has several connotations in the world of programming. For example, you have a Service running on your computer like Nginx, or in…

What is a repository and how does it work?

When I first heard about the term "repository" in reference to code I was throughly confused. Prior to Laravel, the only place I had seen repositories were in the context of SVN or a GIT repo possibly. So what other context is there? What does this term mean in relation…

Eliminating conditional branches with dynamic method names.

How to use dynamic functoin names JavaScript: In this short article we are going to examine how to write less conditional block and make use of the dynamic nature of JavaScript to write cleaner code. The concepts below just demonstrate the technique, I make no claims to best practices or…

Setting up Testem to run PhoneGap tests.

Testing is like that Jay-Z album ... a gift and a curse. ( Not that I actually listen to him ) The benefits of testing are: You can refactor your code with ease. It promotes loose coupling and more coherent code. You find suspicious code before it becomes an issue down the road…