You Might Not Need JavaScript Classes
Offered By: Devoxx via YouTube
Course Description
Overview
Explore the potential drawbacks and alternatives to using JavaScript classes in this 40-minute conference talk from Devoxx. Delve into the controversial topic of classes in ECMAScript, examining issues like context binding of methods. Discover alternative patterns that are conceptually simpler, safer, more idiomatic, and potentially more powerful. Learn about object-oriented programming, prototypes, factories, object composition, higher-order functions, and modules as alternatives to classes. Gain insights into the implications of using classes in React and how hooks offer a different approach. Understand when to be cautious about using classes and consider more functional programming paradigms in JavaScript development.
Syllabus
Introduction
Opening
Who am I
Agenda
Objectoriented programming
StepCounter
Classes are familiar
False expectations
Counter example
Bind increment method
Class method
Class minification
Prototypes
Factories
Implicit binding
Object Composition
CreateBaseCounter
Functions Toolbox
Higherorder functions
Modules
Problems with classes
React hooks
Beyou example
Lifecycle methods
Base in functions
Recap
You shouldnt use classes
Watch out for
Thank you
Taught by
Devoxx
Related Courses
Introduction à la programmation orientée objet (en Java)École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction to Programming for Musicians and Digital Artists
California Institute of the Arts via Coursera Beginning Game Programming with C#
University of Colorado System via Coursera Paradigms of Computer Programming
Université catholique de Louvain via edX