8 ms·
The road to Ember 2.0 RFC
- deleted 12y ago[deleted]
- tomdale 12y agoNeedless to say, we’re incredibly excited about this release. If you’re in a hurry, you can just skim; the bolded sentences and code samples are the important takeaways. The reason this is so long is that we’re doing the 2.0 release through our community RFC process[1]. Change can be scary when you’ve made serious investment in an open source tool, so we want to provide as much detail as we can while leaving open the opportunity to incorporate feedback. I’d like to thank the members of the Ember core team, who paid out of pocket to spend this past weekend with me in Chicago for the face-to-face meeting where we banged out all of these details. Maintaining an indie open source project can be painful at times, but I think history demonstrates there’s no better way to foster a project that is as aligned with the goals of its users as possible.[2] [1]: https://github.com/emberjs/rfcs https://github.com/emberjs/rfcs [2]: http://blog.endpoint.com/2010/01/state-of-postgres-project.html http://blog.endpoint.com/2010/01/state-of-postgres-project.h...
- inglor 12y agoThe RFC process sounds very nice but be careful. PHP has been doing it for a while now and while it's working out nicely for them in some regards - pretty much every php person I talked to involved with it hates 'internals' with a passion.
- tomdale 12y agoWe do development of new features behind feature flags, and have automated tools to help enable, disable and strip them. We're planning on moving to a model where we do an approximately annual "garbage collection" pass on the framework (corresponding with a major version bump) and simply nuke all of the code that has been deprecated since the last major version release.
- oblio 12y agoMaybe a process similar to Django's would be helpful? https://docs.djangoproject.com/en/dev/internals/release-process/ https://docs.djangoproject.com/en/dev/internals/release-proc...
- steveklabnik 12y agoFun fact: Python's PEP process influenced Rust's RFC process, which influenced Ember's.
- porker 12y agoThere is a long history behind the hating of 'internals' in PHP land. The RFC process has improved matters, but can't get rid of all the poison that already existed.
- deleted 12y ago[deleted]
- inglor 12y agoI love how they didn't do what Google did with Angular and did a big rewrite. The fact it's possible to easily migrate a current day Ember code base incrementally is a big win. I don't blame Google - but this is a nice win for Ember.
- kuni-toko-tachi 12y agoGoogle doesn't have a choice with Angular. They have to rewrite it because the original is a wrong approach.
- simplify 12y agoI'm curious, could you expand on this?
- kuni-toko-tachi 12y agoAutomatically 2-way binding everything is a serious mistake since most elements don't need it and it's a performance hit. Scope and ControllerAs are in conflict (particularly with ng-if/ng-repeat). Dependency injection is needless, since Javascript module requires (via Browerify or Webpack) handle this much better and sensibly. Extremely hard to debug since stacktraces are useless. Module factories, services, and values are unnecessary, since Javascript already has established design patterns for these concepts. If you haven't tried React, please give it shot. Particularly if you are about to make a decision on what frontend framework you will use, or if you are using AngularJS already and recognize that it's approach leads you to ugly workarounds. I can't emphasize enough that AngularJS is bunk.
- socceroos 12y agoWait. Is the new AngularJS rewrite bunk?
- general_failure 12y agoI haven't faced any of the issues that you talked about. That said, we sort of "get" angular and write proper angular code because we actually understand it well enough. I have seen code in projects which are outright crap. For example, we don't do any DOM manipulations whatsoever in any of our controller code. There were no major hacks that I can recall of. One thing I agree with is the useless stack traces which made is extremely hard to debug Angular.
- nomnombunty 12y agoHi Tom, I have been a long time supporter of Ember. I been using it since 2012 and I really like the way its going. However, most companies are looking for Angular.js developer these days. As a result, I am using Angular.js for work and Ember.js for my own projects. Hopefully the 2.0 release will bring new momentum to the framework. I am really looking forward to it!
- tomdale 12y agoThanks! We know how important stability is, especially for companies that are not technical by nature. We hope this announcement demonstrates our commitment to stability without stagnation, and allows people to make the case to their boss that we'll be around for a long time.
- nomnombunty 12y agoI really appreciate all the work the Ember core team put into the framework. It is definitely an uphill battle competing with Angular.js and React.js which has the support of Google and Facebook. The problem is that Ember and Angular both have similar features and management would need a compelling reason to switch to Ember :(
- hybridcivic182 12y agoChange your company, or "change your company"
- ollysb 12y ago> You should begin moving your app to Ember CLI as soon as possible. While I'm using ember-cli for thick clients I'm using the ember-rails gem for sites which use a mix (mainly older projects). Has anyone figured out a good way to embed an ember-cli app inside rails?
- wycats 12y agoYes, we do exactly this at Tilde and it works well. This sounds like a good blog post and possibly some released code that people can use. Because the division of labor with Ember CLI is relatively clear, I expect build tool ecosystems to build integrations with Ember CLI, that shell out to the Ember CLI tools for specific tasks as part of a larger process. We'd of course love to work with anybody trying to do this :)
- ollysb 12y agoYes a blog post on that would be great! (Personally I'd love to see rails move to broccoli instead of the asset pipeline but I guess that won't be for a while if ever).
- onionbagle 12y ago+1 I would love to see better rails integration with Ember CLI. It seems pointless to use ember-rails with the direction of ember relying on ES6 modules.
- jurre 12y agoI'd love a blog post about this, I've struggled with it and given up in the past, but I'd love to migrate our ember-rails app over to cli!
- chrism_ 12y agoanother +1 - a blog post on this would be great, we are using Ember CLI with Rails too.
- iamstef 12y agoAuthor of ember-cli here (and previously the maintainer of ember-rails), this is essentially how my team uses ember-cli at work. Purely as a development harness and deployed to work nicely alongside a rails app. One of my co-workers has a great related talk: https://speakerdeck.com/lukemelia/lightning-fast-deployment-of-your-rails-backed-javascript-app https://speakerdeck.com/lukemelia/lightning-fast-deployment-... And another related blog post: http://blog.abuiles.com/blog/2014/07/08/lightning-fast-deployments-with-rails/ http://blog.abuiles.com/blog/2014/07/08/lightning-fast-deplo... I suspect we will want to migrate the ember-rails story to be officially more aligned with the above approaches.
- colinramsay 12y agoI'm not familiar with Ember but just skimming this document highlighted something - they're going to have a dependency on Ember CLI, a commandline tool for with generators, dependency management, asset management, etc. This dismays me a little. Another approach to this kind of thing, but looking at the docs it seems to be an npm+bower+custom magic. In some ways it reminds me of the clusterfuck that is Sencha Command, though at least this is open source. Can anyone involved in the project shed any light on how this is implemented? It would be good if it was just a thin interface to some standard scripts. edit: I know this comes across as a little negative, that wasn't really my intention. Sorry about that!
- ef4 12y agoember-cli is such a vast usability improvement that you would be hard-pressed to find a single developer who's tried it and would prefer not to use it. It's in-line with Ember's whole philosophy: anything that we can solve once together in a standard way, we should. Most of the time you are not a special snowflake and you can benefit from the same build stack as everybody else. If you need more, ember addons expose a standardized interface to sharing whatever feature you need.
- tomdale 12y agoHey Colin, Not negative at all! Ember CLI is a relatively small layer on top of a bunch of other open source modules. The core of the build system uses Broccoli[1], which is like a more powerful Gulp. Dependencies are managed with bower and npm, and we use off-the-shelf npm modules to do the post-processing. Basically, you should think of it as a curation of what we think are the best-of-breed tools for Ember developers, with a layer of developer ergonomics applied on top. At the same time, we don't do anything to hide the implementation from you. (Each new Ember app generated by Ember CLI includes the Brocfile.js right in the root directory.) [1]: https://github.com/broccolijs/broccoli https://github.com/broccolijs/broccoli
- colinramsay 12y agoCool, that's what I was hoping for then - just a bit of glue for some best-of-breed tools and not re-inventing the wheel!
- lfischer 12y ago‘One-way data binding by default, with opt-in to mutable, two-way bindings’. It looks like React’s emphasis on unidirectional dataflow has made converts!
- steveklabnik 12y agoThey specifically refer to React a number of times in the text, yes.
- iamstef 12y agoit has!
- bl4ckm0r3 12y agoFor all of you who wondered for so long on wether to go Angular or Ember... now you can stop wondering and start coding :)
- StevePerkins 12y agoThey mention HTMLBars in passing, but mostly emphasize the fact that support for the current Handlebars syntax won't go away in 2.x. Three cheers for JavaScript frameworks with reasonable attitudes toward backwards-compatibility (!)... but as someone who HATES the current Handlebars syntax, I'm wondering if they've also committed to having HTMLBars fully ready-to-go at 2.0's launch? I know that "pieces of it are in place" in the beta right now, but will 2.0's date depend on it being fully ready?
- tomdale 12y agoHTMLbars will land well before 2.0, most likely in the next release. We've been doing the integration piecemeal to ensure that we don't break production apps; we want everyone to get to experience the new awesome.
- wycats 12y agoIt's worth noting that the very next release (1.9) is already locked and loaded (it branched to beta). So when Tom says "next release" he means 1.10. Also, some of the points in the RFC are features that depend on the new templating engine but will likely not land in 1.10. We give guesstimates for when we think things will land in the RFC :)
- mixonic 12y agoWe've started using the term HTMLBars to mean a collection of changes to the Ember rendering pipeline. In the current release (1.8) we've added metal-views (a renderer refactor), in the next release (1.9) we will be adding Streams (a data-binding refactor), and in 1.10 we hope to land parts of the new syntax and the DOM-based templating engine. We've worked very hard to make HTLMBars an incremental release, and not a Big Bang rewrite. Partially because of this, it has taken longer to ship than was planned. However I'm personally very happy about how smoothly the transition is going thus far, and if you are a user of Ember.js I think you should feel the same way. :-D
- dongraham 12y agoLooking forward to all the great new features. Your commitment to the regular release cycle has made a huge difference to our team. We're backing ember all tge way.
- josho 12y agoIs Ember really the right path forward? Or simply a stepping stone to a better (yet to be discovered) solution? Specifically, I remember first picking up Rails and how productive I could be in that environment. I haven't felt the same happen with Ember. Instead it continues to feel like more work, as I have to build a client side domain model, as well as a server side model, and often have to think carefully where the logic should be placed. Don't get me wrong, Ember is a step in the right direction, and there is a lot to love about it, but at the same time it feels like a local maximum and that there is a better paradigm to be discovered (Meteor perhaps?) So, for those past the initial Ember hurdles, is Ember fulfilling its promises for you with your projects? Do you disagree with me and see Ember as the right long term approach for rich web applications?
- josho 12y agoHaving reflected on my own question for the past 20 minutes I'll add the following. For decades programming languages struggled with how to persist object state. We built custom file formats, tried to serialize object graphs, built ORMs to map to SQL databases, but it took us three generations or so to get ORMs right. Today's struggle is how to program a distributed application. First we built the server to render dumb html, then got smarter and added some glue like JQuery to the client, now we are onto full fledged client side frameworks. But we haven't fundamentally solved the productivity challenge to generate a rich client experience that leverages the work done on the server. I can't help to think that a unified programming model between the server and client frameworks could become a significant step forward.
- neftaly 12y agoI'm excited to see where concepts from isomorphic JS and stuff like browserfy will end up. Obvious stuff aside, imagine what you could do with a fully-baked unified model and a bit of P2P glue...
- blakeley 12y agohttps://github.com/voltrb/volt https://github.com/voltrb/volt is a new ruby framework that does exactly what you described
- everydaypanos 12y agoIn love w/ Ember. i kind of liked habdlebars tho..
- stephen_g 12y agoI love the new attribute binding just working like you expect. It took me a fair while when I was first learning Ember to find the bind-attr helper, and things like using variables as part of URLs is a bit annoying currently.
- sytse 12y agoGreat to see that Ember core is not suffering from the Not Invented Here syndrome and is inspired by good things from React. Kudo's and love for Ember.
- lightblade 12y agoNo mention of how htmlbars will affect famo.us integration?