r/programming • • Nov 17 '14

Rob Eisenberg: "Leaving Angular"

http://eisenbergeffect.bluespire.com/leaving-angular/#
185 Upvotes

104 comments sorted by

76

u/oldatariguy Nov 17 '14

Our team was transitioning our app from Knockout to Durandal, when Rob made the move to Angular (along with everyone else, it seemed). So we decided to move from from Durandal to Angular. Lately we've seen evidence that the Angular team doesn't understand what it means to put out a relatively stable, usable framework while still innovating.

So we're nervous about Angular. Certain members of our team thought we should go with Ember. Now there is React, and variants, like om and elm. And whatever else is next.

I guess this isn't your typical proggit comment. My overall feeling is "front end development sucks". The backend stuff is stable and sane, but front end is Keystone cops.

Here's hoping that Rob Eisenberg can get some support from somewhere to implement his vision. He understands what it means to build a framework that people can commit to and use over time, which is exactly what we need at this moment.

36

u/lookmeat Nov 18 '14

Lately we've seen evidence that the Angular team doesn't understand what it means to put out a relatively stable, usable framework while still innovating.

Before we go further:

Durandal has already made 1 non-backwards compatible change. Durandal Next-Gen, as shown in the video, is not backwards compatible and will require porting.

The state of affairs in front-end development is: it's only recently become something you could consider, it's still far from sane enough. Do you remember how back-end development was 10 years ago? It was crazy, new languages, new frameworks, new stuff coming out all the time. Do you remember Java Beans? It was terrible, but slowly kept improving and polishing. At first though it would be dramatic changes, and suddenly you were stuck with yesterday's way of doing things and it was useless and unmantained. I will not even try to talk about PHP.

I think that there's good evolution but it'll still take a while. When we get there you'll begin to see the symptoms:

  • Minimalist no-frameworks. They try to be libraries, or just basic glue for libraries.

  • Patterns and techniques embedded into the language/browser used exclusively, no need to hack around things.

  • People beginning to talk about coding in raw JavaScript (or whatever the language of the moment is) again.

This are symptoms that both the underlying tech has matured and that we are seeing stabilization. Frameworks are sort of like scaffolding and do what scaffolding does: temporarily give missing structure.

Things are a lot better than they were back in the JQuery days (kind of like the PHP days on back-end) and it's even better than the days of raw javascript (kind of like the days of raw cgi). Self-upgrading browsers now allow devs to not have to work with 5 year old tech in the client. We can do a lot more, and are doing so, but understand that as you push the limits you will have to deal with getting obsolete. Frameworks will become obsolete as the scaffolding gets replaced by real structure, and as the correct patterns and conventions are refined.

If you want stable and predictable you'll have to work with javascript as people did 5 years ago: those are the problems that are well solved. If you want to create modern apps on modern javascript, things will still be shifting and changing and just collapsing under us for a while.

5

u/oldatariguy Nov 18 '14 edited Nov 18 '14

I think part of the problem is that people are looking for any port in the storm - something they can invest in because there is some long term leadership they can trust. We're not just talking libraries here - people need a more or less fleshed out front end architecture.

In the past - for better or worse - people would just pick what's on offer in the Microsoft or Java world, say, and not worry too much about it. It seems like the stampede to Angular is people wanting to get back to that. People see "by Google" on the logo and say, "great, it's over, just use this". The sad part is that Google has never focused much on making tools for third party developers and they don't care about it; it isn't where they make their money.

The bigger irony is that Microsoft, as they quickly move to open everything up and become cross platform - which is great - has completely ceded leadership in this area. It used to be a real strength for them. You can see why they are doing it - I mean, who wants a "Microsoft jQuery" - but people are adrift right now. These days, if you want to build front end things that have a life, you are probably better off looking to Xamarin than anything coming out of Microsoft.

2

u/lookmeat Nov 18 '14

Do you remember how .Net was in the early days? People constantly complained that Java got stability right, except that Java wasn't very stable at first too.

This is the thing with tech. Hell even C++ was a mess at the beginning. If you want to use a tech that's still young, in a field that is recent, you must embrace change and evolution. I feel that some people just wanted to say that Google was wrong, and then went backwards from that. Not to say that backwards compatibility isn't important, but that it's never been a guarantee on the programming world, much less the JS world.

