Oreilly - JavaScript Best Practices
by Jeremy McPeak | Publisher: Infinite Skills | Release Date: March 2017 | ISBN: 9781491975824
Developers everywhere use JavaScript to build websites and desktop applications. While it's relatively simple to learn JavaScript basics, it can be a difficult language to truly master.This course helps you transition from JavaScript novice to JavaScript pro by teaching you the techniques and practices used by the seasoned practitioner. The only prerequisites are beginning level JavaScript experience, access to a good code editor (like Visual Studio Code), and the desire to improve. Gain experience writing robust high quality JavaScript code Master the use of semi-colons and JavaScript ASI (Automatic Semicolon Insertion) Discover where to put curly braces and why that actually matters Learn about equality, variables, functions, avoiding globals, and strict mode Explore object creation, creational patterns, privacy, and immutability Understand how to define and use modules to organize code Learn how to appropriately interact with HTML/CSS and the browser's DOM Understand how to lint code with ESLint and bundle code using webpackJeremy McPeak has programmed with and written about JavaScript since 1998. He creates courses on JavaScript, C#, ASP.NET, and PHP for Tuts+ Code; works as an applications developer for BTA Oil Producers in Midland, Texas; and is the author of more than a dozen software training titles, including "Beginning JavaScript, 5th Edition" (Wiley/Wrox) and "Collections in C# and .NET" (O'Reilly).
- Introduction
- Welcome To The Course 00:03:07
- About The Author 00:01:15
- Syntax
- Automatic Semicolon Insertion 00:10:33
- Curly Braces 00:03:58
- Equality 00:02:49
- Variables 00:09:13
- Functions 00:07:07
- Avoiding Globals 00:04:30
- Strict Mode 00:04:35
- Creating Objects
- Object Literals 00:09:27
- Factory Pattern 00:06:56
- Using Prototypes 00:07:57
- Constructor Pattern 00:10:51
- Classes 00:05:08
- Privacy 00:09:30
- Immutability 00:05:57
- How This Works 00:10:28
- Modules
- The Basic Module Pattern 00:07:19
- The Revealing Module Pattern 00:04:35
- ES2015 Modules 00:06:31
- Javascript And The DOM
- Decoupling Javascript And HTML 00:09:23
- Decoupling Javascript And CSS 00:07:46
- Avoiding Excessive DOM Changes 00:09:58
- NPM And Node
- Intro To NPM 00:09:08
- Acquiring And Using ESLINT 00:09:30
- Webpack For Client Code 00:08:01
- Webpack For Server Code 00:07:09
- Using Environment Variables 00:06:13
- Conclusion