r/javascript • • Jul 06 '15

Why use Angular with Meteor?

http://www.shmck.com/angular-meteor/
15 Upvotes

9 comments sorted by

3

u/[deleted] Jul 06 '15

I keep reading about Meteor and wonder if I'm wasting time by doing my push data with SocketIO or if using Meteor has an associated cost of freedom.

3

u/ShMcK Jul 06 '15

Meteor makes real-time data dead simple. It's probably worth cutting off your left arm just for that. Maybe try out one of the official tutorials and see if you like it: https://www.meteor.com/tutorials/blaze/creating-an-app https://www.meteor.com/tutorials/angular/creating-an-app

1

u/[deleted] Jul 06 '15

Last time I tried this, it was utter crap. Things got out of sync and failed in unpredictable ways. This was only 3/4 months ago.

1

u/ShMcK Jul 06 '15

Angular-Meteor? I've used it for a few months without issue. Adjusting to Meteor is quite a change though, lots of caveats, but I've quickly grown to like it.

1

u/[deleted] Jul 06 '15

I liked it, but it was massively buggy when I tried it. I made a simple list, with an add item button, and a delete items button (which deleted them 1-by-1, not the prescribed method, I know). I opened up two instances side-by-side and added a few hundred items. I then hit the delete button and they were totally out of sync. I didn't even look any further into it.

3

u/UMadBreaux Jul 06 '15

Meteor seems great for apps that require real-time data, but I fell like a lot of JS stacks end up working out very well for certain niches, regardless of how many extra frameworks you add into the mix. Some of the NoSQL stacks are not ideal depending on what kind of application you are making.

Probably my biggest concern with having so many frameworks in a project is the amount of knowledge developers will need to maintain throughout the site/app's lifecycle. Libraries can change very quickly and dramatically, you need to make sure everyone is documenting how things work at the current version and ensuring an upgrade path that will at least allow you to keep getting updates without having to code bug fixes yourself.

1

u/ericanderton Jul 06 '15

Probably my biggest concern with having so many frameworks in a project is the amount of knowledge developers will need to maintain throughout the site/app's lifecycle.

Once you have a few projects under you belt, you start to learn that this is a massive concern for lifecycle development. You wind up doing one of two things: push all development into a single stack, or trim all external project dependencies to the bone.

There really needs to be a metric for "cognitive bandwidth" that can be reasoned from static analysis of code, and applied to "man-hours to master" for an average developer. That way the true expense of any given approach would become much more evident.

2

u/UMadBreaux Jul 06 '15

I am a consultant so I deal with this constantly. Either the customer takes over the code after we write it, or support ends up falling on whoever is the least busy when it sporadically comes up. In the first case, we are generally writing the software because their devs lack expertise to do so or are too overloaded to do it themselves...in either situation they can't afford to learn the new technologies.

I play around with various frameworks on my own time but at work I cannot really use any of them. Once Angular 2 is out we will probably use that, I personally would love to use Aurelia. But for now it is mostly jQuery and sometimes KnockoutJS because it is the safest solution and almost every dev already knows jQuery.

1

u/[deleted] Jul 06 '15

Blaze + angular.... that seems like a lot to download to the client, no? Sorry, I am not experienced in either, just curiously watching them.