If you want to build front-end things that have a life then embrace that you will have to keep updating and replacing parts. If you want to build a front-end that you won't have to touch much again (other than maybe the occasional security patch) try sticking to old-school javascript and html, go for the basic "is going to be supported for the next 10 years" style of programming. It'll be ugly and look old, but that's what will make it stable.

2

u/oldatariguy Nov 18 '14

I might be spoiled. I worked in Delphi for years then switched to c# a few years in. Moving to a new version of the Language or IDE was almost always painless. Anders Hielsberg took this seriously, I guess.

These days, any long-lived systems is going to have pretty stable db and api layers, and various front ends that you need to plan on replacing. I get it, I just like to bitch once in a while.

1

u/lookmeat Nov 18 '14

Well Pascal was pretty old by the time Delphi came in the scene, the language had already been around for almost 30 years. I don't know how PASCAL was in the early years, but I think it didn't mattered because by the time you got to a new version that could break things, you were working on a new machine, with new hardware and different paradigms at hardware level. I guess you could say that no one really cared when JQuery would do breaking changes because it was still better than dealing with the incompatible browsers.

I'm optimistic though, I think that within the next years we'll see convergence and stability, and webapps will become something more reasonable. The idea of building an app entirely on JS, HTML and CSS, which means a lot for portability. We'll have to wait and see though.

1

u/jnt8686 Nov 18 '14

Great point. Hadn't thought of it that way, since that's not generally how I assess tech. The real tragedy of this is that all these people followed and learned Angular like it was some kind of good software. Unfortunately it became obvious at a certain point that the whole thing needed to be scrapped. Maybe a lesson to these folks to learn how to code and think for themselves.

4

u/G_Morgan Nov 18 '14

So your team has moved to 3 different frameworks and is considering a move to a 4th? There is a reason front end development is unstable.

4

u/CraftyPancake Nov 18 '14

do you just transition to anything this guy works on? How do you get any real work done?

4

u/[deleted] Nov 18 '14

What made you want to migrate away from Knockout?

3

u/[deleted] Nov 18 '14

Don't you have something better to do than jumping frameworks? Or i missed /s there?

2

u/InvidFlower Nov 18 '14

Argh and right after I'd gotten up to speed on what Angular 2.0 was all about with his nice blog post earlier: http://eisenbergeffect.bluespire.com/all-about-angular-2-0/

Guess I'll have to really spend some time getting more up to speed with the current offerings soon.

4

u/redalastor Nov 18 '14

My conclusion is that you want to aim for power and simplicity. Simplicity as in as few moving parts as possible, not as easy. If it's simple, it will turn easy when you get familiar.

I discarded angular and Om on that ground and I went with Reagent (a much simpler clojurescript library built on reactjs).

1

u/speedster217 Nov 18 '14

I also like React. The way it works makes sense to me

1

u/riffraff Nov 18 '14

I guess this isn't your typical proggit comment. My overall feeling is "front end development sucks".

To be honest, I think that is a tipical proggit comment, and I concur wholeheartedly.

0

u/[deleted] Nov 18 '14

[deleted]

18

u/Poop_is_Food Nov 18 '14

I think you need to be more patient. All this SPA stuff is still pretty new for front-end devs. Just a few years ago we were still spending most of our days battling IE6/7/8 terrible CSS and JS implementations. Give the ecosystem some more time to work itself out. Also a lot of your complaints with javascript will be addressed in ES6 (modules, classes, etc.), so there's that.

html, css, javascript, they're all nice, and they've all gotten us pretty far, but I think it's become clear that the next step forward is not going to be built on top of those technologies.

Not sure what you expect to happen on this front. Not even Chrome supports Dart. Flash is dead. And native apps are never going to fully replace web apps. What did you have in mind? and when?

28

u/rDr4g0n Nov 18 '14 edited Nov 18 '14

front end guys aren't exactly the most seasoned developers

Many front end guys, sure, though there are some of us that are legit devs who care about good development practices AND great design.

19

u/Poop_is_Food Nov 18 '14

yeah but those guys cost as much as backend devs. /s

