introduction_best_practices.rst 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. :article_outdated: True
  2. .. _doc_introduction_best_practices:
  3. Introduction
  4. ============
  5. This series is a collection of best practices to help you work efficiently with
  6. Godot.
  7. Godot allows for a great amount of flexibility in how you structure a project's
  8. codebase and break it down into scenes. Each approach has its pros and
  9. cons, and they can be hard to weigh until you've worked with the engine for long enough.
  10. There are always many ways to structure your code and solve specific programming
  11. problems. It would be impossible to cover them all here.
  12. That is why each article starts from a real-world problem. We will break down
  13. each problem in fundamental questions, suggest solutions, analyze the pros and
  14. cons of each option, and highlight the best course of action for the problem at hand.
  15. You should start by reading :ref:`doc_what_are_godot_classes`. It explains how
  16. Godot's nodes and scenes relate to classes and objects in other
  17. Object-Oriented programming languages. It will help you make sense of the rest of the series.
  18. .. note::
  19. The best practices in Godot rely on Object-Oriented design principles. We
  20. use tools like the `single responsibility
  21. <https://en.wikipedia.org/wiki/Single_responsibility_principle>`_ principle and
  22. `encapsulation <https://en.wikipedia.org/wiki/Encapsulation_(computer_programming)>`_.