5 ms·
Off topic: this NN-512 site has good UX for having no CSS/JS (I know, many of you would claim it's because those are omitted...). Did you use some kind of site
by libria 5y ago
Off topic: this NN-512 site has good UX for having no CSS/JS (I know, many of you would claim it's because those are omitted...). Did you use some kind of site generator?
- 37ef_ced3 5y agoThe program generates the HTML for its own website (in DRAM) and serves that HTML over HTTPS. When you access that webpage, you are communicating with an NN-512 process that is running on a $5/month Linode cloud instance
- libria 5y agoOk ok I see it in e.g., https://nn-512.com/browse/NN-512#64 https://nn-512.com/browse/NN-512#64. The anchor tags for the listings go to top instead of being self-referencing. Is that a bug? Like format = `<h3 id="%d"><a href="#0">%s</a></h3>` + Should be format = `<h3 id="%d"><a href="#%d">%s</a></h3>` + And Fprintf should duplicate a parameter?
- 37ef_ced3 5y agoNo, that's intended. There's an index at the top of each page. You use the index links to jump down. And if you want to jump back up to the index, you use any of the header links. That makes sense to me. It seems useless for a link to point to itself
- libria 5y ago> It seems useless for a link to point to itself Hm. I guess the web has programmed me differently. Say I'm CTRL-F searching through the page and I notice an interesting bit of code and say "Hey I have a question about this". Then I start looking for a shortcut to that one file and assume that shortcut is the nearby <h3> header. I expect this because I've seen this pattern implemented a lot. You could have the <h3> be that local anchor and a short [top] link next to it.
- 37ef_ced3 5y agoYeah, maybe you're right