Learn to write organized and modular programs

I am a computer science student, and I am just starting to write relatively large programs for my term paper (from 750 to 1,500 lines). Until now, one could go through with any reasonable level of modulation and object-oriented design. However, now that I am writing more complex code for my purposes, I would like to learn how to write better code.

Can someone point me towards some resources to find out what things to look for when designing your program architecture so that you can make this as modular as possible?

+6
c ++ oop modularization
source share
4 answers

martin fowler refactoring is the book that has helped me the most among the 20 or so books that i read on oo, templates, test-based development, and general software development over the past two years. especially the odors section, will help you understand what you need to avoid as you develop more complex code.

+1
source share

This question has been asked here before, and the answer is usually that there is no such book. The reason for this is that there are no β€œrules” that can be applied to the problem β€” you need to continue the experiment. My experience is that you should write several libraries with a clear, unidirectional dependency chart, but apart from that, I would not want to commit myself.

+2
source share

Read Clear Code from Robert Matin

+2
source share

There is one important thing that will facilitate the work when developing modular applications or even turning a modular application into a later point, which is Injection Dependency .

It allows your modules to work separately from everything else, since it receives any data necessary to complete its task, without having to know anything about the application itself.

Some experience may be required to create high-quality, context-neutral DI code, so it is important to start thinking and experimenting with it as soon as possible.

+1
source share

All Articles