3 ms·
object oriented programming. i must have encountered it during my computer science classes and i certainly did some form of oo programming with LPC in MUDs, bu
by em-bee 4y ago
object oriented programming.
i must have encountered it during my computer science classes and i certainly did some form of oo programming with LPC in MUDs, but only when i was programming modules in Pike for the Roxen webserver, it really clicked how oo programming worked.
in Roxen each http request causes a request object to be instantiated which lives for the lifetime of the request. further, each Roxen module gets instantiated as an object for the lifetime of the server process.
the request object would call module objects to process the request. the modules would make changes to the request object which would produce the response to the http request, whereas storing data in a module object caused it to be persistent.
i have been working on this for a while when one morning i woke up with a literal eureka moment as i realized how objects and encapsulation worked.
this happened a few decades ago and it was the most clear moment of this kind that i can still remember.