CommonJSDexter.Yy@Sunday,December19,2010……Sunday,December19,2010CommonJS……Sunday,December19,2010CommonJS……Sunday,December19,2010CommonJS……Sunday,December19,2010team…………Sunday,December19,2010••——UISunday,December19,2010Sunday,December19,2010•jQueryYUIMooTools——•/••••——UISunday,December19,2010•——//……Sunday,December19,2010•“”••••——//……Sunday,December19,2010•——•TTI——Sunday,December19,2010•hack……•vs——•…………•——•TTI——Sunday,December19,2010•••Sunday,December19,2010…………module+autobuild/preprocessor/compilerSunday,December19,2010CommonJSSunday,December19,2010“JS”CommonJS……Sunday,December19,2010CommonJS•API••defacto•JS•JSecosystemdejureSunday,December19,2010JS•JSAPI••PythonPyPI(egg)+setuptools•RubyGem•PerlCPANSunday,December19,2010PythonmoduleSunday,December19,2010•KevinDangoor09CommonJS•WhatServerSideJavaScriptneeds•09Mozillaweb•0810MozillaAjaxianDionAlmaerBenGalbraithSkywriter/BespinKevinDangoorlead•SitePenTurboGearsPaverSunday,December19,2010CommonJS•JS/API•module•JSCommonJS——moduleSunday,December19,2010“JS”•“”JavaScriptUI•JavaScript“”moduleSunday,December19,2010JS“”Sunday,December19,2010JS•FirefoxAdd-onSDKJetpack•1.0beta1•FirefoxXULXPCOMJS•CommonJSmoduleJSAPISunday,December19,2010DEMOBebilithSunday,December19,2010DEMO:Safari•Chrome•APImodule•ChromeFirebug•“”hackApple……Sunday,December19,2010/GUIJS•NokiaQTQuick•MeeGoSymbianApp•QTC++•QMLJavaScriptJavaScriptSunday,December19,2010/GUIJS•WebOS2.0•nodejsSunday,December19,2010/GUIJS•OneRing•“HTML5+CSS3Javascriptweb”•Issue25CommonJSAPI……Sunday,December19,2010JSConf.euJsConf2009DCJsConf2009BerlinJsConf2010DCJsConf2010BerlinJsConf2011DCSunday,December19,201010%embedded•js•Arduino••arduinojs:ArduinowillrunJavaScriptoneday•GeekSunday,December19,2010Sunday,December19,2010JS•RyanDahl0911JSConfNodeJS•AptanaJaxerJSNodeJS•server•v8erlang•CommonJSSunday,December19,2010NodeJSmodule•github550+•web……Sunday,December19,2010JS•module••Sunday,December19,2010ModuleSunday,December19,2010modulemoduleB.pymoduleA.pymain.pySunday,December19,2010module•module••••••JSSunday,December19,2010module•module••••••JSJSJSJSmoduleSunday,December19,2010JSscripttagHTML……scriptcombo……Sunday,December19,2010•••Sunday,December19,2010ScriptloaderModuleloaderSunday,December19,2010scriptloader•LABjs••Sunday,December19,2010scriptloader“”HeadJS……Sunday,December19,2010scriptloader……APITUI.module.usescriptloaderSunday,December19,2010ModulePatternSunday,December19,2010DaveHerman:JavaScriptneedsmodules!Q……ADaveHermanMozillaECMATC39ECMAScript5SimpleModulesSunday,December19,2010ES5SimpleModules•=strawman:simple_modules••NarcissusSunday,December19,2010ES5SimpleModulesscripttype=”text/es-harmony”moduleA.jsSunday,December19,2010ES5SimpleModules•CommonJSSimpleModulesandCurrentModules•KrisZypSitepenDojoAlexRussellDojoBrendanEichJS•SimpleModules“”strawmanproposalSunday,December19,2010ES5SimpleModules•••web••Sunday,December19,2010CommonJSmoduleSunday,December19,2010BebilithrequireexportsSunday,December19,2010CommonJSModulemoduleA.jsmain.jsmoduleB.jsSunday,December19,2010CommonJSmoduleSunday,December19,2010CommonJSmoduleoz.jsCommonJSAPI……Sunday,December19,2010CommonJSmodule……APICommonJS……Sunday,December19,2010RequireJS•JamesBurkedojoMozilla——CommonJS•scriptloader•require•defineCommonJS“AMD”AsynchronousModulesDefinitionSunday,December19,2010AsynchronousModulesmain.jsmoduleA.jsSunday,December19,2010AsynchronousModulesJSONPSunday,December19,2010AsynchronousModules••••ModulePattern•exportsrequiremodulemodule•moduleSunday,December19,2010OzJS•require.js5.3K•oz.js1.5K•MRL•OzJS.defURISunday,December19,2010OzJSdefURIURISunday,December19,2010OzJS•def••••••Sunday,December19,2010Makeiteasiertosharecode,andpeoplewillsharemore.--DaveHerman,“JavaScriptneedsmodules”Sunday,December19,2010Sunday,December19,2010Sunday,December19,2010OzJSRequireJSSunday,December19,2010OzJSRequireJSTUICompilerSunday,December19,2010OzJS+TUICompilerOzJSTUICompilerModuleLoader+ModulerLoaderSunday,December19,2010“”•Python••WSGI•compilerpreprocessor•Sunday,December19,2010Vim:makeQvimwindowsA………………Sunday,December19,2010TUICompilerwxpythonGUIJIRA……Sunday,December19,2010TUICompilermylynSunday,December19,2010TUICompilerSunday,December19,2010TUICompilerTUICompilerSunday,December19,2010TUICompilerFiddler/Sunday,December19,2010TUICompilerFiddler/Sunday,December19,2010……•Twitter:•Googlebuzzfiles/dexter.yy•Blog•OzJS•TUICompiler