- Django Design Patterns and Best Practices
- Arun Ravindran
- 189字
- 2021-07-23 19:36:20
Best practices
In addition to design patterns, there might be a recommended approach to solving a problem. In Django, as with Python, there might be several ways to solve a problem but one idiomatic approach among those.
Python Zen and Django's design philosophy
Generally, the Python community uses the term 'Pythonic' to describe a piece of idiomatic code. It typically refers to the principles laid out in 'The Zen of Python'. Written like a poem, it is extremely useful to describe such a vague concept.
Furthermore, Django developers have crisply documented their design philosophies while designing the framework at https://docs.djangoproject.com/en/dev/misc/design-philosophies/.
While the document describes the thought process behind how Django was designed, it is also useful for developers using Django to build applications. Certain principles such as Don't Repeat Yourself (DRY), loose coupling, and tight cohesion can help you write more maintainable and idiomatic Django applications.
Django or Python best practices suggested by this book would be formatted in the following manner:
- 高效微控制器C語言編程
- Scala Design Patterns
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- RTC程序設計:實時音視頻權威指南
- PHP網絡編程學習筆記
- SAS數據統計分析與編程實踐
- 可解釋機器學習:模型、方法與實踐
- Spring Boot進階:原理、實戰與面試題分析
- C語言程序設計
- C語言程序設計
- C語言從入門到精通
- Python3.5從零開始學
- 從Power BI到Analysis Services:企業級數據分析實戰
- Scala Functional Programming Patterns
- 深入大型數據集:并行與分布化Python代碼