poeaa笔记 - 看到18章Registry

There are three common ways to do client session state: URL parameters, hidden fields, and cookies.

 

I come across many developers who have separate interfaces for every class they write. I think this is excessive, especially for application development. Keeping separate interfaces and implementations is extra work, especially since you often need factory classes (with interfaces and implementations) as well. For applications I recommend using a separate interface only if you want to break a dependency or you want to have multiple independent implementations. If you put the interface and implementation together and need to separate them later, this is a simple refactoring that can be delayed until you need to do it.

 

Indeed, I almost never use static fields unless they're constants. …I rarely use static mutable fields because they don't allow for substitution.

======================

affinity

vice versa

你可能感兴趣的:(职场,笔记,休闲,Registry,POEAA)