- Learning Python Design Patterns(Second Edition)
- Chetan Giridhar
- 110字
- 2021-07-16 09:46:14
Patterns for dynamic languages
Python is a dynamic language like Lisp. The dynamic nature of Python can be represented as follows:
- Types or classes are objects at runtime.
- Variables can have type as a value and can be modified at runtime. For example,
a = 5
anda = "John"
, thea
variable is assigned at runtime and type also gets changed. - Dynamic languages have more flexibility in terms of class restrictions.
- For example, in Python, polymorphism is built into the language, there are no keywords such as
private
andprotected
and everything is public by default. - Represents a case where design patterns can be easily implemented in dynamic languages.
推薦閱讀
- 多媒體CAI課件設計與制作導論(第二版)
- Expert C++
- Node.js 10實戰(zhàn)
- Learning C# by Developing Games with Unity 2020
- Xcode 7 Essentials(Second Edition)
- 算法大爆炸:面試通關步步為營
- 微服務設計原理與架構
- Flask Web開發(fā)入門、進階與實戰(zhàn)
- OpenNI Cookbook
- Swift語言實戰(zhàn)精講
- Java程序設計入門
- Instant Nancy Web Development
- Swift 4從零到精通iOS開發(fā)
- Odoo 10 Implementation Cookbook
- 零基礎學Scratch 3.0編程