Abstracting the blogosphere

Abpost .n. Abstract of a post

Archive for the ‘Programming’ Category

Advocating the use of code coverage By Eric Sink

Posted by suntzu on October 14, 2006

Eric is among those software gurus who believe that writing software can be more of science provided a strict discipline is taken towards creation of software. Code coverage is one such discipline which should be followed if you are in the business of software creation. This is without saying that you need solid unit testing infrastructure to fuel code coverage.

Code coverage is nevertheless a very daunting task and as you start to approach the 100% mark, things become more difficult as it takes huge effort to come up with enough unit tests to get all the way to 100%.

In his post he talks about what should be your code coverage goals be and how to achieve it. Another point worth talking from the post when he says “In my case, code coverage forced me to look at my code and realize that some of my coding practices weren’t very smart.”

Code coverage and Unit testing are tools and hence works as enhancer (not a replacement) for over all code quality. They provide us a way of increasing the quality of our code, but 100% code coverage certainly does not mean 100% code quality

A nice post if you are a software soldier

Posted in Productivity, Programming, Software testing | Leave a Comment »

Ruby For Rails by David A Black – Book Review

Posted by suntzu on October 10, 2006

In his blog, Rob Sanheim wrote a review of “Ruby For Rails“. He rates this book above the esteemed PickAxe (ie Programming Ruby: Second Edition) book.

Some of the highlights of the books:

  • Modules and classes, control flow, exceptions, variables and methods
  • Role of self and how scope works in Ruby
  • Core libraries, regular expressions, and metaprogramming
  • Dynamic Ruby in chapter 13: “Ruby Dyna is a killer. This chapter has
    • covered Singleton classes and misconceptions around it
    • eval’s family of functions are fully covered
  • Procs and lambdas are explained well along with their relationship with blocks
  • Callbacks such as method_missing, included, and inherited are covered
  • Chapter 14 and 17 are the most Rail heavy section covering its domain model and technique for exploring Rails sources.

Some of lowlights of the books:

  • Auther is a bit verbose in some sections of the book
  • Reader is expected to have some background in Ruby programming
  • Expecting more meat in chapter 17: “Techniques for exploring the Rails souce code”

All in all, read the post if you want to get into the Rails development

Posted in Books, Programming, Startup | Leave a Comment »