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. 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");
  2. 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 ); } }