How to Use v-model with Form Inputs in VuePosted March 17, 2023vuev-modelinputformreactivityStart discussionUse Vue v-model to bind form input elements like text input, textarea, select, checkbox, radio. Continue reading ➞
How to Use refs and ref() in VuePosted February 28, 2023vuevue compositionrefreactivityStart discussionref() is a Vue composition API function that creates refs: small reactive values. Continue reading ➞
Environment Variables in JavaScript: process.envPosted February 8, 2023javascriptnodejsStart discussionHow to access environment variables in JavaScript using process.env and expose them to the browser runtime using bundlers like Vite and webpack. Continue reading ➞
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 ➞