Seems like some people forget the old rule that you get what you pay for.

7

u/awgreenarrow08 Nov 18 '14

This is exactly it. Don't knock front-end guys. I'm a front-end guy, formerly full-stack / back-end with ASP.NET. You really do get what you pay for. It just so happens that there is some unintended crossover between real front-end developers and people who just make websites and theme Wordpress sites.

If you want an actual developer, you have to pay for it. Unfortunately, some people think they can get away with hiring a Wordpress themer and have them write a thick-client JS app, and that simply doesn't work.

13

u/wefarrell Nov 18 '14

Whoa, generalize much? Sure, front end development isn't as mature as a lot of backend development but it's catching up quickly. A few years ago your statement about shitty tools and lack of sane dependency management would be correct but Bower and RequireJS work well.

Few people used to specialize in javascript. it used to be backend devs who needed it to make pages dynamic without page reloads and html/css devs who needed is to create animations and effects. Typically other developers have a hard time wrapping their head around asynchronous programming but javascript's event driven behavior is appropriate for interactivity.

7

u/rich97 Nov 18 '14

I don't think RequireJS works well, it's an incredible pain to configure. Browserify is much closer but it still has some gaping holes. Until we can use module loading in ES6 I don't think this problem will be solved.

2

u/jnt8686 Nov 18 '14

Never had any issues with either.

4

u/[deleted] Nov 18 '14

I wouldn't call Bower sane when the only way to lock to specific versions is committing all the packages (see https://github.com/bower/bower/issues/505).

5

u/jerf Nov 18 '14

it's catching up quickly.

It's been "catching up quickly" for like six years now. At some point that ceases to be "quickly". Plus it seems like the JS world is a big fan of one step foward, two steps back. Iterating fast on that doesn't necessarily mean progress is being made.

2

u/okBroThatsAwkward Nov 18 '14

My thoughts exactly. I really don't want front-end devs to get a bad rep. We care just as much as the backend devs about maintaining good code.

2

u/cwjatsilentorb Nov 18 '14

RequireJS causes as many problems as it solves. Bower helps, but is only half of what package managers normally are.

9

u/sime Nov 18 '14

front end guys aren't exactly the most seasoned developers,

I think that is a fair assessment of the front end developer demographics. You have a lot of people who are now in the front end role but have arrived via web design. These are people who are design oriented, can work with HTML, CSS, and some JavaScript to render a design, but they don't have the background in programming needed to do JS "in the big".

I feel that a lot of the JS "fashion trends" (is gulp still in this month?) are being driven by this enthusiastic group of people who can kind of produce code and tools but lack the perspective and background needed to do it well. (I see a lot of old, bad ideas being reinvented in the JS space, but maybe I'm just getting old.)

The good news is that there is another stream of front end developers who are seasoned and have moved on to browser oriented development after working for years on the server. These people, of which I count myself one, do have the background in software engineering and have the experience and expectations gained from working with mature technologies.

There is still a lot of conflation going on in the industry between "front end as web design" and "frond end as software development inside the browser". I hope these roles are more clearly defined in the future.

My advice when working in the front end space is to 1) don't believe the hype by default, 2) pick your tools carefully. Once a tool or library has been out for a while you can see which ones are being produced by people who understand what stable useful software is.

7

u/jnt8686 Nov 18 '14

Seen a lot of terrible front end code written by backend devs unfortunately. Outrageous bullshit inheritance trees and other annoying crap.

1

u/awgreenarrow08 Nov 18 '14

Completely agreed with most of what you said. I think the front end 'fashion trend' idea is becoming somewhat overstated in this sub though. Yes, we all know there are plenty of JS frameworks / build tools. Honestly though, of the ones that are majorly used, there are only about 3 (grunt, gulp, and now broccoli since it's used in ember-cli, although it's not too popular yet). Yeah, there may be postings all the time on new stuff, but most of it doesn't catch on, and you're left with a couple top dogs.

For me, I dealt with the same stuff on the back-end, but to a lesser extent. There was always some new library on NuGet that could be used. The key is being able to see what's useful and what's not, and that just comes with being a seasoned developer.

