Programming By Stealth
Programming By Stealth
Bart Busschots & Allison Sheridan
PBS 95 of X — Better JavaScript Class Attributes
1 hour 9 minutes Posted May 2, 2020 at 11:54 pm.
0:00
1:09:13
Download MP3
Show notes

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 think he got it through to me. When I told him up front that I struggled a bit when reading the shownotes, he said that this is the "pointy end" which I think meant that it was a difficult concept so I felt a little better about it.

In the end it made a lot of sense and I see the reason for the tools he explained.

I highly recommend you read Bart's terrific tutorial shownotes at [pbs.bartificer.net/pbs95](https://pbs.bartificer.net/pbs95) as you listen along.