Skip to main content

Quel framework MV* choisir ?

Votre application JavaScript doit être maintenable, et c’est donc naturellement que vous choisissez d’utiliser un framework MV* pour éviter le code spaghetti.

Sauf que des frameworks MV*, on en ramasse à la pelle. Pour ne citer que certains: AngularJS, Backbone.js, Knockout.js, ember.js. Alors lequel prendre?

Certains choisiront celui qui leur rend le développement le plus agréable. Pour cela, rendez-vous sur TodoMVC, qui montre l’implémentation d’une petite application avec chacun des frameworks MV*.

D’autres choisiront le plus populaire, en se disant qu’il sera probablement mieux maintenu et plus pérenne. Aujourd’hui si j’en compare 4, c’est AngularJS qui tire son épingle du jeu:

Mais attention, ce graphique ne montre que le nombre d’utilisation de ces mots clés dans les recherches, il serait hâtif d’en tirer des conclusions trop approfondies.

D’autres se baseront sur l’éditeur qui soutient: Google pour AngularJS, Microsoft pour Knockout.js

Dans tous les cas, TodoMVC est un bon point de départ puisqu’il donne aussi les liens pour apprendre le framework choisi, par exemple ici pour AngularJS.

Quel que soit votre choix, je vous souhaite une belle application maintenable. Car rappelez-vous:

Il faut toujours programmer comme si la personne qui maintiendra votre code est un psychopathe violent qui sait où vous habitez.

Comments

Arnaud said…
Oh, et une petite information de plus: si vous utilisez AngularJS avec jQuery Mobile, vous risquez de galérer un peu...
Arnaud said…
Pas mieux avec Knockout.js non plus, d'ailleurs.
Arnaud said…
Par contre JsRender fonctionne très bien avec jQuery mobile. Et il y a JsViews si on veut du MVVM.

Popular posts from this blog

Learn Meteor book available

I'm pleased to announce the general release of my Learn Meteor book. It is now available as an ebook or print book from various sources: Learn Meteor print (paperback) on Lulu Learn Meteor ebook on LeanPub Learn Meteor ebook on Barnes & Noble Learn Meteor ebook on iBooks Learn Meteor ebook on Kobo Learn Meteor ebook on Scribd Learn Meteor ebook on Inktera Page Foundry Learn Meteor ebook on 24symbols Learn Meteor ebook on Amazon US Learn Meteor ebook on Amazon UK Learn Meteor ebook on Amazon France Learn Meteor ebook on Amazon Deutschland Learn Meteor ebook on Amazon Canada Learn Meteor ebook on Amazon India Learn Meteor ebook on Amazon Brasil Learn Meteor ebook on Amazon Mexico Learn Meteor ebook on Amazon España Learn Meteor ebook on Amazon Italia Learn Meteor ebook on Amazon Netherlands Learn Meteor ebook on Amazon Japan Learn Meteor ebook on Amazon Australia More sources are coming soon for the print version. Learn Meteor has been a fun experienc

Learn ASP.NET Core MVC book: published

As promised, the Learn ASP.NET Core MVC - Be ready next week using Visual Studio 2017  book is out today. You know nothing to ASP.NET Core but need to start coding your next application within a week. Don't worry: this book has you covered. Get your copy now: ebook on Leanpub , Amazon  (also in your local Amazon store), Kobo , Barnes&Noble Nook , Google Play , iBooks , 24symbols , Inktera , Scribd, Playster , Tolino, OverDrive, Bibliotheca Paperback on Lulu (soon available with other retailers) More about the book: You're a developer who knows nothing about ASP.NET Core MVC. Which is fine, except that you need to start coding your next application using ASP.NET Core 1.1 MVC and Visual Studio 2017.  Don't worry: I have you covered. I've been training hundreds of developers like you during 15 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in ASP.NET Core MVC, and will spend time only