August 2009

Hard to spot bugs

Tagged:

It took me a full 10 minutes to track down this stupid bug.  It is not intuitive.  I guess it is the penalty one pays for terseness:

          vCostEntry.getCost().put(vDBField, Utils.makeProperString(vExportToExcel).equals("DISCOUNT")?((int)Utils.getDouble(vRawAmount)):GetIntFromFormattedCurrency(vRawAmount));

Some definitions to explain above:

 

  public Map<String, Integer> getCost() {

    return mCost;

Why you will never have enough RAM

Tagged:

Bill Gates is famous for having said we will never need more than 640KB RAM on a personal computer. However if you ask someone today whether say 18GB of RAM is enough for a development workstation, what do you think the answer would be?

I am sure most people would argue even if you run 3 VM's each using 2GB RAM, and an IDE and mail and browsers and Word and whatever, you will not easily exceed 10GB of RAM. So it should be more than enough.

Best UI Ever

Tagged:

This must be one of the slickest web sites ever: http://www.taptaptap.com/#convert

And this app - Convert - has the best UI I have ever witnessed on an iPhone.