Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python’s Law by Stephen McJohn

Python’s Law by Stephen McJohn

PyCon 2013

March 17, 2013
Tweet

More Decks by PyCon 2013

Other Decks in Programming

Transcript

  1. Python’s Law

    View full-size slide

  2. Google copied API’s, e.g.:
    java.lang.Math.max
    But wrote their own code

    View full-size slide

  3. two literary works
    Did Descartes
    Depart
    With the thought
    "Therefore I'm not“?
    magicTools = (new ToolMaterial(1, 208, 6.5F,
    1));
    magicAxe = (new ItemAxe(magicAxeID,
    magicTools)).setItemName("magicAxe");
    magicHoe = (new ItemHoe(magicHoeID,
    magicTools)).setItemName("magicHoe");

    View full-size slide

  4. 3.1415926535

    View full-size slide

  5. private static void rangeCheck(int length,
    int fromIndex, int toIndex) {
    if (fromIndex > toIndex) {
    throw new
    IllegalArgumentException(
    "fromIndex(" + fromIndex + ") >
    toIndex(" + toIndex + ")");
    }
    if (fromIndex < 0) {
    throw new
    ArrayIndexOutOfBoundsException(fromInd
    ex);
    }
    if (toIndex > length) {
    throw new
    ArrayIndexOutOfBoundsException(toIndex
    );
    }
    }

    View full-size slide

  6. • ategories: Patent Law

    View full-size slide