The Beauty of Simplicity
In software engineering, we often tend to over-engineer things. We add layers of abstraction that we might need "someday".
"Simplicity is the ultimate sophistication." - Leonardo da Vinci
Keep it Simple, Stupid (KISS)
Complexity kills. It kills performance, it kills maintainability, and it kills developer joy.
When building this blog, I resisted the urge to use a headless CMS, a database, or a complex build pipeline. It's just files on a disk. And it works perfectly.
Code Snippet
Here is a snippet of how I read files in this blog:
const files = fs.readdirSync(blogsDir);
const blogs = files.map(file => {
// process file
});
Simple, right?