r/programming • u/vivainio • Nov 17 '14
Rob Eisenberg: "Leaving Angular"
http://eisenbergeffect.bluespire.com/leaving-angular/#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
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
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.
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.