Fork me on GitHub

convention

    comment your magic codes

    19 Dec 2010

    Richard Huang (flyerhzm@gmail.com)

    Ruby/Rails provides a lot of magic codes, especially for metaprogramming, they are powerful, less codes to implement more functions, but they are not intuition, you should write good comment for your magic codes. Read More

    Tags 


    to_s/to_s(:short)

    16 Aug 2010

    Yincan (shengyincan@gmail.com)

    override the to_s to make the method sensible instead of "display_name", "format_name".. Read More

    Tags 


    Use css sprite automatically

    15 Aug 2010

    Richard Huang (flyerhzm@gmail.com)

    Using css sprite can reduce a large number of http requests, so it makes the web page loaded much faster. It it painful to composite a lot of images manually, do it automatically. Read More

    Tags