Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python Best Practice Patterns. Parent comment
Compare:
def makeMove(self, target): enemy_piece = target.piece if enemy_piece: self.takeEnemyPiece(enemy_piece) target.piece = self self.position = target
def changeCoords(self, foo): if foo.standing_on_it: self.nowItsMine(foo.standing_on_it) foo.standing_on_it = self self.coords = foo
There are no comments on this comment yet.
Compare:
And In the former case, you mostly don't need to consult the source of functions called. In the latter, you're never sure.