You Might Not Need JavaScript Classes
Offered By: Devoxx via YouTube
Course Description
Overview
Explore the controversial topic of JavaScript classes in this 47-minute Devoxx conference talk. Delve into potential issues and pitfalls of using classes, including the need for context binding of methods. Discover alternative patterns that are conceptually simpler, easier to work with, safer to use, more idiomatic, and require less code. Learn about factory functions, object composition, function decorators, modules, singletons, and React Hooks as powerful alternatives to class-based components. Gain insights on adjusting expectations and leveraging functions as the core building blocks in JavaScript development.
Syllabus
Introduction
Who am I
Agenda
Why classes
Example
Classes in JavaScript
The problem with classes
False expectations
Lack of features
Context binding
Constructor binding
increment method
tools classes
avoid classes
whats left
factory function
API class
Object composition
Create base counter
Create step counter
Functions toolbox
Function decorator
Module
Singleton
React Hooks
Examples
HBU
Classbased components
Complicated patterns
Recap
Adjust your expectations
Questions
Taught by
Devoxx
Related Courses
Programming LanguagesUniversity of Virginia via Udacity Building a Basic Website
University of Massachusetts Amherst via Independent iDESWEB, Introducción al desarrollo web
MirÃadax Web Engineering II: Developing Mobile HTML5 Apps
Technische Hochschule Mittelhessen via iversity Web Application Architectures
University of New Mexico via Coursera