Chapter 4: Software Projects and How We Organize Our Code
When we write software and our program grows, we will need to organize our code so that it is easy to read when we need to maintain it. An application can be hundreds of thousands or millions of lines of code long, so having it all in a single file is impossible. We will need to divide the code into multiple files, but how will we do this? And even if we put the code into separate files, then we'll have lots of files, so we will need to organize them into folders. How can we do this so that the compiler or interpreter can find them? How will we know where to look when we need to edit a part of the application? In this chapter, we will discuss this and learn about some patterns that we can use.
The following topics will be covered in this chapter:
- Understanding code modules
- The concept of a code project
- Working with package managers to share code
- Delving into a namespace
- Using namespaces to avoid...