Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I do that sometimes with java code. My support guys have given me some "thanks, your code is easy to read" type emails occasionally. Good naming helps, although some consider it overly verbose. To wit:

    public static final BigDecimal BY_100 = new BigDecimal("100.00");
    ...
    BigDecimal amountInDollars = amountInCents.divide(BY_100);
Sometimes I do it just for my own amusement, too.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: