Principles - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: Principles (/thread-38857.html) |
Principles - astral_travel - Dec-03-2022 Hi, Say, is there a principle for simplification of code ? RE: Principles - Larz60+ - Dec-03-2022 There are design patterns, don't agree with all of them, but for example: https://peps.python.org/pep-0020/ https://www.geeksforgeeks.org/python-design-patterns/ I have been writing code and managing large projects for many years, and have my own aquired patterns that have worked for me. Would have to write a book to exlain them all. RE: Principles - Gribouillis - Dec-03-2022 Entire books are devoted to code refactoring. They explain ideas and tools in the field. RE: Principles - astral_travel - Dec-03-2022 (Dec-03-2022, 06:19 PM)Larz60+ Wrote: There are design patterns, don't agree with all of them, but for example: Larz, thanks allot for the links, the Zen of Python is quite nice to read... as for the second link,....if you don't agree with all that is written there - is there a chance that by reading these principles i will be mislead in some way ? (Dec-03-2022, 06:21 PM)Gribouillis Wrote: Entire books are devoted to code refactoring. They explain ideas and tools in the field. Gribouillis - that's good to know, is there a particular book you can recommend me to start with ? RE: Principles - Gribouillis - Dec-03-2022 (Dec-03-2022, 08:05 PM)astral_travel Wrote: is there a particular book you can recommend me to start with ?Well, Martin Fowler's «Refactoring» book is fairly well known. It is an excellent starting point. RE: Principles - Larz60+ - Dec-04-2022 astral_travel Wrote:as for the second link,....if you don't agree with all that is written there - is there a chance that by reading these principles i will be mislead in some way ?I doubt it, common sense will prevail. RE: Principles - ndc85430 - Dec-04-2022 Bob Martin's Clean Code is a good read to help one focus on readable code. RE: Principles - astral_travel - Dec-04-2022 (Dec-04-2022, 05:26 PM)ndc85430 Wrote: Bob Martin's Clean Code is a good read to help one focus on readable code. yea this book actually seems to be more suitable to me RE: Principles - ndc85430 - Dec-06-2022 I think refactoring techniques are useful once you know a bit about what good design and what makes for readable code. RE: Principles - ndc85430 - Dec-06-2022 I think refactoring techniques are useful once you know a bit about what makes for readable code and what good design looks like. Refactoring allows you to get from one state to another in small, controlled steps. |