This week Bart explains how to give our JavaScript classes better data attributes via a very powerful JavaScript feature: getters and setters. On my first read through the notes for the episode, my head was spinning a bit, but Bart explains this so well using concrete examples (like a circle with a radius) that I […]
Continue readingTag: encapsulation
CCATP #632 – Bart Busschots on PBS #93 – Encapsulation with JavaScript Objects
In this episode of Programming By Stealth, Bart takes us through the last “hat” that JavaScript objects can wear: encapsulation. As Bart walks us through the problems encapsulation solves using a funny NosillaCast-specific example, he shows how the code becomes reusable and sharable with encapsulation, and even more readable. You can read the tutorial shownotes […]
Continue reading