forked from nsabiyera/Oak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.cshtml
69 lines (57 loc) · 1.91 KB
/
Index.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@{
ViewBag.Title = "Index";
}
<div class="row">
<h2>Peeps</h2>
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "JQuery" })">jQuery Implementation</a><br />
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "Backbone" })">Backbone Implementation</a><br />
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "BackboneMarionette" })">Backbone Marionette Implementation</a><br />
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "Knockout" })">Knockout Implementation</a><br />
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "Angular" })">Angular Implementation</a><br />
</div>
<div class="row">
<a href="@Url.RouteUrl(new { controller = "Home", action = "Ember" })">Ember Implementation</a><br />
</div>
<div class="row">
<h2>Notes</h2>
</div>
<div class="row">
<pre>
underscore: just use it, no really, just download it,
and use it, it'll make you happy
jquery+$ajax: slow painful death, stop doing this for larger apps
backbone: event driven awesomeness,
easy learning curve, but a lot of boiler plate
backbone+marionette: removes the boiler plate of backbone views
knockout: THE mvvm for html,
bring your own $ajax,
pitfalls of MVVM (side effects),
death by ko.observable,
durandal: provides more structure to knockout
angular: is a full blown framework, redefine how we use html/markup,
no death by ko observable, *very* nice scoping/mvvm, modern browsers
only
sizes:
backbone: 1500 loc
marrionette: 2300 loc
total: ~4,000 loc
ko: 3590 loc
durandal: "the PRISM for ko apps", requirejs, sammyjs,
requirejs 2000 loc, sammy 2000 loc, durandal core 2400
total: ~10,000 loc
angular: 14,000 loc
angular-ui: 1400 loc
total: ~15,000 loc
oak: ~5,000 loc
</pre>
</div>