v-show vs v-if: Conditional Rendering in Vuev-if and v-show are two ways to conditionally render content in Vue. Both are built to conditionally render content in Vue, but in slightly different ways - which can be quite confusing. Let's take a look at how they work, and when you would use each...Feb 6, 2023·3 min read
How to Check if Object is Empty in JavaScriptDefining a new object in Javascript is pretty easy - but what if you want to find out if it's empty? For example, {} is an empty object, but how do we actually test that this is the case? let myObject = {} The easiest (and best) way to do this, is t...Feb 4, 2023·1 min read
Javascript Promise.all() - Everything you need to knowThe Promise.all() method in Javascript is a function which accepts many promises, and then does something only after they have all been settled. From all the promises you enter into it, it creates a new promise which then waits for each promise to fi...Feb 4, 2023·3 min read
Javascript innerHTMLIn Javascript, we have lots of different ways to manipulate DOM elements. DOM elements are the HTML elements we define when we write our scripts. Once we are targetting a particular DOM element, it's often useful to set its contents with new HTML con...Feb 4, 2023·3 min read
Centering Elements in CSS with TailwindTailwind is an increasingly popular and widely used framework, which makes it easier in some cases to build and ship features and products. In this guide, we'll be covering how you can vertically and horizontally center an element or text with tailwi...Feb 4, 2023·2 min read
Getting Started with Redis and Node.JSRedis is a powerful tool for caching data and having it available in memory. Redis requires RAM to use, and every piece of data you use in Redis is loaded into the RAM. That means it can be accessed really quickly, which allows us to cache and provid...Jan 29, 2023·2 min read
Javascript Array Some MethodI've already covered in another article the Javascript every method. It's useful for when checking if every element matches a certain criteria. The some method differs in that it checks if only 'some' elements pass a criteria. If some do, then the ex...Jan 28, 2023·2 min read