Modular Javascript #2 - Converting jQuery to an Object Literal Module

LearnCode.academy
LearnCode.academy
144.4 هزار بار بازدید - 9 سال پیش - In this video, we'll convert
In this video, we'll convert plain jQuery code to an object literal module.  It will still use jQuery, but the pattern will be much cleaner and easier to maintain.

Missed video #1?  Modular Javascript - Javascript Tutor...

Source code for this video:
http://codepen.io/anon/pen/OVZpqO?edi...

Web developers often don't see the value of changing the way they write javascript code - this is often due to the fact that they have never had to code a large application.  Code that doesn't look messy at first gets VERY messy when you need a lot of code doing a lot of things.

This video will show how to take that messy jQuery code and clean it up into a self-encapsulated module that is easy to work with.

Modular JS #1 - Object Literal Pattern pt 1:
Modular Javascript - Javascript Tutor...

Modular JS #2 - Object Literal Pattern pt 2:
Modular Javascript #2 - Converting jQ...

Modular JS #3 - Revealing Module Pattern:
Modular Javascript #3 - Revealing Mod...

~-~~-~~~-~~-~
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
Responsive Design Tutorial - Tips for...
~-~~-~~~-~~-~
9 سال پیش در تاریخ 1394/04/31 منتشر شده است.
144,489 بـار بازدید شده
... بیشتر