From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Functions in software development

Functions in software development

From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Start my 1-month free trial

Functions in software development

- [Narrator] In this section, we will discuss different ways to make our software code more reusable, starting with functions. When we start to write more code, just like any other task, many times we begin to realize we're doing the same things over and over again. You may have heard the term of DRY, D-R-Y, which stands for don't repeat yourself. The DRY principle is especially true in software development because software is great at grouping redundant tasks. It might sound intimidating to think about reusable code when we're starting out in software development, but it is actually pretty straight forward. The good news is DRY is almost always a gradual process. We could start small and gradually group together bigger chunks of code to make them more reusable. We will discuss these steps in the following sections. As we have done so far in this class, we will be using Python in our code examples, mainly because of its…

Contents