Comment

Comment by orf

Sorry, but this is really not suitable for much. There is so much wrong with this implementation that I’m not sure where to start. Every call to your template writes to a single file called “index.html”[1] which is then copied to another file when “written”[2]? You also print exceptions rather than allowing people to handle them as they wish.

The idea is nice, but try and remove all file system calls and do this entirely in-memory. This may mean completely changing the API.

1. https://github.com/BrainStormYourWayIn/sierra/blob/main/src/...

2. https://github.com/BrainStormYourWayIn/sierra/blob/main/src/...

parent orf 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton