7SOLVING PROBLEMS WITH CODE REUSE

image

This chapter is very different from those that came before. In previous chapters, I stressed the importance of finding your own solution to problems. That’s what the book is about, after all: writing original solutions to programming problems. Even in previous chapters, though, we talked about how you are always learning from what you’ve written before, and that’s why you should retain all the code that you write for future reference. In this chapter, we’ll go one step further and discuss how to use code and ideas from other programmers to solve our problems.

If you remember how this book started, this topic may ...

Get Think Like a Programmer now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.