Your distinction between "front end as web design" and "front end as software development inside the browser" is spot on. With the former, you get a lot of developers who are either new or lack the real programming experience, because all they've done is HTML / CSS and a little JS for animations. With the latter, you get the more seasoned developer who is focused on performance and architecting a great solution. Those two get confused a lot though, which I think is where the whole "front-end devs are inexperienced hipsters" comes from. Finding a real front-end developer (not a person who just does CMS mods) is incredibly difficult right now, because this space is not as old as the back-end space. As time goes on, I hope this stuff is fleshed out more.

5

u/AccusationsGW Nov 18 '14

sane dependency management

Maybe you can invent another couple package managers I can duck tape to my product :P

1

u/RazerWolf Nov 18 '14

Well if it quacks like a duck...

2

u/jnt8686 Nov 18 '14

Sounds like you work with shitty devs

2

u/Gudeldar Nov 18 '14

they don't know what they're missing out when it comes to things like helpful type systems, sane dependency management, or a language that isn't terrible javascript.

I don't think this part is fair, I think most people who do front end dev and have ever used any other language realize what they're missing. There is just an incredible amount of inertia behind javascript and even incremental upgrades take forever to get widespread adoption.

5

u/flukus Nov 18 '14

I feel the same way. Front end dev is awful, and the tools are shit.

Knockout + bootstrap + jquery. I've never had a UI toolkit remotely as productive as this combination.

4

u/franzwong Nov 18 '14

Similar for me, I am using knockout + bootstrap + jquery + underscore + requirejs + crossroads. Learning curve is lower than a framework like angular.

1

u/landofcats Nov 18 '14

This is exactly what works for me too. Powerful enough for rapid development, allows sufficient modularity for maintain ability and gets out of the way when you need to do something not supported out if the box.

0

u/redalastor Nov 18 '14

You might want to add requireJS to the mix.

2

u/flukus Nov 18 '14

Not sure I see the point od it actually. I already combine all the js server side, it looks as though require would just chain that into dozens of htttp requests.

3

u/redalastor Nov 18 '14

Only during dev. For prod it comes with a tool that concats everything in an order that respect your dependencies.

The point is to enable you to structure your app better.

1

u/bebraw Nov 18 '14

If it's only concat, why not to go with browserify, or even better, webpack? Less ceremony.

2

u/redalastor Nov 18 '14

The point is to segment your own code into manageable modules which are asynchronously loaded during dev or concat during prod.

2

u/bebraw Nov 18 '14

Well, you can use a hot loader during development. Example for webpack: https://github.com/gaearon/react-hot-loader . Also, https://github.com/webpack/docs/wiki/hot-module-replacement-with-webpack .

It is just amazingly fast to develop using react-hot-loader. It isn't without its glitches but mostly it just works. You can also configure CSS changes to load automatically.

0

u/[deleted] Nov 18 '14

[deleted]

1

u/flukus Nov 18 '14

What tools were you using 10 years ago that could do dynamic layouts across the full range of device sizes with support for two way binding, animation, multi platform, etc?

I thought I'd used just about every desktop widget set known to man but either I missed a really good one or your looking back with rose colored glasses.

10

u/mickeyp Nov 18 '14

Well, I can't speak for mobile here, but Delphi could re-arrange UI components depending on the size of the form (window). In fact, it was quite common to shrink and enlarge components like edit boxes and so on depending on the size of the form.

The biggest problem back then (and this technology existed and worked well in the 90s) was the reliance on pixels to position things. Delphi did relative positioning also, to scale properly if the DPI changed, but it was still immature technology back then (and kind of still is today.)

As for two way binding: Delphi has had that since the 90s too. I could drop a few fields, a few data source components, hook them up to any number of databases, and Delphi would take care of all the CRUD automagically without having to write any code. Remember, CRUD apps are not a web invention. For a lot of developers designing CRUD apps is their bread and butter and the tooling and components to do this have been around for 20+ years.

Delphi never did animation well, but then that was never really a 'thing' in Windows anyway. For good or ill.

1

u/flukus Nov 18 '14

Gtk, swing, qt and others also had relative positioning but it was nowhere near as flexible as modern css. Do you remember putting weights on various components amd hoping it would look decent and not screw up your alignment?

