Dale L. Jefferson·Oct 26, 2019JavaScript’s Object.freeze and TypeScript’s ReadonlyDo you want static or runtime immutability, or both? In this article I will show you how to combine Object.freeze with Readonly to get the…
InFrontend WeeklybyDale L. Jefferson·Mar 15, 2018The Most Convoluted JavaScript Fizz Buzz SolutionFinding the correct level of decomposition is sometimes challenging. In this article, I will take decomposition to the extreme creating a…
InFrontend WeeklybyDale L. Jefferson·Mar 8, 2018JavaScript Named ParametersI find JavaScript’s lack of named parameters frustrating. In this article, I will show you how you can get the same effect and as a bonus…
InFrontend WeeklybyDale L. Jefferson·Feb 6, 2018JavaScript Async/Await Promise All Array DestructuringI think you will agree with me when I say working with asynchronous code is an important part of modern app development. Using new…A response icon1A response icon1
InFrontend WeeklybyDale L. Jefferson·Feb 4, 2018How to save exact npm package versionsI’ve recently started using exact versions in my package.json. This allows me to have more control over my versions and with tools like…A response icon1A response icon1
InFrontend WeeklybyDale L. Jefferson·Jul 10, 2017ES8 Object.entries/valuesWith the release of ES8 (a.k.a 2017) we now have Object.values and Object.entries to accompany Object.keys. In this article, I will give a…
InFrontend WeeklybyDale L. Jefferson·Dec 30, 2016Understanding ReduxAfter using Redux on a handful of large applications, this is my understanding of how it should be used.A response icon2A response icon2
InFrontend WeeklybyDale L. Jefferson·Dec 29, 2016Redux reimplemented in 12 lines of codeI like to reimplement libraries I use, this allows me to better understand how they work, above is my minimal implementation of Redux. This…A response icon2A response icon2
InFrontend WeeklybyDale L. Jefferson·Dec 29, 2016Class properties with ReactUsing class properties you can simplify your handler functions. transform-class-properties is available via Babel and is included by…A response icon2A response icon2
InFrontend WeeklybyDale L. Jefferson·Dec 29, 2016Async Await with React Lifecycle methodsReact’s lifecycle methods can return any value, this is useful when combined with async await. If you compare that with the promise…A response icon14A response icon14