We select and review products independently. When you purchase through our links we may earn a commission. Learn more.
X
X
The Best Tech Newsletter Anywhere

Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.

Sign Up Here arrow indicating signup email field.

Approaches to Creating Typed Arrays in PHP

PHP doesn’t let you define typed arrays. Any array can contain any value, which makes it tricky to enforce consistency in your codebase. Here are a few workarounds to help you create typed collections of objects using existin…

How to Manipulate JavaScript Arrays

JavaScript arrays are data structures which let you store multiple values under a single variable name. Arrays are a type of object. They come with several utility methods you can use to manipulate their data….

How to Prune Unused Docker Resources

Docker lets you quickly package your applications as containers, making it possible to run them anywhere from your laptop to a public cloud. After using Docker for a while, you can accumulate a large number of redundant conta…

How to Set Kubernetes Pod Resource Limits

Setting resource limits on your Kubernetes pods prevents an errant container from impacting other workloads. Kubernetes lets you cap resources, including CPU and memory consumption. Pods can be terminated when their limits ar…

Kubernetes Alternatives to Docker Commands

Docker usually provides a developer’s first introduction to containers. Kubernetes is an orchestration platform which solves challenges around running containers in production. Here’s how Docker commands map to their Kubernet…

Conditional Rendering in React

React’s declarative rendering approach lets you quickly write rich components combining layout, presentation, and logic. However, it can make it more complicated to conditionally render UI sections. Here’s a few methods you c…

How to Persist Your Redux Store

Redux simplifies state management in complex applications. As the Redux store contains your app’s entire state, persisting it lets you save and restore the user’s session.

How to Use Flameshot, a Linux Screenshot Tool

Flameshot is a powerful screenshot tool for the Linux desktop. You can capture and annotate screenshots using intuitive tools. Finished images are copied to the clipboard, saved to your filesystem or uploaded to Imgur….

How to Use Refs in React

Refs are a React feature which let you directly access DOM nodes created by a component’s render() method. They provide a way to break out of React’s declarative rendering so you can call browser APIs….

How to Run a Linux Shell on iOS

iSH is an active project to run a Linux shell on iOS. It offers an Alpine Linux environment, complete with the apk package manager. The app relies on usermode x86 emulation.

How to Write Your Own Iterable Objects in PHP

PHP allows you to create iterable objects. These can be used within loops instead of scalar arrays. Iterables are commonly used as object collections. They allow you to typehint that object while retaining support for looping…

What Is Dependency Injection in Programming?

Dependency injection is a software engineering technique where objects are passed instances of the other objects they depend on. Instead of reaching to fetch outside dependencies themselves, objects should directly receive ev…

How to Monitor Your DigitalOcean Droplets

Monitoring your cloud resources lets you stay ahead of demanding workloads. DigitalOcean’s droplets benefit from versatile built-in reporting options that give you visibility into your usage.

Ways to Format Console Output in JavaScript

JavaScript developers are familiar with the humble console.log() function. Although console logging may appear straightforward, there’s much more available within the console object. Let’s look at how you can enhance your log…

How to Dockerise A React App

Containerising your projects with Docker simplifies the development experience and facilitates straightforward deployment to cloud environments. Let’s look at how we can package a React site as a Docker container….
How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read billions of times. Want to know more?