The two way binding was also primitive compared to something like knockout (or even wpf). Crud was basically all you could do with it. Modern tools allow rich, complicated bindings, which produce much better user experiences.

-5

u/qudat Nov 18 '14

javascript

I think javascript in large part yields obfuscated, unreadable code and is causing a lot of the front end development pains people are experiencing.

17

u/flukus Nov 18 '14

There are many (valid) criticisms of javascript, but if the code seems obfuscated or unreadable that is purely down to the developer.

2

u/qudat Nov 18 '14

I disagree, I think certain languages can easily lend themselves to obfuscated code, the classic case in javascript being "callback hell." You can argue that there are ways to get around callback hell but the fact of the matter is it takes a lot of effort, knowledge about the language to not make basic design flaws that are embedded within the language.

1

u/jnt8686 Nov 18 '14

Callback hell is caused by an incompetent developer. Your code is not modular enough and you do not have a clear idea of what parts of your code depend on other parts. So you devise a laundry list of tasks that happens to work. The only way to express this laundry list in an asynchronous environment is callback hell. If you knew what you were doing, you would not have this problem.

1

u/qudat Nov 18 '14

You are not addressing my point, which is that callback hell is a very common and natural result of simply using javascript. To give a comparison of a programming language that avoids this issue almost entirely: Python's tornado or asyncio.

1

u/flukus Nov 18 '14

Callback hell isn't from java script, practically every language has to do the same to keep responsive UIs.

It's a library issue, nothing to do with the language.

7

u/[deleted] Nov 18 '14

I don't think javascript as a language is that bad. Granted I've used it mostly on the backend with node so I haven't had the chance to experience the shit storm that everyone says frontend dev is, but I feel like that is more of a problem with browsers / the DOM than the language itself.

6

u/hansolo669 Nov 18 '14

Unless you need to support IE < 10 or are using an advanced ES6 feature, its pretty sane across browsers.

As a language JavaScript has a number of nice bits (the functional aspects come to mind).

5

u/[deleted] Nov 18 '14

You can write shit code in any language if you don't bother to learn it.

2

u/riffraff Nov 18 '14

That is part of the problem, a lot of the "front end" devs I've met haven't actually bothered to learn.

People pick up javascript easily, and start acting as frontend developers, but are completely unable to actually program properly. I.e. to make two things that do about the same thing they'll copy & paste the code and change a line, rather then create a function that takes an argument, even if obviously JS allows that.

This is of course a human problem, but while backend has some ways to del with that (i.e. you have a decent refactoring toolchain in eclipse if you do java, somewhat mature frameworks etc) and a somewhat steeper learning curve, frontend dev is much easier to pick up and harder to do right.

3

u/flukus Nov 18 '14

I've seen plenty of decent backend devs fuck up java script as well.

Remember, long before SPA was an acronym we had people doing the same shit by dragging and dropping visual basic UIs together, copying and pasting everywhere, thousand line event handlers etc.

It's an industry problem, not a javascript one. It's a problem much older than javascript

1

u/riffraff Nov 18 '14

yes, I've seen (and done) plenty of shit with VB, but then, VB6 was releases in 1991, some tools have improved and, imho, attenuated the problem a bit. For the web, this hasn't happened yet.

1

u/flukus Nov 18 '14

But the tools have improved, dramatically.

10 years ago doing anything remotely complex that worked across all browsers was nearly impossible. Then tools like jquery and prototype came along.

Then other frameworks like knockout and angular popped up. All of a sudden complex client side code was maintainable.

The only reason tge web world seems like the wild west is because of the rapid pace of improvement.

-1

u/qudat Nov 18 '14

Let me give you a quick example of the sort of thing I'm talking about: In JS it's easy to push a variable into the global scope simply by not including the "var" before the name; I believe these little design nuances in javascript to be corrosive to the javascript ecosystem. You can argue "just learn the language and don't write shit code" but I think there is something to be said about the way the language was implemented that lends itself to "shit code."

4

u/jnt8686 Nov 18 '14

Jshint, motherfucker.

1

u/flukus Nov 18 '14

You can do the same thing in most languages with the static keyword, it's not unique to Java script.

That's why code review and not hiring shit people are important.

