Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on OOP vs Procedural Code. Parent comment
Objects don't do work - methods do. Objects organize state.
Methods are functions with implicit state that may be shared with other methods. These functions may be functional (as in Actors) or imperative.
Objects help organize state.
You can "OOP" in any language; it doesn't actually require any language-level constructs. (Yup, you can do OOP in assembly language, Fortran 66, etc.)
There are no comments on this comment yet.
Objects don't do work - methods do. Objects organize state.
Methods are functions with implicit state that may be shared with other methods. These functions may be functional (as in Actors) or imperative.
Objects help organize state.
You can "OOP" in any language; it doesn't actually require any language-level constructs. (Yup, you can do OOP in assembly language, Fortran 66, etc.)