Episode Synopsis "Using Bitmasks for Efficient App Configurations"
In this episode, we look at 2 functions to encode and decode a bitmask for a set of configuration flags. This is a great way to efficiently store user or app settings. As always, the code for this snippet can be found here: https://codepen.io/walpolea/pen/WNNwaBq?editors=0012
Listen "Using Bitmasks for Efficient App Configurations"
More episodes of the podcast Code Snippet
- Using Bitmasks for Efficient App Configurations
- Easier Layouts with CSS box-sizing
- CSS Grid Named Area Layouts
- Destructured Function Parameters
- Using Spread with Objects and Arrays
- Using URLSearchParams Web API to Preserve Page State
- Random Whole Numbers With Bitwise Not
- 3 Ways to do CSS Vertical Centering
- Array of Unique Values with JS Set
- Indexing Data in Javascript