1

u/bstamour Nov 18 '14

In what language does the static keyword work like that? It definitely doesn't work that way in C, C++, Java, C#, ...

1

u/flukus Nov 18 '14

It creates a global variable in all of them.

2

u/bstamour Nov 18 '14

I thought we were talking about using the static keyword inside a function. AKA the analog to not using var in Javascript. When you omit var in javascript, it injects that variable into the global scope. When you declare a variable as static in a function in C and C++, it does not create a global variable, it initializes the variable once and only once, but it does not change the scope of it.

1

u/flukus Nov 18 '14

Everything is a function in javascript, this is simple it's way of mimicking static in java etc.

The only time I've ever seen this be a problem is from incompetent devs, who created much bigger problems to deal with.

→ More replies (0)

1

u/[deleted] Nov 18 '14

I can argue that because I expect developers to be careful and disciplined. Leaving off a var? Not linting? Sloppy.

1

u/pkt-zer0 Nov 18 '14

Readability is one of the nice aspects of JS, I think. Things are flexible and dynamic enough to let you do pretty much whatever you want with syntax, so you can end up with a pretty pleasant DSL describing the logic.

0

u/WisconsnNymphomaniac Nov 18 '14

Has any other technology wasted more human labor than javascript?

5

u/another_bird Nov 18 '14

Enterprise Java in all of its incarnations.

1

u/flukus Nov 18 '14

Enterprise anything. The .net world is just as bad.

18

u/[deleted] Nov 18 '14 edited Nov 18 '14

[removed] — view removed comment

9

u/toula_from_fat_pizza Nov 18 '14

Fuck my (angular) life. Moving into a back end only role soon, hopefully that will return some sanity.

3

u/falcon_shark Nov 18 '14

I don't understand all the angular hate here. It's a descent framework. Need classes and proper type checked OO - use typescript.

I agree angular is kinda overblown but it has great ideas.

I really think it needs to get simplified and more modularized rather than more crazy shit google is doing.

6

u/[deleted] Nov 18 '14 edited Nov 18 '14

[removed] — view removed comment

5

u/BlueRenner Nov 18 '14

The lesson I've drawn from it is this: Design for deletion.

I could not agree more.

The only constant is change. One day, your code will be wrong. Or just ugly. Or maybe simply unlucky, and it will have be removed. Prepare for that day.

1

u/[deleted] Nov 18 '14

One day, your code will be wrong. Or just ugly.

1 year. I already marked it on my calendar.

2

u/no_spoon Nov 18 '14

Modular decouplization :)

21

u/arostrat Nov 17 '14

"I'm renewing my efforts on Durandal"

Best news I heard this week. Hope he sticks with knockout for vNext.

15

u/redalastor Nov 17 '14

Especially since the latest knockout has saner components (directives) than Angular.

3

u/fidelcastroruz Nov 18 '14

Durandal vNext drops KO. And our team hates that, we love Durandal, the idea to just be the glue to other libraries which are great at what they do (jQuery, KO, RequireJS, Sammy R.I.P.) We chose Durandal over Angular because of this.

5

u/redalastor Nov 18 '14

Durandal vNext drops KO.

Really?! In favour of what?!

And our team hates that, we love Durandal, the idea to just be the glue to other libraries which are great at what they do (jQuery, KO, RequireJS, Sammy R.I.P.) We chose Durandal over Angular because of this.

I found out when Durandal was apparently dead that it's not that big of a deal to simply bind them yourselves.

Start with RequireJS. Then add jQuery (it's AMD friendly!), add KnockoutJS (it's AMD friendly too!), add a routing library (I like Crossroad.js) and you've already got a pretty sweet package. You'll start to wonder why you need a framework in the first place!

Knockout even does its components with AMD so it's easy to make your app very modular.

The good thing about not opting into framework is that if one of the pieces come to disapoint you you can replace it without too much pain.

Edit: Apparently, KO will be replaced with a Class System. I'm doutbful it's a direction I want to move in. JS object seem a better fit for models to me.

3

u/flukus Nov 18 '14

The good thing about not opting into framework is that if one of the pieces come to disapoint you you can replace it without too much pain.

