7.9 A Programming Task
Good OO modeling isn’t easy and requires a lot of practice. Many developers start “modeling” in the code way too early, but doing so isn’t a good idea because you’ll often need rebuild the code, which ultimately costs time. Starting with a neat design makes sense, and you should be clear: “Which class has which responsibilities, and who talks to whom?” To document the design, UML diagrams are helpful, and for this purpose, we recommend reviewing documentation on the internet or picking up a book like UML Distilled: A Brief Guide to the Standard Object Modeling Language by Martin Fowler. Starting the design with boxes and lines on paper or on a whiteboard can also be extremely useful.
In the previous two chapters, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access