the average developer spends 42% of their
work week on maintenance
Indeed, I see that happening all around me when I watch how my friends build their startups. The first few months they are productive, and then they sink deeper and deeper into the quicksand of catching up with changes in their stack.So far, I have done a somewhat good job of avoiding that. And I have a keen eye on avoiding it for the future.
I think a good stack to use is:
OS: Debian
DB: SQLite
Webserver: Apache
Backend Language: Python
Backend Library: Django
Frontend: HTML + CSS + Javascript
Frontend library: Handlebars
And no other dependencies.I called Django a "library" instead of a framework, because I do not create projects via "django-admin startproject myproject" but rather just do "import django" in the files that make use of Django functionality.
In the frontend, the only thing I use a library for is templating content that is dynamically updated on the client. Handlebars does it in a sane way.
This way, I expect that my stack is stable enough for me to keep all projects functional for decades to come. With less than a week of maintenance per year.