From small to large projects

I'm used to working on small projects that I encoded with 1000 lines or less (pong, tetris, simple 3D games, etc.). However, as my programming abilities grow, my organization is not. It seems that I am making everything dependent on each other, so it is very difficult for me to change the implementation of something.

Any ideas for my code to be organized and able to solve large projects?

+4
source share
4 answers

Draw architectural design ahead of time. This should not be too detailed, but imagine how you want everything to go together in general terms.

+1
source

boards are your best friends

prototypes (not necessarily working prototypes, using notecards or other methods)

plan first! dont code until you know your requirements / goals

+2
source

Read the refactoring first (famous for Martin Fowler).

By studying refactoring, you can learn how to write code that is easy to modify, read, and simplify.

I would suggest not studying design patterns until you understand refactoring first. With refactoring, you can understand the topics of clean and readable code. Once you understand refactoring, read on design patterns. Design patterns are very useful when you need to write more complex projects.

+1
source

Using design patterns is a good first step.

Also, spend some time writing good documentation regarding system architecture and application requirements.

Using a control source will help if you have not already done so.

Look for libraries you may need before you decide to turn your own.

0
source

Source: https://habr.com/ru/post/1276907/


All Articles