Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FF4C110D7 for ; Wed, 9 Jul 2014 18:14:02 +0000 (UTC) Received: (qmail 26188 invoked by uid 500); 9 Jul 2014 18:14:02 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 26151 invoked by uid 500); 9 Jul 2014 18:14:02 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 26136 invoked by uid 99); 9 Jul 2014 18:14:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 18:14:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harbs.lists@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 18:13:59 +0000 Received: by mail-wi0-f182.google.com with SMTP id d1so943887wiv.3 for ; Wed, 09 Jul 2014 11:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=KdgDd4wJ6V9LtmgrqyHNlnIL2wGH2A0v9gaV+4Bpx4w=; b=PrlZCt/+n2n6h5O3uXtrXzX1+QZULcJzVcZGe/jP97qM97cpd4hUDxIO1yDMfXtZLM hbhbTjrTwWGiLSv1jOOrKsW/o9SPAmxAnRnE1tDDVkBzFwAECI8+NMTBBrCpQfRPb4Vc hctZGGgXxHS8/OrAxtU541yD6Cf1NnsqUpcrQlwxOKQRqacQWVu0mtdDp/DKMn0BiEQd N2cOuUZtL405m8QKUoEIVfV8QxTMGh9NCVTgnsr89QJIlD/KFI+02YJrueq7X6BUyP6n KYrIA3S04ousSiiwI4anQsQ9GJD59RP82BUbMf17r68PhTvyIqaaiq925aIGcBMHxI+i kMkQ== X-Received: by 10.180.81.72 with SMTP id y8mr13424823wix.7.1404929615105; Wed, 09 Jul 2014 11:13:35 -0700 (PDT) Received: from [192.168.0.2] ([5.102.235.161]) by mx.google.com with ESMTPSA id sa4sm73338611wjb.45.2014.07.09.11.13.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Jul 2014 11:13:34 -0700 (PDT) Content-Type: text/plain; charset=euc-kr Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: New Flex to JS project From: Harbs In-Reply-To: Date: Wed, 9 Jul 2014 21:13:31 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <6509A4D4-49AE-4351-8AAE-FE6FC87A62B5@gmail.com> References: <71B64798-371A-49C2-8701-362959BFFECE@gmail.com> <498B603D-ABDB-4CFD-ADC5-4C1657CB9C00@gmail.com> To: dev@flex.apache.org X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org Hmm. I might have been misunderstanding you. I thought you were discussing getting FlexJS with mxml markup, data = binding and everything else to work with Angular. That=A1=AFs what I = don=A1=AFt see as a fit. If you mean to simply write Angular applications in AS instead of JS and = cross-compile using FalconJX, then yes, that should (probably) work. = Besides TypeScript, you can also use CoffeeScript as well as Angular = Dart. I can see an argument to write Angular in AS, but that is just utilizing = the compiler, rather than the FlexJS framework as a whole. I also don=A1=AF= t think that it makes sense to create an ActionScript compile target for = Angular apps. Harbs On Jul 9, 2014, at 8:48 PM, Alex Harui wrote: > OK, I'll try to find time to read up on Angular. It does appear that > TypeScript works with Angular. My rudimentary understanding of this = stuff > says that if you can use TS you should be able to use AS as well, but = I > could certainly be wrong. >=20 > -Alex >=20 > On 7/9/14 10:43 AM, "Harbs" wrote: >=20 >> FWIW, here=A1=AFs some Angular-compatible components: >> http://angular-ui.github.io/ >> http://angular-ui.github.io/bootstrap/ >> http://angular-ui.github.io/ng-grid/ >>=20 >> and a whole site dedicated to cataloging Angular modules (some of it = UI, >> and some of it business logic): >> http://ngmodules.org/ >>=20 >> As you can see, except for the basic HTML elements, any UI that is = used >> with Angular is going to be external modules from either existing UI >> frameworks (i.e. Bootstrap), or ones built specifically for Angular. = None >> of these are part of the core Angular framework. >>=20 >> I do think that for FlexJS to be successful, we would need some kind = of >> public catalog of external modules (components) similar to the = ngmodules >> site. >>=20 >> On Jul 9, 2014, at 8:11 PM, Harbs wrote: >>=20 >>> Angular is not really components. It=A1=AFs more the glue that holds = the >>> components together. >>>=20 >>> Basically, the selling point of Angular is how it binds javascript = to >>> HTML. Building custom Angular components is the hardest part of = using >>> the framework (and for the most part is not part of the framework >>> itself). They call them =A1=B0directives=A1=B1 and they have very = unintuitive json >>> markup that goes with the js code. >>>=20 >>> Angular pretty strongly prescribes how the app is put together and = it=A1=AFs >>> comprised of HTML template and directive files which comprise the = view, >>> and controller/factory/service files which comprise the model and >>> controller. >>>=20 >>>=20 >>> On Jul 9, 2014, at 7:44 PM, Alex Harui wrote: >>>=20 >>>>=20 >>>>=20 >>>> On 7/9/14 9:16 AM, "Harbs" wrote: >>>>=20 >>>>> I wouldn=A9=F6t call myself an expert on the subject, but I have = had the >>>>> opportunity to familiarize myself with both Angular and Create.js = the >>>>> past half year. >>>>>=20 >>>>> Create.js makes sense to integrate into FlexJS. I=A9=F6m not sure = I >>>>> understand >>>>> how Angular would/could be integrated. It seems to me that Angular = is >>>>> a >>>>> competing framework and I don=A9=F6t understand how the two could = work >>>>> together. >>>> IMO, most JS frameworks offer a set of components that you glue >>>> together >>>> with JS. I'm not an expert on these frameworks, but I think = Angular is >>>> one of them. Assuming the JS framework is not buggy, I think there = is >>>> a >>>> lot of pain in writing and debugging the JS code that glues the >>>> components >>>> together (the rest of the pain is probably in browser-specific = issues). >>>> TypeScript seems to have reached the same conclusion and offers a = new >>>> language to do the gluing. I'd say Dart and GWT also have the same >>>> thoughts. >>>>=20 >>>> FlexJS has the potential to be on-par or better as a way to do the >>>> gluing. >>>> We have IDEs, we have runtime verification, and we have declarative >>>> markup in MXML. >>>>=20 >>>> Think of it this way. If IKEA or other assemble-it-yourself = furniture >>>> makers shipped you a box of pieces cut to size and then just nails = and >>>> screws and pre-drilled holes, you'd make a lot of mistakes building = the >>>> furniture. Instead, these manufacturers use special connectors = making >>>> it >>>> much more clear what goes where and making it impossible to make >>>> certain >>>> kinds of errors. >>>>=20 >>>> IMO, classes are those special connectors. JS is just nails and >>>> screws. >>>> In JS, you can attach anything to anything and won't find out until >>>> much >>>> later. In FlexJS, we can offer both better connectors and a = schematic >>>> diagram (MXML). >>>>=20 >>>> -Alex >>>>=20 >>>>>=20 >>>>> On Jul 9, 2014, at 5:28 PM, Alex Harui wrote: >>>>>=20 >>>>>> I hope to attract Jquery, Angular, >>>>>> CreateJS experts and fans to build out these frameworks and = making >>>>>> them >>>>>> wade through the current SDK would probably be an inhibitor to = them. >>>>>=20 >>>>=20 >>>=20 >>=20 >=20