Pivotal Tracker Git integration with ease

This post makes 2 assumptions You are working with Git You are working with Pivotal Tracker At Gogobot, we work with Pivotal Tracker (for various reasons). Pivotal Tracker has very good Git integration, when you commit (and push), the commits can show up as comments to the story. Another very good thing is that you can change the status of a story just by a commit, you can finish, deliver or anything else you might want.

Decorating Devise’s current_user with Draper – Ariejan.net

A great trick to decorate the current_user method from devise using Draper. IMHO it’s actually applicable to any authentication system out there that is using current_user but that requires some testing. Decorators are an awesome way to remove logic from the view or the models, so the models have real business logic and the rest can be “decorated” with another class. If you are looking for more information about decorators, Ryan Bates has a great screencast about it here: http://railscasts.

A Baseline for Front-End Developers – Adventures in JavaScript Development

I stumbled upon this terrific post on Twitter. This post goes into details (very deeply) about what it takes to be a Front End developer these days. The amount of things and tools you need to know are overwhelming. I recommend taking the time and reading it, it’s long, but worth every second you put into it. A Baseline for Front-End Developers – Adventures in JavaScript Development.

Find the source location of a method in your project

Ruby/Rails project sometimes make it hard to find the source location of a method. Sometimes, Duck typing, meta-programming and just plain bad design make it really hard to find where a method was defined and how. Luckily, there’s an easy way around this. So, here’s an example. A few moments ago, I came across this line: First thing I did (obviously) was going to the user class and searching for this method.

Testing the Notifier class with Rspec

Today, I needed to spec the Notifier (mailer) class in a Rails project. I don’t mean to spec the view, I just needed to test if the Notifier class method was being called with some params. For example, I had this user story As a User When I am an owner of an issue And the issue status changes I want to get an email So, all I had to to in my spec, is to test if the Notifier class was being called, I am testing the view in the notifier_spec, so no need to test it twice.

Run your specs in logical groups

I stumbled upon this StackOverflow question: testing – Organizing rspec 2 tests into ‘unit’ and ‘integration’ categories in rails – Stack Overflow. Basically, the guy asks how he can run specs isolated into logical groups, running the unit without running the integration and so on. At Gogobot, we have exactly that, since we run our specs in the CI, we can decide which to run, and they run one after the other and dependent on each other, so if you fail UNIT, the build fails, no need to continue on.

With GOV.UK, British government redefines the online government platform – O’Reilly Radar

Reading this article made me realize there’s hope in making government sites better. The state of the government sites in Israel for example is shameful, all written in .Net, no standards and no cross-platform consideration. It’s a very good read. Why create an open source stack? “Why not?” asked Bracken. “It’s a government platform, and as such it belongs to us all and we want people to contribute and share in its development.

Submit any form with a keyboard shortcut

Say you have a simple form like “Add comment” similar to this imageAdd comment form Now, this is a text-area, so the ENTER key will break rows and will not automatically submit the form to the server. I want to create a flexible way to send the form to the server with a keyboard shortcut like CTRL+ENTER. Thanks to an awesome library by Thomas Fuchs called KeyMaster it turned out to be quite simple.

Yehuda Katz : Tradeoffs and Choices, Why Ruby isn’t Python | RuPy :: Strongly Dynamic Conference on Blip

This video is a bit on the longer side definitely, but if you are a Ruby developer (not a beginner), you will find this talk very interesting.

Remote Pair Programming – Remote pair programming resources, articles, and thoughts.

I have been a remote programmer for a while now (over 3 years), working across time-zones (10 hours difference in many cases). I used this blog a lot as an inspiration and took many great tips. If you are into remote programming and you have remote workers, you should read the posts in this blog. Remote Pair Programming – Remote pair programming resources, articles, and thoughts..