Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一些个人建议 #8

Open
dafa168 opened this issue Nov 23, 2016 · 1 comment
Open

一些个人建议 #8

dafa168 opened this issue Nov 23, 2016 · 1 comment

Comments

@dafa168
Copy link

dafa168 commented Nov 23, 2016

加点设计模式, 如:单例、工厂
能做成静态方法就做静态。

@jiangbai333
Copy link

jiangbai333 commented Nov 23, 2016

如果是自己写小程序,可以用一些比较高逼格的模式,出出彩!但是写框架,还是要考虑线程安全问题!单例模式并不是好的选择,类似spring单例陷阱! 多用户访问时容易发生干扰!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants