Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Principles
#1
Hi,

Say, is there a principle for simplification of code ?
Reply
#2
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.
Reply
#3
Entire books are devoted to code refactoring. They explain ideas and tools in the field.
Reply
#4
(Dec-03-2022, 06:19 PM)Larz60+ Wrote: 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.

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 ?
Reply
#5
(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.
astral_travel likes this post
Reply
#6
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.
astral_travel likes this post
Reply
#7
Bob Martin's Clean Code is a good read to help one focus on readable code.
Reply
#8
(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
Reply
#9
I think refactoring techniques are useful once you know a bit about what good design and what makes for readable code.
Reply
#10
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.
astral_travel likes this post
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020