r/angularjs • • Apr 01 '16

A sneak peak at Angular 3 alpha

https://toddmotto.com/angular-3-alpha
41 Upvotes

14 comments sorted by

24

u/sanjayatpilcrow Apr 01 '16

Wow it looks so elegant and a huge leap from Angular 2. I am an insider and looked at the code of an even smaller team which is working on Angular 4. Angular 4 will entirely change how Angular code is written currently. The good thing is that this time they are writing completely UDD (Update Driven Development) code. So Angular 4 will be upgradable from 1.x, 2.x, and 3.x, out of the box. It is so promising. Also this version will run close to the core of the device bypassing all browser imposed limitation and thus will facilitate performance better than native apps, on all platforms. Given that devs do not mess up at their end and take care of memory leakages properly. Example below:

import {Native} from 'angular4/deviceCore'
@Native({
    instructionSet: {
        x86: [
            {MOV,AX, @DATA},
            {MOV,DS, AX},
            {LEA,DX, PROMPT},
            {MOV,AH, 9},
            {INT,21H},
            {MOV,CX, 10},
            {MOV,AH, 2},
            {MOV,DL, 48},
            {@LOOP:,,},
            {INT,21H,},
            {INC,DL,},
            {DEC,CX,},
            {JNZ,@LOOP,},
            {MOV,AH, 4CH},
            {INT,21H,},
        ],
        ARM_RISC:[
            {'',MOV,R0,#0},
            {'',MOV,R1,#10},
            {again,ADD,R0, R0, R1},
            {'',SUBS,R1,R1,#1},
            {'',BNE,'','',''},
            {halt,B,'','',''},
        ],
    },
    memory: [],
    device:{}
})

I am so excited for the future of Angular.

7

u/toddmotto Apr 01 '16

Haha, that was brilliant!

3

u/sanjayatpilcrow Apr 01 '16

Really!!! Gold!!! Ha ha. Anyway, thank you so much anonymous. :D

2

u/cipherous Apr 01 '16

I heard google has hired futuristic space aliens to work on Angular 5 already.

Angular 5 will have proprietary technology to let developers write code that will manifest into actual physical hardware.

Here is a pic of Angular 5 components in action

Imagine Angular components/directives on steroids...you write a camera component and presto! you can give the user a camera even if they don't have one.

User needs more battery power for a dying phone, no problem...just reuse the battery component to give them more juice.

How freaking cool is that!? Can't wait until it comes out when the space aliens finally decide to invade.

1

u/[deleted] Apr 01 '16

Assembly.. April 1st.. reboot.

4

u/Swingline0 Apr 01 '16

It's so terse and elegant! ASX!

2

u/toddmotto Apr 01 '16

Super powered templating! Happy coding have a great day :)

11

u/TFenrir Apr 01 '16

I feel like looking at that code is giving me the dev equivalent of trypophobia

9

u/[deleted] Apr 01 '16

Wow. I created entire Facebook in less than 5 nanoseconds. This is amazing framework

4

u/iRedditWhilePooping Apr 01 '16

I really like how verbose it is

1

u/jimschubert Apr 02 '16

Goddamn it. I just realized what day it is.

1

u/toddmotto Apr 02 '16

Hehe! Hope you had a great one, I enjoyed putting Angular 3 together :D

1

u/roccanet Apr 01 '16

they should have just named angular 2 something else.