News for hackers. Stuff that matters.
Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by ridiculous_fish on Sunday March 17, 2019 @08:48PM (#19417836)
One imperfect but compelling analogy is the HTTP GET request.

A GET request was originally envisioned as a request for a file at a path. `http://host/get/this/thing.data` The requestor decides what to do (give me this file), the host obeys.

Nowadays we understand GET requests as abstract. The requestor makes a request, but it is the host who decides what to do with it: forward it somewhere else, emit an error, dynamically generate the content, return a real file, serialize and cache the request, etc. The client doesn't know and can't know what the server does.

Notice in particular that hosts are expected to handle arbitrary URLs sensibly.

Java has no support for this, but Ruby and ObjC have these sort of facilities: forwarding, dynamic replies, etc. It's up to the libraries to make good use of it.

Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by bmn__ on Monday March 18, 2019 @08:51AM (#19420605)
> A GET request was originally envisioned as a request for a file at a path. […] Nowadays […] the host who decides what to do with it: […] dynamically generate the content

Nope, a very early description of HTTP – years before 1.0 – already mentions that.

https://www.w3.org/Protocols/HTTP/Methods.html

Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by pjmlp on Monday March 18, 2019 @02:42AM (#19419108)
Actually Java has partial support for it via proxy classes.

https://docs.oracle.com/javase/9/docs/api/java/lang/reflect/...