Kind of an advertisement for Ably's paid SaaS, added "(Commercial Service)" tag to the title.
I don't think anyone is under the impression that Jamstack can't do dynamic content. The point of Jamstack is to move away from heavy, large, opinionated frameworks. Especially as most browsers now support echmascript modules as well as the dynamic import method.
I'm thinking a loader shim could get us very close to a similar experience for Svelte with say the Svelte Material UI component library[1], redux and a decent client side router. I've seriously been wanting to play more with these lighter weight toolkits.
I think React + TypeScript is probably better for many web based applications, but a lot of sites/apps don't need that level of overhead, especially with single developer or small team scenarios. Aside, never thought I'd warm up to TypeScript at all.
1. https://sveltematerialui.com/
Three things...
1. When reading/writing text files, should explicitly specify the text format ('utf8' or 'utf-8').
2. You can use the `require` function to read/parse JSON files directly.
3. You should consider pretty-printing your JSON output when writing the file. `JSON.stringify(input, null, 4)` where the second parameter is an optional object serialization method, and the third is a space indentation for pretty printing, usually 2 or 4 when specified.
Came to say largely the same... about half of the great developers I know started by solving a real problem personally, they learned programming enough to solve their own problems, and it was years later they learned some CS or more structural knowledge.
In the end, creating software is a skill of learning and forgetting as needed at a reasonable pace. Very few problems are hard engineering or cs problems.
I haven't done anything myself... mostly moderate posts etc, and did get a docker/compose setup easier to get started with, but haven't had time to circle back around.
I'd been wanting to try taking the time to make an api compatible version in Node or Deno, only so it was in a language/platform I'd be better able to participate in future development/enhancement on.
Again, keeping the API the same, and the same database and data structures to start with. I'm no expert in lamernews... I only did enough so far to make it easy to spin up via a docker-compose.yml file and some minor changes to support environment variables for a couple config bits.
Since the generate fake phone numbers post didn't include source, and wasn't really directly JS related, that has been removed.
Linking to faker.js in npm as this is a much better library for generating fake data, including phone numbers.
While interesting, this is kind of off topic.
That said, this is an instance where maybe the use of Go really isn't ideally setup. In this case, use of Rust may be easier to reason with and possibly perform better. Would also test these relay channels with Node.js as well, though scaling gRPC in node is a bit awkward.
ZeroMQ is another possible solution.
Pretty nice package of components. Feels like a cross between material design and bootstrap with square edges and trimmed down slightly.
About my only critique is cutting the spacing down makes it slightly less mobile friendly.