资源描述:
《10 Reasons You_ll Love Dart Presentation》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、10ReasonsYou'reGoingtoLoveDartChrisStrom@eee_c●BrowserLanguage(primarily)●Familiar●IncorporatesLessonsLearned●BrowserLanguage(primarily)●FamiliarJavaScript●IncorporatesLessonsLearned10+Alanguagethatdoesn'taffectthewayyouthinkaboutprogramming,isnotworthknowing.-Ala
2、nPerlisEw...StaticTypingnon-standardlanguagehostiletotheopen-webNobodyisusingit…QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Func
3、tionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){
4、return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}"
5、;}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name){return"Hi,${name}";}say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Functionssay_hi(name)=>"Hi,${name}";say_hi("Bob");//"Hi,Bob"QuickDartPrimer:Anon.Functionsvarsay_hi=(name)=>"Hi,${name}";say_hi("Bob");//"Hi
6、,Bob"Oh,Ruby…I♥YouSoMuchclassCookieattr_reader:number_of_chipsdefinitialize(num)@number_of_chips=numendendc=Cookie.new(1)c.number_of_chips=>1Oh,Dart…I♥YouSoMuchclassCookie{varnumber_of_chips;Cookie(num){number_of_chips=num;}}MagicInstanceVariablesclassCookie{varnu
7、mber_of_chips;Cookie(num){number_of_chips=num;}}MagicInstanceVariablesclassCookie{varnumber_of_chips;Cookie(this.number_of_chips);}MagicInstanceVariablesclassCookie{varnumber_of_chips;Cookie(this.number_of_chips);}>varcookie=newCookie(12);>cookie.number_of_chips;/
8、/12>cookie.number_of_chips=25;>cookie.number_of_chips;//25MagicInstanceVariablesclassCookie{var_calories;//...}>varcookie=newCookie();>cookie._calories;