Web Programming @ MIPT, 2015-2016

Markovtsev Vadim

Frontend frameworks

Web Programming @ MIPT, 2015-2016

Plan

Architecture and coding patterns

DRY

KISS

YAGNI

SOLID

The collection of 5 principles:

Dependency Injection

Data bindings

Description

Model-View-Controller

Model-View-Presenter

Model-View-ViewModel

Which of those three is best?

Single-page application

Single-page application

Source

Frameworks: pros and cons

AngularJS

AngularJS

See the Pen Angular JS - Basic app by eMaj (@eMaj) on CodePen.

Ember

Ember

See the Pen Starter from Ember.js Website by Vadim Markovtsev (@vmarkovtsev) on CodePen.

Backbone.js

Backbone.js

See the Pen Hello Backbone.js by Christian Fleschhut (@cfleschhut) on CodePen.

React

React

See the Pen React To-Do List JSX by Mark Funk (@mfunkie) on CodePen.

So which one to choose?

Polymer

<!-- ... = //cdn.rawgit.com/download/polymer-cdn/1.1.4/lib -->
<!-- Polyfill Web Components support for older browsers -->
<script src=".../webcomponentsjs/webcomponents-lite.min.js"></script>
<!-- Import element -->
<link rel="import" href=".../google-map/google-map.html">
<!-- Use element -->
<google-map latitude="55.930194" longitude="37.517952"></google-map>
		

Polymer

Next steps

View on Github