JavaScript開発で使われてきたIIFEやAMD、Bowerなどのモジュール管理手法を解説し、ブラウザ向け開発の変化を紹介します。現在のモジュールシステムにつながる歴史や、それぞれの仕組みと役割を理解できる内容です。
IIFEとは「Immediately Invoked Function Expression」の略であり、日本語で「即時実行関数式」と訳されます。その名の通り、定義されたタイミングですぐに実行されるJavascript関数のことを指します。 通常関数は、定義された後に別途呼び出される必要がありますがIIFE ...
Explain why the following doesn't work as an IIFE: function foo(){ }();. What needs to be changed to properly make it an IIFE? IIFE stands for Immediately Invoked Function Expressions. The JavaScript ...
A mixin provides methods that implement a certain behavior, but we do not use it alone, we use it to add behavior to other classes. Mixin is a genering object-oriented programming term — is a class ...