Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Object-Oriented Programming: A Disaster Story. Parent comment
* You can write a script that's "just" a script, it doesn't have to be an object with a main method or anything like that
* You can have free-floating functions and values at top level
* Modules are first-class and not really objects in the classical OO sense
* Python culture favours using tuples or maps as records, and free-floating functions, over using objects for everything
There are no comments on this comment yet.
* You can write a script that's "just" a script, it doesn't have to be an object with a main method or anything like that
* You can have free-floating functions and values at top level
* Modules are first-class and not really objects in the classical OO sense
* Python culture favours using tuples or maps as records, and free-floating functions, over using objects for everything