Notes
Over the years I’ve published a dev notes — some more noteworthy than others.
Here are some of my personal favorites. I hope you find something useful among them.
A lightweight translate helper that keeps translations co-located with the code that uses them, with no external files or key lookups.
Read this article →Stop guessing z-index values. Define named layers once and never debug stacking order again.
Read this article →Sets and maps are JavaScript data structures for storing and manipulating collections of data. This article covers the basics and common use cases for each.
Read this article →Getters and setters are used to define object properties that have custom logic for getting and setting their values in JavaScript.
Read this article →Symbols are unique and immutable values that can be used as keys for object properties. They are often used to add metadata to objects, to create non-colliding property keys, or to define constants.
Read this article →One of the best use cases for JavaScript generators
Read this article →