Blog
Articles on software development, engineering, and lessons learned building real-world software.
2024
2023
Entangled: A Story of Data Re-modeling and 10x Storage ReductionA real-world MongoDB case study from the Entangled consciousness-experiment platform — how re-modeling from hourly to daily documents cut storage by 10x, and why the monthly schema surprisingly grew.
Angular Theming: How to Create a Dynamic Theme Switcher for Light & Dark ModeBuild a dynamic light/dark theme switcher in Angular using CSS variables and a data-theme attribute — clean, maintainable theming with a toggle users can flip.
How to Backup, Restore, and Migrate MongoDB Database: A Step-By-Step GuideA step-by-step guide to backing up, restoring, and migrating MongoDB databases with the mongodump and mongorestore tools — including per-database, per-collection, and index options.
Automating Sitemap Generation with Node.js: The Step-by-Step GuideBuild a fully-automated Node.js server that generates SEO sitemaps and a sitemap index — handling the 50k-URL limit, multi-language pages, and scheduled regeneration with cron.
Service Workers in Angular: The Complete Setup Guide with Best Practices and Troubleshooting TipsA complete guide to setting up a Service Worker in Angular — turn your app into an offline-capable PWA, configure caching and update strategies, and troubleshoot the common hash-mismatch pitfalls.
Pagination in MongoDB: The Only Right Way to Implement it (Avoid Common Mistakes)How to implement pagination in MongoDB correctly with the Aggregation Framework and $facet — one efficient query that avoids the data-inconsistency and performance pitfalls of the common two-call approach.
2022