This! Monolithic frameworks are a one size fits all approach. The best libraries tend to do one thing and do them well.

2

u/fidelcastroruz Nov 18 '14

Here: http://eisenbergeffect.bluespire.com/preparing-for-durandal-nextgen/

Well I'm a bit unfair calling Durandal just a glue to be honest. Durandal does: bootstrapping, composition, infrastructure (app structure and plumbing), has a Widget System (which you could do using KO custom handlers), and has a very elegant way to put everything together. It just doesn't make much sense to re-do this yourself.

2

u/laevus Nov 18 '14

Steve Sanderson (creator of Knockout) has a Yeoman generator (generator-ko) with pretty sane defaults: npm, Bower, Gulp, RequireJS, Crossroads.js, Knockout, jQuery, Bootstrap.

He also has a sample project (knockout-triage, live) that is a nice reference for how to structure a Knockout app. It uses an older version of KO (3.1.0) and a prototype implementation of components, but I'm guessing it's almost the same as the built-in components implementation in 3.2.0.

1

u/redalastor Nov 18 '14

Pretty good. But I've yet to see th point of bower over simply putting your dependencies in a folder under source control.

1

u/laevus Nov 18 '14

Yup, more and more front-end libraries have npm packages as well, so nowadays I usually replace RequireJS with Browserify and remove Bower altogether.

18

u/redalastor Nov 18 '14

He doesn't want to share what the differences are and invite us to diff angular 2 with Durandal next instead. I suppose he doesn't want to turn into the spokesperson for those disliking Angular 2.

6

u/arunner Nov 18 '14

I was looking for this. Thankfully in his previous post he gives some insights: http://eisenbergeffect.bluespire.com/all-about-angular-2-0/ (also caused some arguements with ang devs in twitter)

8

u/EvilTony Nov 18 '14

Does this mean we can't call it Durangular anymore?

13

u/dodyg Nov 18 '14

SPA should be the last resort in designing your web application. It brings so much complexity in a hostile programming environment. Most applications can probably get away with a few rich pages in combination of traditional POST form.

If you do have to deal with SPA, frameworks should also be the last resort.

In normal case, pick your own data binding framework(react.js, knockout.js, ractive.js - my fav), pick your pubsub library, pick your routing and use them consistently using your own code.

If you have to rewrite your app every 2 years because the framework du jour is abandoned for greener pasture, you are doing it wrong.

3

u/Uberhipster Nov 18 '14

It brings so much complexity in a hostile programming environment.

It certainly does. We need one standard to wrangle it in. (soon xkcd 15 competing standards)

2

u/radaway Nov 18 '14

I agree, I use ractivejs in the pages where I need rich funcionality and the rest is just a regular web application, my life is a lot simpler.

2

u/jnt8686 Nov 18 '14

Isn't it annoying to have a bunch of html templates crapping up your backend?

0

u/radaway Nov 18 '14

Not much, they really only crap up the view part of the backend (assuming you're using any kind of MVC web framework), the views would be HTML anyway if I was doing a regular web application.

3

u/cwjatsilentorb Nov 18 '14

What bugs me about Angular is historically every monolithic JavaScript framework has either failed or at least never gained the momentum people thought it would, and the JavaScript community that's grown from those experiences and generally avoids monoliths, but Google is big enough that they make a monolith and JS devs still flock to it.

And for historical example, MooTools used to be the big thing, but it was heavy to drop into a site and never really took over, and then JQuery came which only had a quarter of what MooTools had and yet became ubiquitous because it performed a particular job very well.

Then people tried to turn JQuery into a framework, and that never worked well and never caught on.

1

u/[deleted] Nov 24 '14

I saw Rob's talk on Angular 2.0 at Öredev just two weeks ago. At that time, he was apologetic about the controversial changes to Angular, but seemed optimistic that the team would reconsider the breaking changes.

I guess his leaving now means the team isn't open to criticism...

-12

u/SharkFighter Nov 18 '14

Is anyone else tired of these butthurt hissyfits? It's fucking software, not the love your father never gave you. Get over it.

1

u/maxbroner Nov 19 '14

You deserve gold but I am a tight ass. I think Eisenberg is having a giant hissy fit and it is all a but precious.