Article
When creating a website or web application, especially if they feature a lot of templated content (such as a grid or list of items belonging to a category) - it's generally a good idea to divide it into pages to reduce the number of items that appear on the screen...
Guest Contributor
The switch statement is a powerful and convenient tool for controlling the flow of your program. It allows you to quickly and easily create multiple branches of code, depending on the value of a given variable or expression. It's commonly used when you need to execute different logic depending on...
Whether you're building a verification script for user input, a login form that requests users to include a character in a password - checking whether a string contains a character isn't an uncommon operation. In this tutorial - we'll take a look at the many ways you can check whether...
In bash scripts, assigning the output of a command to variables can be convinient by storing the outputs of the commands and using them later. In this short guide, we will take a look at how you can store the output of a command as a variable in Bash. The...
The echo command outputs a given string to the standard output pipe, typically pointing to the terminal. Although the standard output pipe can point to other interfaces - the echo command is typically used to print and display messages in the terminal. By default, the text of the displayed messaged...
The Adapter Design Pattern is a popular Structural Design Pattern used in software engineering. This guide looks at how we can implement the Adapter Design Pattern in Python. Design Patterns are template-like solutions - practically recipes for solving recurring, common problems in software development. The Adapter Pattern is based upon...
In this article we'll show you how to force update a component in React.js. More specifically, we'll be giving a brief introduction to React re-renders, we'll show how to force updates in class-based components, and how to force updates in functional components. React Re-Renders React itself automatically handles re-rendering...
Counting the word frequency in a list element in Python is a relatively common task - especially when creating distribution data for histograms. Say we have a list ['b', 'b', 'a'] - we have two occurrences on "b" and one of "a". This guide will show...
Reversing a string isn't uncommon in development, and fairly popular for entry-level interview questions. With JavaScript, we have many ways to reverse a string. We can use a combination of string's split() method as well as array's reverse() and join() methods (since strings are ultimately arrays of characters). We can...
© 2013-2023 Stack Abuse. All rights reserved.