In Programming at 53: Code Has No Age, Antonio (@antonioprosperi2svg) describes returning to programming in the evenings after working at a factory during the day. He traces that return through three small examples of putting words on a screen, from a Commodore 64 program to a modern web page.
Follow where the output goes
In Antonio's BASIC example, line 10 prints a greeting and line 20 jumps back to line 10. The greeting stays the same each time. The interesting part is the flow of control. A reader can point to the instruction that produces output and the instruction that makes it happen again.
The modern JavaScript example uses a counter and a stopping condition. The counter starts at zero and the body runs while the counter is less than ten. Each pass writes to the developer console. In the HTML example, the visible greeting comes from a heading in the document. Someone who opens the page and expects the loop's messages to appear there would need to look in the console instead. That difference gives a returning learner a specific question to ask of a snippet: where should this output appear?
Change one part of the page
Antonio's example of a late-1990s homepage puts choices such as the background and font directly in the markup. His modern example links a separate stylesheet, and the CSS rule changes the heading's color and font family. Reading the two examples side by side gives a learner a way to locate the piece that controls a visible result. The heading text is in the HTML and the color is in the stylesheet.
Antonio says AI helps him with JavaScript and describes spending about a year tinkering again. The compact examples leave room to see what each change does. Which would make a better first experiment when returning to code: predicting how many messages reach the console or finding the rule that changes a heading's color?