随笔分类 -  设计模式学习

摘要:源文地址:http://www.cnblogs.com/TomXu/archive/2011/12/19/2291448.html引子经常从Recruiter那里得到抱怨:“汤姆,为什么面试者每次回去的时候都感觉良好,而你却说此人达不到Senior级别?”我都是微笑着说:“感觉不一定都是对的哦。”Recruiter:“那你就不能问点别的么?为什么每次面试者都说你问的是单例?”我只能解释:“单例挺好的,可以问出很多基础知识哦。”Recruiter:“大叔,单例我都懂了,不就是程序运行的时候只能有一个实例么?我打电话招人的时候经常都帮你问过了呢!做开发的没几个不懂!”我Faint。。。为避免引起误 阅读全文
posted @ 2012-05-03 16:33 NN&&DD 阅读(388) 评论(0) 推荐(0)
摘要:源文地址:http://www.fascinatedwithsoftware.com/blog/post/2011/07/13/A-Generic-Singleton-Class.aspxMuch has been written about how to implement the Singleton pattern in C#. The basic idea, ignoring the aspects of thread-safety:Make the default constructor private so the class cannot be instantiated direc 阅读全文
posted @ 2012-05-03 16:08 NN&&DD 阅读(310) 评论(0) 推荐(0)