商品詳情
Tutsplus Marketplace Writing Modular JavaScript 視頻教學 英文教學版
商品編號:
本站售價:NT$200
碟片片數:1片
瀏覽次數:34082
|
【轉載TXT文檔】
|
您可能感興趣:
您可能也喜歡:
商品描述
軟體簡介:
When writing an entire web application in JavaScript, it’s very important
to have well-organized code; maintaining a spaghetti-coded project will
only cause you headaches and nightmares. In this tutorial, I’ll show you
how to modularize your code to make it easier to manage large JavaScript
projects.
I was inspired to write this tutorial after watching a presentation entitled
“Scalable JavaScript Application Architecture” by Nicolas C. Zakas (available
on the YUI Theater). We’ll take the theoretical code that he showed in his
slides and extend and customize it to create a robust JavaScript system
that will make it incredibly easy to build web apps on top of.
We’ll start by defining our modules; then, we’ll build a sandbox for them
to interact with. We’ll also need a core to handle the modules, and a base
(a JS framework) that gives the core an equalized environment to work on.
We’ll build our first core on jQuery, and then build an alternate core on
Dojo.
We’ll conclude this tutorial by discussing what the benefits and downsides
of using such an architecture for JavaScript are.