Slashdot Mirror


Google's New Angular 2.0 Isn't Compatible With Angular 1 (techcrunch.com)

An anonymous Slashdot reader quotes TechCrunch: When Google announced Angular 2 in 2014, it created quite a stir in the web development community because this new version wasn't just an update, but instead a complete rewrite that wasn't compatible with the older version... "Angular 1 first solved the problem of how to develop for an emerging web," the company writes... "Six years later, the challenges faced by today's application developers, and the sophistication of the devices that applications must support, have both changed immensely."
Announcing the final release version of Angular 2 last week, Google thanked the open source community, saying "We are grateful to the large number of contributors who dedicated time to submitting pull requests, issues, and repro cases, who discussed and debated design decisions, and validated (and pushed back on) our RCs." TechCrunch writes that Google's Angular team "now also recommends that developers use TypeScript to write their apps...a Microsoft-developed superset of JavaScript that adds features like static typing and class-based object-oriented programming."

16 of 121 comments (clear)

  1. duh.... by theNetImp · · Score: 4, Interesting

    That's because it's a complete rewrite, and anyone who has been around for the last year who develops Angular already knew this.

    1. Re:duh.... by K.+S.+Kyosuke · · Score: 5, Funny

      Or, they're jealous of Swift 3.0.

      --
      Ezekiel 23:20
    2. Re:duh.... by Idimmu+Xul · · Score: 2

      can't mod you so just posting to concur. this is a non-story.

      --
      The problem with slashdot is that most of its users were bullied and stuffed into lockers as kids!
    3. Re:duh.... by s1d3track3D · · Score: 2

      I'd like to concur as well but that would make this comment incompatible with my previous comment on swift

    4. Re:duh.... by pushing-robot · · Score: 2

      It's a complete rewrite, and it uses a lot more *standards* like ES6 and Web Components. Many of the changes in Angular 2 have been replacing Angular's own features with polyfills awaiting native browser support.

      Admittedly the new standards are, well, new and take some getting used to, but they add a lot of sorely needed improvements and in time developers will be glad Angular went this route rather than sticking with their old workarounds and proprietary implementations.

      --
      How can I believe you when you tell me what I don't want to hear?
    5. Re:duh.... by firewrought · · Score: 2

      in time developers will be glad Angular went this route

      Many technologies have gone this route (breaking backwards compatibility to achieve "perfection"), and most have failed. Consider Perl 6, D 2, Python 3 (which is slowly working, but it's taken a very long time), KDE 4, Gnome 3 (slowly working, maybe). And those technologies don't move at the pace of the JavaScript ecosystem.

      Maybe since Google's backing this, it will ultimately succeed. Corporate backing seems to trump everything.

      --
      -1, Too Many Layers Of Abstraction
  2. Quire a stir... by Chrisq · · Score: 5, Funny

    When Google announced Angular 2 in 2014, it created quite a stir in the web development community because this new version wasn't just an update, but instead a complete rewrite that wasn't compatible with the older version

    Such a stir that it was noticed by Slashdot in 2016

    1. Re:Quire a stir... by jrumney · · Score: 4, Funny

      It is a new Slashdot new policy of being fair and balanced. An Emacs story has to be followed immediately by a similar but weeks old VIM story, and a Swift story has to be followed immediately by a similar but years old Angular story.

  3. Anyone can have 50 versions... by mschaffer · · Score: 2

    Anyone can have 50 versions, but let's see if Apple and Google can get 50 versions that are incompatible with the previous one and still have anyone want to use it.

  4. Re:Thick client JS frameworks are the new Flash by Ken+D · · Score: 3, Insightful

    Where can I download this "progressive enhancement" framework that you speak of?

  5. "the challenges faced by today's application devs" by Viol8 · · Score: 3, Interesting

    .. are partly the constantly mutating APIs! Irony, much??

  6. Re:subject by Required+Snark · · Score: 2
    Angular 2 works with JavaScript. You don't have to switch to TypeScript to use it. There's even a tutorial for Angular 2 with JavaScript on the Angular site.

    Your decision making process would be better if your opinions had a better factual basis. On the other hand, this is Slashdot and facts don't count for much around here. You fit right in.

    --
    Why is Snark Required?
  7. Re:Thick client JS frameworks are the new Flash by Anonymous+Brave+Guy · · Score: 5, Informative

    I think you have to start by running

    npm install knowledge skill wisdom

    They have a common dependency on experience, so it can be a bit time-consuming to get them all, maybe a few years. Also, depending on your environment, some of them may fail to install.

    The good news is that you've got them, it's very quick to set up other useful things like stability, future-proofing, and even progressive-enhancement, with minimal dependencies on other JS packages.

    --
    If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  8. Re:It can join python 3m=, vb.net, and perl 6 by Junta · · Score: 2

    That's an overly rosy picture of Python 3. Install most linux distros and run 'python'. Odds are overwhelming that it will be python 2.

    There are plenty of modules that *still* are python 2 only. Most are developed to work with both python 2 and 3. Very very few are python 3 only.

    Now it's not as bad as angular 1 -> 2, it's *generally* not too terrible to accomodate both python 2 and 3 in the same codebase. You only get to pulling your hair out if you do a lot with binary data, and even then it's not too terrible. Python 3 could have done some other nice things, like recognizing xrange as an alternative name for range, viewitems as a name for items, and other similar things that would make it much easier to go to python three without either doing your own interop or using six all the time. On the flip side, when dealing with a framework like angular, you are *generally* less worried about end-users (you provide the entire runtime) versus something like python, where the non-developer users bring their version of the interpreter to your code.

    There's another headache when it comes to living in python 2 world. They decided 2.7 was going to be the last, end of story. As a consequence, 'minor' 2.7 updates are now introducing featurues causing the same sort of compatibility caveats that you historically only saw on 2.5->2.6 type updates.

    --
    XML is like violence. If it doesn't solve the problem, use more.
  9. Painful to read this word salad by ilsaloving · · Score: 3, Insightful

    Angular 1 first solved the problem of how to develop for an emerging web,"

    *What* "emerging web"? The web has been around for decades now. The only thing that's changed is the fact that there are now even more unnecessary layers of javascript on top of everything than there was before.

    "Six years later, the challenges faced by today's application developers, and the sophistication of the devices that applications must support, have both changed immensely."

    Yeah, because asshats like you keep reinventing the wheel and forcing everyone to relearn what they already knew, throwing away hard won lessons in the process, and resulting in poorer quality code overall because no particular language or API seems to last long enough anymore for people to become proficient enough in it to deal with all the inevitable bugs.

    Why even call it Angular if it's completely incompatible with the previous version?

  10. Re:It can join python 3m=, vb.net, and perl 6 by mbkennel · · Score: 2

    | A fundamental difference between regular business people, and computery people. They don't want to rework everything, and we'll rework everything because of because.

    They don't want to rework everything (in the technology), because their career success depends on advancing the business. In the areas that they work on and are part of their career evaluation, there is plenty of churn in initiatives, reorganizations, and management styles and 'paradigms'.

    The technologists have the same problem doing excessive reworking and rewriting their frameworks and 'paradigms' and deployment platforms etc for their own career desires, and have the same opinion of useless management fad changes as the business has with technology fad changes.