Guilherme Rodrigues is a carioca software developer

Why First Do It?

People often ask me: "What does First Do It means?". And that's a pretty sensible thing to ask! The origin So, am I just trying to rip off billions of dollars of some giant sports company marketing budget? Well, no. I'm ripping off someone else! I came across this expression…

Read this article

Explaining

I tried to explain a simple Angular app to someone. It sounded like this: "A controller has a template and a scope. The template accesses the scope to communicate with the controller. The controller might also inject factories or services. These may depend on each other. Many controllers can depend…

Read this article

NordicJS 2015 Highlights

The JavaScript community grows stronger every year, with more conferences happening now than ever before (and more than 76 upcoming). But, more impressingly, they keep getting better and better. On September 10 and 11, I had the pleasure to be at NordicJS 2015, Scandinavia's largest JavaScript conference. Here are my…

Read this article

Change your Mac OS X hostname for a better looking terminal prompt

The first command to run on your new Mac: sudo scutil --set HostName <new name> Finally! I can say goodbye to: [email protected] ~> and hello to: [email protected] ~> :) PS: You should also check out using the awesome iTerm2 terminal emulator along with the excellent fish shell.…

Read this article

Quick Tip: one liner cookie read

For all the obtuse native functions JavaScript offers ("wat".blink()?), there isn't a simple way to parse cookies and get the value of a single key. The inter-webs, however, always provide. In my roamings, I have found what is now my favorite getCookie one liner. Here goes: ('; ' + document.…

Read this article

No need for globals - npm scripts add .bin to PATH

npm is the awesome package manager bundled with the Node.js environment. It is a very simple tool to get started with: you usually just npm install stuff and it ends up in ./node_modules/stuff. You can also globally install some packages by using the global -g flag. mocha…

Read this article