Dec-03-2022, 06:08 PM
Hi,
Say, is there a principle for simplification of code ?
Say, is there a principle for simplification of code ?
Principles
|
Dec-03-2022, 06:08 PM
Hi,
Say, is there a principle for simplification of code ?
Dec-03-2022, 06:19 PM
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.
Dec-03-2022, 06:21 PM
Entire books are devoted to code refactoring. They explain ideas and tools in the field.
Dec-03-2022, 08:02 PM
(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 ?
Dec-03-2022, 08:20 PM
(This post was last modified: Dec-03-2022, 08:21 PM by Gribouillis.)
(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.
Dec-04-2022, 03:44 AM
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.
Dec-04-2022, 05:26 PM
Bob Martin's Clean Code is a good read to help one focus on readable code.
Dec-04-2022, 05:48 PM
Dec-06-2022, 07:20 AM
I think refactoring techniques are useful once you know a bit about what good design and what makes for readable code.
Dec-06-2022, 07:22 AM
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.
|
|