On the SPOT: David G. Simmons

Read the original article at my Real Blog

Fewer Lines of Java

Tuesday Feb 26, 2008

It has been pointed out to me by another team member that thanks to the magic of the SPOT Libraries, I could have reduced my number of Java lines by replacing:

    try {
        Thread.sleep(250);
    } catch (InterruptedException ex) {
        ex.printStackTrace();
    }
with:
    Utils.sleep(250);
What could be easier?
[ It's easier to get forgiveness for being wrong than forgiveness for being right. ]

Like this post? del.icio.us | furl | slashdot | technorati | digg
Comments:

Post a Comment:
Comments are closed for this entry.