Writing Code with Efficiency in Mind

Learn how to write efficient code with respect to time and memory consumption.

Efficient code

When we talk about efficient code, we can mean several different things. Let’s look at some of the things people might mean when they talk about efficient code.

Removing redundant or unnecessary code

You should always make sure that you remove redundant code. Redundant code is code that doesn’t affect the output of the application, but will be executed.

Take a look at the following code:

Get hands-on with 1200+ tech skills courses.