dot.Using Making technology about computers, and computers about usability.

Posts Tagged development

Testing messy bash scripts

Read this book too!
I am reading the book “Refactoring” by Martin Fowler, and just reek with ideas about improving software, as well as solving problems I head-banged during my “software” development career.
On my last job, there was this huge messy heap of bash scripts that were “The Installation” of their main software product. It was [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

HAML Caching CGI

Mike Zillion asked about how to make HAML a processor (of haml files) for Apache on the HAML Group on Google. That inspired me to write a proper wrapper with caching that will Hamlize templates into HTML and cache those for speedy access on subsequent requests.
This is what I came up with:

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Writing helpers with Haml and rSpec

Recently Wolfman posted a description about Rails helpers written with Haml::Helpers#open and rSpec.
I want it to be more DRY than it is, since the whole application is using rSpec and Haml, all helpers should have the same before(:each)
So basically – what I did was :

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Using FireBug’s console logger with GreaseMonkey 0.6.4

FireBug is the best tool (a Firefox extension) for web development ever invented … well, at least one of the best.
The console method  (formerly known as printfire) is a feature of FireBug that enables logging into firebug’s console with different levels. Thing is – it does not quite work with GreaseMonkey scripts. Until now!
The solution [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Ruby + proper specifications = rSpec

I had an enlightenment today – truly an enlightenment.
After months of reading and getting to know what test driven development and extreme programming is all about, I have finally been able to practice what I preach. Since I work with several programmers and the product we are writing is so new that it is still [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

The Ultimate Development GUI

For the last several days I have been trying to find the perfect tool for development of the many projects I have. My basic requirement was a good editor (TextMate would be a dream, but I don’t own a Mac yet), and a good integration with the filesystem – either remote, or in version control.
After [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis