Software Engineering Perspectives Articles

Sorted By: Most Recent
Jonathan Hsu Jonathan Hsu
Updated on May 22, 2025

How to Pick Between a For Loop and While Loop

In programming, for loops are best used when you know the number of iterations ahead of time, whereas a while loop is best used when you don't know the number of iterations in advance. Both methods can help you iterate through your code.

Image: Shutterstock / Built In
Stephen Fordham Stephen Fordham
Updated on May 22, 2025

Using Python Class Decorators

A Python class decorator is a class that wraps a function inside an instance of the class, allowing you to modify or extend the original function’s behavior without changing the source code. Here's how to apply it.

Image: Shutterstock / Built In
K. Jagathish K. Jagathish
Updated on May 22, 2025

3 Ways to Use Array Slice in JavaScript

The slice() method in JavaScript can be used on an array to return a shallow copy of a portion of the array, based on the start and end indices passed. Learn three different ways to use array slice in JavaScript.

Image: Shutterstock / Built In
Chaitanya Baweja Chaitanya Baweja
Updated on May 22, 2025

A Complete Guide to Using Python Progress Bars

A progress bar in Python provides a visual of code execution progress, which can help indicate code errors or how long an operation will take to complete. Here’s how to build your own with four different Python libraries.

Image: Shutterstock / Built In
Matthew Henschke Matthew Henschke
Updated on May 22, 2025

How to Solve the Two-Sum Problem

The two-sum problem is a popular technical interview question that involves finding two indices in an array that add up to a target value. Here’s how to solve the two-sum problem using two common methods.

Image: Shutterstock / Built In
Vikram Gupta Vikram Gupta
Updated on May 22, 2025

How to Undo the Last Commit Using Git Reset Command

The git reset command modifies Git commit history and lets you return to a specific commit with three options: --soft keeps changes staged, --mixed unstages changes and --hard unstages changes and removes them from the working directory.

Image: Shutterstock / Built In
Sadrach Pierre Sadrach Pierre
Updated on May 22, 2025

What Is a Function in Python?

A function in Python is a defined section of code that takes an input, performs a specific task and provides an output. Here, our expert introduces you to how they work in Python.

Image: Shutterstock / Built In
Max Reynolds Max Reynolds
Updated on May 22, 2025

Differences Between SOQL and SQL Explained

SOQL is Salesforce’s proprietary programming language that’s used to query data directly from your Salesforce. SQL is a language used to query data from a general database. Here’s what you need to know.

Image: Shutterstock / Built In
Artturi Jalli Artturi Jalli
Updated on May 22, 2025

Python 4 Isn’t Coming Out Anytime Soon

Python 4.0 is unlikely to be released due to compatibility issues experienced during the transition from Python 2 to Python 3. Here’s more on why Python 4.0 won’t happen, how Python 3 is being improved and what it would take to make Python 4.0 a reality.

Image: Shutterstock / Built In
Artturi Jalli Artturi Jalli
Updated on May 22, 2025

What Is the @ Symbol in Python and How Do I Use It?

The @ symbol in Python is used to apply a decorator to a function or method to extend its functionality, or to help perform matrix multiplication. Here's what to know about each use case.