Monday, August 30, 2010

Epic Fail: JavaDoc

/**
 * This is a Java class. It contains one or more
 * methods that perform certain functions.
 */
class Foo {
  /**
   * A function that takes two parameters and
   * calculates the result depending on these
   * parameters.
   *
   * @param a The first parameter, a String.
   * @param b The second parameter, an integer.
   * @returns the result (as double), depending
   *   on the input parameters.
   * @throws Exception if an exception occurred.
   */
  public double calculateResult(String a, int b)
      throws Exception {
    return ((double) (a.length()*b)) / 3.4;
  }

  /**
   * This is an inner class that contains two
   * public variables.
   */
  class InnerClass {
    /**
     * A public String variable named x.
     */
    public String x;

    /**
     * A public string variable named y.
     */
    public String y;
  }
}

Epic Fail: Error messages

me@mycomputer> spellcheck longdocument.txt
spellcheck: There is at least one spelling error in the document.

me@mycomputer> spellcheck longdocument.txt --detailed
spellcheck: There are exactly 3 spelling errors in the document.

Thursday, August 26, 2010

Think about it?

"It is a profoundly erroneous truism, repeated by all copy-books and by eminent people when they are making speeches, that we should cultivate the habit of thinking of what we are doing. The precise opposite is the case. Civilization advances by extending the number of important operations which we can perform without thinking about them. Operations of thought are like cavalry charges in a battle -- they are strictly limited in number, they require fresh horses, and must only be made at decisive moments." -- Alfred North Whitehead

kR Birgit

Monday, August 16, 2010

n00b

From http://www.urbandictionary.com/define.php?term=noob: "A noob or n00b is someone that lacks intellegance (...)". He couldn't have said it more clearly. ;)

kR Birgit