Daniel W. Robert
Front-End Engineer. Always a student.
-
The nullish coalescing operator (??) is a relatively new addition to the JavaScript language (introduced in ES2020). It is a logical operator that returns the right side operand when the left side operand is null or undefined, and otherwise returns the left side operand. It is similar to the logical OR operator (||), however it
-
Recently, a team mate of mine mentioned that they have been using AI to quickly get caught up on long communication threads in Github Discussions, Issues, and Pull Requests. This sparked my curiosity as and seemed like something that could offer a big productivity boost for me, especially as an Engineering Manager. So I decided
-
The display: contents; rule in CSS is a unique display value that tells CSS not to treat the targeted item as an actual element in the DOM and, instead, treat the children of the target element as direct children of the parent element. It is then essentially treated by CSS as if you set the
-
Occasionally, I will put together script to automate some of my work tasks. More often than not, it’s ideal to be able to call that script from anywhere on my filesystem, as opposed to constantly navigating to its directory or typing out its full path to run it. Luckily, this is pretty straightforward to set
-
Introduced in ECMAScript 2020, Optional Chaining is a a modern feature in JavaScript that allows you to read the value of a property located deep within a chain of nested object properties, without having to explicitly validate each reference in the chain. This simplifies the process of handling potential null or undefined values without the
-
The sprintf() and printf() functions in PHP are often used for formatting strings. While they are very similar, they serve slightly different purposes. Let’s dive into the practical differences between the two: sprintf() The sprintf() function is primarily used to format a string but does not print it directly. Instead, it returns the formatted string
-
In JavaScript, arrays are one of the most commonly used data structures. They are a collection of elements, each with a unique index or key. JavaScript offers a variety of methods to work with arrays that make it easy to manipulate and transform your data. This short series will list out some of the most
-
In JavaScript, arrays are one of the most commonly used data structures. They are a collection of elements, each with a unique index or key. JavaScript offers a variety of methods to work with arrays that make it easy to manipulate and transform your data. This short series will list out some of the most
-
In JavaScript, arrays are one of the most commonly used data structures. They are a collection of elements, each with a unique index or key. JavaScript offers a variety of methods to work with arrays that make it easy to manipulate and transform your data. This short series will list out some of the most
-
Somewhat recently, I was looking through some example code (JavaScript) for a project and I came across the following syntax: I hadn’t seen this format before so it took me a second to parse through what it was doing. Essentially, this is just a fancy way of returning a single value from within an unnamed