© Andrew T. Shvets 2020
A. T. ShvetsBeginning Ada Programminghttps://doi.org/10.1007/978-1-4842-5428-8_4

4. Procedures and Functions

Andrew T. Shvets1 
(1)
Providence, RI, USA
 

What You Will Get Out of This Chapter

This chapter will introduce the basic concepts of encapsulating your code into containers that can be used later. Think about it; if you wrote a sorting algorithm that would be able to organize a bunch of values from largest to smallest, you would need to repeat the entire algorithm elsewhere if you wanted to use it in other parts of the application. This does not make any sense. Furthermore, if you have a bug in your algorithm, you would need to go over every single copy of it and fix it. What a waste of time!

There is a better way. That ...

Get Beginning Ada Programming: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.