Slashdot Mirror


Google Says Angular 2 Will Support Python, Java (thenewstack.io)

An anonymous reader writes: Google will release a faster beta version of Angular 2 in about two weeks, with a smaller version targeted for April. "We're improving our ability to handle different languages," says Google's Brad Green, noting that 213 contributors are currently working on Angular. "Our plan is to have versions that will work with many server-side technologies, from Java to Python." Microsoft has already demonstrated how it's building Angular into ASP.NET and Google is also working with the Drupal team. But Green says they'll also continue supporting Angular 1 for at least another year, until a majority of users have transitioned to the new syntax. Google says there are currently 21.3 million developers using Angular 1, compared to just 300,000 using Angular 2. "We've got a ways go to," Green admitted.

8 of 92 comments (clear)

  1. js crapware fad of the month by ralphsiegler · · Score: 5, Insightful

    no one values a stable web platform any more? they have to use lastest fad thing?

    1. Re:js crapware fad of the month by xxxJonBoyxxx · · Score: 5, Funny

      >> no one values a stable web platform any more

      To their credit, they did the right thing in incrementing the major version number.

      >> Google's Brad Green, noting that 213 contributors are currently working on Angular...Google says there are currently 21.3 million developers using Angular 1

      1 developer for each 100,000 users. Coincidence...or aliens?

  2. Re:JAVA? by Anonymous Coward · · Score: 5, Funny

    Who uses Java anymore? I thought that stuff was virus-prone. I haven't installed Java in years.

    It's depressing that I can't know for sure if you're trolling or genuinely that stupid.

  3. What is Angular? by MobileTatsu-NJG · · Score: 4, Funny

    I'm assuming this is some sort of fishing-related framework.

    --

    "I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)

  4. Front end? by roninmagus · · Score: 4, Interesting

    Can someone explain why the backend matters? I've not used Angular 2 but have used 1 extensively, and it always just calls a rest service for JSON. I understand others will have other needs, but won't you always just be calling a URL to get or submit data? That service could be written in BASIC for all I care.

    1. Re:Front end? by Anonymous Coward · · Score: 5, Interesting

      The main case for backend support is isomorphism.

      You run into a few problems when you put angular1 or 2 apps into production on the SEO side of things and also on the first hit performance side of things.

      For the SEO side of things, even though the google bots do execute javascript they do not wait for async actions to complete. Angular Apps usually load some templates via XHR and/or json data from a service, so these won't complete and google will index a broken site where nothing works.
      ( Don't mention prerendering via a headless browser, this does not work and will never work )

      On the other side of things even if you inline and minify templates etc... you will always either have a big bundle of templates to download on the first hit ( more than you acutally need ) or load them individually... So you end up with a lot slower first hit experience than you might want.

      Enter isomorphism: The idea is to have your client side routes also exist on the server, so that when a user or google comes in the server can render out the necessary templates and even service data directly to the returned page, so zero async calls are required and rendering can start immediatly .all while downloading the EXACT content needed for that. and no more.

      Afterwards the normal rendering process takes over and its business as usual.

      This requires server support ( we had to write it ourselves for ASP.NET Core 1.0 in my last project ) and ideally should be DRY....
      We currently configure our angular ui-router routes just on the server specifiy template and data dependencies and the server renders it out exactly like that ( prepopulating the template cache and the data cache of angular 1 )

      We have gotten our first hit time to a fully rendered page ( neglecting any networking latency ) down to 50ms that way, and we have no extra work anymore to keep the SEO people happy.

  5. Should work with any type of server side technolog by jjn1056 · · Score: 4, Informative

    Angular.js is a framework that runs on the client, typically a web browser. At the minimal you need a web server written in any old language and it communicates to the server via existing protocols, AJAX, HTML forms, etc. Any backend language will work. I use Angular2 beta right now with my Perl based web application.

    Maybe they intend to release tools and plugins for popular frameworks to make it easier? I have no idea...

    --
    Peace, or Not?
  6. So when will this majority switch exactly? by roman_mir · · Score: 4, Insightful

    I don't see how it is possible to have the majority switch to anything from their existing code base. I predict a gigantic fail for this plan of switching people from AngularJS 1 to AngularJS 2 in a year. It's nonsense.

    Let me explain something to Google here: vast majority of projects will not be rewritten with AngularJS 2, if they have AngularJS 1 as the code base, they will stay AngularJS 1 and will continue being developed as AngularJS 1. It takes MONEY to switch from one framework to another, money that most projects already spent on design, development, testing and releasing into production in the first place.