Posted by Chad | Posted in Misc, TDD | Posted on 21-06-2010
3
For pure curiosity reasons, I wanted to know the ratio of lines of code to unit tests. I’m writing all production code in Java and tests in Groovy.
LOC
Finding the lines of code: grep -v -r –include=”*.java” “^[[:space]]*$” * | wc -l
Number of Tests
grep -r –include=”*Test.groovy” “@Test” * | wc -l
Results
LOC: 706, Tests: 82
This yields a ratio of: 8.6 to 1
Posted by Chad | Posted in Misc | Posted on 20-05-2010
0
1. Skip Inbox
When filtering incoming mail, if it’s not something you need to read as soon as you have time, just tell it to skip the inbox. This will cause the email to be immediately archived, but keeps it marked as unread. This works especially well for many of the automated emails you receive from companies and websites (like Facebook) and gets you one step closer to Inbox Zero.
2. Hide Read Lables
Go into Settings and then to Labs. Find “Hide Read Labels”, and enable it. This causes labels that don’t contain any unread email to be hidden from view. It keeps your screen a little less cluttered and allows you to focus on new emails. Your labels are still very easy to reach, just start typing the label name in the search bar and it will pop up as one of the auto-fill options.
More to come as i figure them out!
Posted by Chad | Posted in Misc | Posted on 02-11-2009
1
About a year ago, I stopped blogging publicly. It really just came down to a change in priorities for a while. However, I’m back and excited to get going again. This site is very likely to change over the next little while. I just picked the first decent theme I could find to get things up going.
Anyway… welcome and hopefully you find something I write to be educational, thought provoking or entertaining.
-Chad