this, still the best book on writing a compiler. Though, not as clear and broad as i thought.
there are thievery pdf versions online, but all code/formula are screwed. You better buy the real thing.
Dragon Book Table of Contents xahlee.info/parser/dragon_…
in most langs,import/export r about names (aka identifiers,symbols)。In #JS es2015,it's values & is extremely complex。① context dependent ad hoc syntax。those statements r a lil' lang by themselfs ② huge amount of syntactic variations. ③ mix concept of value/name/namespac
generative art = piss splash updated with programing.
here's history of processing, the generative art programing language for non-programers. Non-programers? lol, actually, it's java. maxoffsky.com/research/resea…
#JavaScript this is what coding DOM is like.
DOM = ass pain.
2 major problems: ① your code logic must flow in reverse direction, block by block. ② lots embeded "string", it's like coding inside string.
you wonder why DOM's like that. ① utter incompetence? ② historical bagage? From my 20 years of observation of industry, i think it's enterprise induced total incompetence. Other examples are unix+c of 1980s, C++, and whole Java thing starting from 1995.
does any know a js/dom framework that's based on nested list/object to represent dom tree?
collection of Programing Problems xahlee.info/comp/programin…
use your fav lang, js python ruby golang haskell
sometimes in programing language design, you know something you don't like, but can't explain it well. Only years after, you found the exact reason, able to explain it as logic, and to have short describtive phrase, that when people hear, they go ah.
A name for a thing/concept, or descriptive phrase, is very powerful. When you don't have it, you mumble and people don't buy it. When you have it, sometimes it can even help falsity. For this reason, many cults, are full of jargons, unix hacker cult, perl, scientology, sjw.
for example, popular jargon in programing include: timtowtdi (perl), KISS, DRY, unix philosophy, patterns, agile. sjw jargon includes: microagression, cis, gaslighting, safespace, intersectionality.
here's 2 different web design of navigation panel. The 1 with scroll bar is better. because, if not, when doc is long, the left side is blank, and needs to scroll all the way to the top to use it.
currently, trying to solve the navigation panel problem on my site. e.g. xahlee.info/js/js.html
1 visibility problem。only the top few links visible
2 hard to find which link in panel is the current article.
3 hard to use. needs to scroll a lot to use buried links in panel.