by rablackburn · 4y ago · 0 comments
I love the author's rewriting of javascript into "human-readable" code[1], while retaining the same visual style as code written in an editor.
It feels like an excellent way of representing what is inside the programmer's mind when writing the code, and I will probably try to replicate it next time I coach a new student.
[1] https://miro.medium.com/max/700/1*aXnY3j41mO3AShqSGiYgBA.png
At first it's "comment only" to describe what I'm trying to achieve and then I'm adding functional code in/around it. I find that really helpful, although some might say there's some "comment bloat" in the end, as I often keep the comments, too.
I think its just their editor's syntax highlighting, likely for Javascript. Highlighting numbers in a different color definitely helps, but highlighting a very small subset (I assume only in and of) of random prepositions doesn't really do much.