Dang, forgot how to write php code

I recently had a similar experience. “What idiot wrote this?”

I just knew it was going to turn out to be me. So I checked the log and…it wasn’t me! I was so happy.

I’m only superficially knowledgeable about web programming, so permit me a dumb question please:

Do web pages really no longer play the game of passing data back and forth so it won’t get lost? Or is all that hassle still present, but buried these days under several layers of (hopefully low-leakage) abstractions?

If you mean having zillions of hidden form fields used solely to pass data from one page to another, I think that’s pretty much dead. You store a session token as a cookie locally and that’s used to retrieve persistent data from the server via XMLHttpRequest. Though all of that is abstracted away via various frameworks.

Well, they sort of can be. The usual process for writing the first compiler on any system is to start by writing an absolute bare-minimum, bare-bones compiler, that’s missing most of the language’s features, in Assembly or machine code or whatever you’ve got. Then you use that to compile a more sophisticated compiler, until eventually you get a full-featured compiler that implements all the language details. And then you compile that one last time, using itself.

As for the first assembler, of course the answer is that you assemble it by hand, on pencil and paper, to get the machine code, and then input that machine code through whatever interface you have available to you.