No, this is not a real Sinatra error :).
This is the personal homepage of Elad Meidar, a web developer and an entrepreneur specializing in Ruby on Rails. I hang around in Israel, and i am currently having the best time of my life over at Fiverr.com
I am a proud member of RailsBridge, Helping new Rails developers get into our world and also contributed a few Patches to the Ruby on Rails core.
Productivity is subjective, Everyone has their own tools that help them to remain productive, focused and on target. I for example try to use DailyGoals to get my daily todo lists on track, but i can’t keep up with updating as i should.
One of the best ways to measure how much work was done, is to actually see how much did you code, thinking about that, i turned to
git log for some help and found out that you can get a list of changed/added lines in on your commits, git is so damn powerful that it even lets you to bound your search to a specific, natural language time frames (ex: “2 weeks ago”).
Now, the fun part. i created this tiny little Ruby program that displays exactly how much did you code, showing the number of commits and LOC inserted, and even shows a simple rate stat of your LOC/commits.
Here it is:
ruby git_productive.rb <path_to_project_root>, might be nice to run is a rake task or a commit hook that sends you and your boss and email with your current code rate.
well, mine shows 120 lines since this morning, considering half of it is probably a plugin, i’d better get back to work and stop blogging.
as always, forks and suggestions are welcome.
You're seeing this error because I think it is funny.