Rails Best Practices – My Favorites

July 6th, 2011 | by kshaikh | tech, web |

Rails Best Practices View more presentations from Wen-Tien Chang Here are my favorites slides numbers #13 – Move finders to named scope #15 – Use model accociation #17 – Use scope access #19 – Add model virtual attributes #22 – Use model callback #25 – Replace complex creation with factory method #28 – Move model [...]



CATEGORY: Tech, Web

Static code analysis in Ruby

July 4th, 2011 | by kshaikh | tech |

Static code analysis in Ruby can be done using metric_fu. metric_fu is a nice gem which internally uses Saikuro, Flog, Flay, Rcov, Reek, Roodi, Churn, RailsBestPractices and generals useful quality metrics about the code. With the help of above it analyzes code for complexity, convention compliance, duplicate and unused code. Saikuro Saikuro analyzes code and [...]



CATEGORY: Tech



Static code analysis using Sonar

June 6th, 2011 | by kshaikh | tech |

Sonar is a static code analysis tool that covers below aspects of code quality. Architecture & design Code comments Coding rules for mainly using checkstyle Potential bugs Code complexity Unit tests and code coverage Code Duplications Download and install Sonar Assuming you have java already installed Download the latest version from this page - http://www.sonarsource.org/downloads/ Unzip [...]



CATEGORY: Tech