Un framework est une structure de code pré-écrite qui fournit une fondation pour développer des applications plus rapidement.
Différence Library vs Framework :
- Library : Vous appelez la lib (jQuery)
- Framework : Le framework vous appelle (Inversion of Control)
Frameworks populaires :
Frontend :
- React : Bibliothèque UI (techniquement library)
- Vue.js : Framework progressif
- Angular : Framework complet
- Svelte : Compiler-based
Backend :
- Laravel : PHP élégant
- Symfony : PHP enterprise
- Express.js : Node.js minimaliste
- NestJS : Node.js structuré
- Django : Python batteries-included
- Ruby on Rails : Convention over configuration
Mobile :
- React Native : Cross-platform
- Flutter : Google cross-platform
Avantages :
- Productivité : Faster development
- Structure : Architecture cohérente
- Communauté : Support et ressources
- Sécurité : Best practices intégrées
Inconvénients :
- Learning curve
- Moins de flexibilité
- Overhead performance
Don't reinvent the wheel, use a framework