introduction_best_practices.rst 1.3 KB

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