4 ms·
I'm personally always confused with those batteries-included frameworks like Django, FastAPI and similar. Sure, they might be easier for a beginner to quickly w
by BerislavLopac 2y ago
I'm personally always confused with those batteries-included frameworks like Django, FastAPI and similar. Sure, they might be easier for a beginner to quickly whip up a simple Web site/app, but in my experience as your requirements grow they quickly start getting in your way.
Starting with more flexible initial components (e.g. Starlette) and adding batteries (SQLAlchemy, Jinja2, HTMX...) as needed allows for a sensible evolutionary approach and prevents painting yourself into a corner with early decisions.
- simplecto 2y agoDjango is like a marriage. You have to commit fully to get the most out of it. You have to work through the (perceived) suboptimal parts to find a compromise that such that the whole system does not fall down. And with enough time you come to realize there are certain things that are out of scope for the current codebase. Just as there are things that are out of scope for the current marriage. hahaha - I dont know...I should stop here. This metaphor is stretching thin
- shawnz 2y agoIs FastAPI really "batteries included"? I would say that it's orders of magnitude lighter than Django
- JPKab 2y agoSo I don't disagree with your general premise, but FastAPI isn't in the same ballpark or even universe with Django. Yes, it's heavier than Starlette, but it's an extremely light framework, and was really intended to be a successor to microframeworks like Flask.