3 ms·
Here’s what I want for a technical blog platform: some way to add tests to the code in the article so that if the tests fail the article notifies the reader it
by ok_dad 4y ago
Here’s what I want for a technical blog platform: some way to add tests to the code in the article so that if the tests fail the article notifies the reader it might be out of date. One test could be “is the software version used here super old?”
I don’t know how many times I’ve read how to do Y with X language and I find it’s incredibly out of date and not I should be doing Y differently, or maybe doing Z instead.
- simonw 4y agoYou could absolutely get something like that working using GitHub Actions. My TIL blog is served out of a GitHub repo - it doesn't have tests against content in the TILs themselves yet, but it wouldn't be a big stretch to add that. Something like nbdev might fit this idea well too: https://nbdev.fast.ai/ https://nbdev.fast.ai/
- ok_dad 4y agoThanks, I think for an upcoming hobby project I might follow your lead and write a blog for myself. I’m trying out zig, and documentation is lacking, so maybe it’ll help some other people get a start. It’ll also give me something to point to in lieu of programming interviews.
- quickthrower2 4y agoWhat would also work, similarly is build your blog using vercel/netlify with tests as part of the deployment processes but are scripts you can run local too.