5 Must-Know Differences Between ref() and reactive() in VuePosted January 25, 2023vuevue compositionreactivityStart discussionWhat are the main differences between ref() and reactive()? And when would you use one or another? Continue reading ➞
How to Destructure Props in Vue (Composition API)Posted January 11, 2023vuevue compositionpropsreactivityStart discussionHow to correctly destructure props object in a Vue component while maintaining the reactivity. Continue reading ➞
Triangulation in Test-Driven DevelopmentPosted October 4, 2022test-driven developmentunit testStart discussionHow to use triangulation technique to guide the creation of generic code in test-driven development. Continue reading ➞
How to Use nextTick() in VueUpdated January 30, 2023vuedomStart discussionnextTick(callback) executes the callback when the DOM has been updated. Continue reading ➞
Programming to Interface Vs to ImplementationPosted January 24, 2022software designinterfacetypescriptStart discussionHow programming to an interface can make your application easier to change in the future. Continue reading ➞
A Smarter JavaScript Mapper: array.flatMap()Posted December 31, 2021javascriptarrayStart discussionarray.flatMap() is a method on the array that let's you map elements a littler smarter. Continue reading ➞
Array Grouping in JavaScript: array.groupBy()Updated January 28, 2023javascriptarrayStart discussionarray.groupBy() and array.groupByToMap() methods let you group an array by certain criteria. Continue reading ➞
How to Access ES Module Metadata using import.metaPosted December 12, 2021javascriptmoduleurlStart discussionHow to access the meta information (module URL, etc.) of an ES module in JavaScript. Continue reading ➞
JSON Modules in JavaScriptPosted December 3, 2021javascriptjsonmoduleStart discussionHow to import JSON data directly into an ES module. Continue reading ➞
How to Trim Strings in JavaScriptPosted November 25, 2021javascriptstringwhitespaceStart discussionHow to trim (aka remove whitespaces and line terminators) from strings in JavaScript. Continue reading ➞