A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
几个简单易行的原则 DRY. don’t repeat yourself. KISS. Keep it simple, stupid YAGNI. You ain't gonna need it class design principles SOLID(wiki, article): SRP, OCP, LSP, ISP, DIP. SRP(wiki, pdf): Single responsibility principle. A class should have one, and only one, reason to change. OCP(wiki, pdf...