danielwrobert
danielwrobert
On Floating
11 posts
Saving words for making sense.
Don't wanna be here? Send us removal request.
danielwrobert · 1 year ago
Text
Optional Chaining in JavaScript
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 need for cumbersome and error-prone conditional…
Tumblr media
View On WordPress
8 notes · View notes
danielwrobert · 1 year ago
Text
Practical Differences Between sprintf() & printf() in PHP
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 as a result. The function takes a format…
Tumblr media
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Working With JavaScript Arrays: Static Methods
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 commonly used array methods, grouped into three classifications (destructive,…
Tumblr media
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Working With JavaScript Arrays: Non-Destructive Methods
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 commonly used array methods, grouped into three classifications (destructive,…
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Working With JavaScript Arrays: Destructive Methods
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 commonly used array methods, grouped into three classifications (destructive,…
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Object Key Access with Bracket Notation
Somewhat recently, I was looking through some example code (JavaScript) for a project and I came across the following syntax: function someFunction() { return { dog: "woof", cat: "meow", bird: "chirp", }[bird]; } 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…
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
CSS Feature Queries
Feature queries in CSS allow you to test whether a particular feature is supported by the browser before applying styles that use that feature. This means that you can take advantage of the latest features and functionality, while still ensuring that your site looks good on older browsers and devices. This is done by testing whether a particular CSS feature is supported by the browser, and then…
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Working With the Jobs Command
Working With the Jobs Command
UNIX-like operating systems (e.g., Linux, MacOS) have a handful of commands for managing your running programs (jobs) in the Terminal. From your Terminal application, you have the ability to manually send jobs to run in the background, bring them to the foreground, or suspend them. Below are the main job control commands with examples. List the Current Jobs If you have any jobs active in your…
View On WordPress
0 notes
danielwrobert · 2 years ago
Text
Auto-Updating in WordPress Core
Auto-Updating in WordPress Core
Every time I’ve installed a new installation of WordPress, I would install the latest version. Naturally. And 99% of the time, why wouldn’t you? Today, however, I explicitly needed to test a release against an older version of WordPress Core. In doing so, I learned a couple of useful things. 1. WP CLI Version Flag This is more of a side-note but, having never needed this before, I only today…
View On WordPress
1 note · View note
danielwrobert · 2 years ago
Text
Tumblr media
4 notes · View notes
danielwrobert · 5 years ago
Photo
Truth.
Tumblr media
A day in the life of a software developer.
210 notes · View notes