Tag Archives: Object-Oriented Design

Topic 12 – Introduction to Software Design

Why do I need to learn about software design?

What will you do if you are tasked to build a house. You will need to sketch its first and build the house based upon the sketch. Otherwise you may build a house that may collapse in a few weeks or cannot be decorated due to errors.

The situation is similar when you create software. You need to plan how you will build it first by deciding how many components and objects will be used and what are their responsibility, how they work together, how data will be organized, how data will be flowed within your application, how users will interact with the application, etc.

Software design knowledge will show you how to do these tasks.

What can I do after finishing learning software design?

You will know how to create a design for an application including static and dynamic structure, data organization, business processing workflows, etc.

Is is really useful? I feel that you can write the code right after having the requirements and I could refactor my code when needed.

That's great if you can do it like that. Just return to this topic
(i) when you do not know how to write the code for a feature or 
(ii) when you cannot refactor your code because only a small change breaks the whole application or 
(iii) when you write a software system together with 20 other developers and you do not know how to integrate results of all developers into one solution or 
(iv) when you software system serves 20 users simultaneously very well but it stops when serving 2,000 users simultaneously and you do not know how to fix it.

Alright! What should I do now?

Software design requires a lot of reading. Each application type (enterprises, games, desktop, web, mobile, security, etc.) require specific design knowledge. At this point we focus only on the basic elements of software design.
In order to get familiar with software design please read these 3 books below in parallel:

- Grady Booch et al. (2005). The Unified Modeling Language User Guide. Addison Wesley Professional

- Craig Larman (2004). Applying UML And Patterns. 3rd Edition. Prentice Hall

- Robert C. Martin (2003). Agile Software Development - Principles, Patterns, and Practices. Pearson
After that please read this Erich Gamma et al (1994). Design Patterns Elements Of Reusable Object Oriented Software. Addison-Wesley Professional book.

Please focus on the Motivation section of each pattern. You can skip a pattern if the problem presented in its Motivation section is not relevant to your situation.
After that please read this Frank Buschmann et al. (1996). Pattern-Oriented Software Architecture: A System Of Patterns. John Wiley & Sons Ltd book.
After that please read 
- this Meilir Page-Jones (1988). The Practical Guide to Structured Systems Design. Pearson Education book, and 
- this Bertrand Meyer (1997). Object-Oriented Software Construction. Prentice Hall book, and
- this Grady Booch et al. (2007). Object-Oriented Analysis and Design with Applications. Pearson book, and
- this David Budgen (2003). Software Design. Pearson book
to learn how to design software systematically.
After that please read this Robert C. Martin (2017). Clean Architecture: A Craftsman’s Guide to Software Structure and Design. Pearson Education book to learn how to create a real world architecture for enterprise application.
After that please read 
- this Len Bass, Paul Clements and Rick Kazman (2012). Software Architecture in Practice. Addison-Wesley book to review software architecture aspects, and
- this Paul Clements et al. (2010). Documenting Software Architectures: Views and Beyond. Pearson book to learn how to document an architecture so that it can be used for communicated, built and maintained, and
- this Humberto Cervantes and Rick Kazman (2016). Designing Software Architectures: A Practical Approach. Addison-Wesley Professional book to learn how to create an architecture systematically.
- this Nick Rozanski and Eoin Woods (2012). Software Systems Architecture: Working with Stakeholders Using Viewpoints and Perspectives. Addison-Wesley Professional book to learn how to apply theory to create an architecture systematically in real world.
After finishing the books please click Topic 13 - Software Project Management to continue.

Topic 4 – Object-Oriented Programming

Why do I need to learn about object-oriented programming?

Because most of modern software are written using object-oriented programming languages. Using object-oriented programming as a tool and more importantly as a problem solving approach will save you a lot of time and cost when you create modern software systems.

Alright! What should I do now?

Please read this Jim Keogh and Mario Giannini (2004). OOP Demystified. McGraw-Hill book.

Is that all?

Unfortunately, the book is not sufficient for writing real world object-oriented software. Although the book already gives you the fundamental concepts of object-oriented programming the examples are only to illustrate the concepts, not to demonstrate real world situations.

We recommend that you read it first because it introduces basic concepts of object-oriented programming very well. It helps you to distinguish object-oriented concepts from procedural programing concepts very clearly so that you could read other books to dig into real world object-oriented programming in a proper way.

Please read this RB Whitaker (2017). The C# Player's Guide. Starbound Software book to learn how to apply object-oriented concepts to creating real world software using a specific object-oriented programming language (i.e. C# language).
After that please take a quick look at  
- this Joseph Albahari and Eric Johannsen (2020). C# 8.0 in a Nutshell: The Definitive Reference. O'Reilly Media book or 
- this Herbert Schildt (2010). C# 4.0 The Complete Reference. McGraw Hill book so that you can refer to a specific topic that needs more study when developing real world software.

I hear that there are many object-oriented programming languages such as C++, C#, Java, PHP, Objective-C, Swift, Python, Ruby. How many object-oriented programming languages do I need to know?

You should learn as many as possible. However, in this stage, we recommend that you learn only C++ or C# or Java.
C++ is the most used language for creating software systems that need high performance, including games, operating systems, compilers, database management systems, web browsers, graphics editors, medical and engineering applications.
Java and C# are the most used languages for creating enterprise systems.
- If you are required or prefer to learn C++, please read this Bjarne Stroustrup (2013). The C++ Programming Language. Pearson Education book.
- If you are required or prefer to learn Java, please read this Herbert Schildt (2019). Java: The Complete Reference. McGraw-Hill Education book.
After that please read 
- this Matt Weisfeld (2019). The Object-Oriented Thought Process. Pearson Education book and 
- this Bertrand Meyer (1997). Object-Oriented Software Construction. Prentice Hall book to get deeper understanding about object-oriented concepts and learn how to design software using object-oriented approach more efficiently.
After finishing the books please click Topic 5 - Introduction to Windows Programming to continue.