1.单一职责原则(srp):就是设计一个对象,对象的职责要单一.比如设计用户类,将用户的行为和用户的属性分成两个接口,继承的方式设计类.还有一个srp的解释是:there is no more than one reason for a class to change但srp的原则有可能把握的过细,...
分类:
其他好文 时间:
2014-06-28 13:57:06
阅读次数:
205
Microsoft has an article that explains how to automate PowerPoint using VBFor some odd reason they've entitled it How to automate Powerpoint using VB....
分类:
其他好文 时间:
2014-06-25 14:28:25
阅读次数:
157
刚刚遇到的两个错误,。1,Terminating app due to uncaught exception'NSGenericException', reason: 'Push segues can only be used when the sourcecontroller is managed...
分类:
其他好文 时间:
2014-06-20 23:08:13
阅读次数:
318
什么是单一职责原则? 单一职责原则的英文名称是Single Responsibility
Principle,简称是SRP。SRP原则的解释是:There should never be more than one reason for a
class to change。定义很简单,即不能存在多....
分类:
其他好文 时间:
2014-06-12 15:29:46
阅读次数:
202
AppDelegate.h#ifndef _APP_DELEGATE_H_#define
_APP_DELEGATE_H_#include "cocos2d.h"USING_NS_CC;/**@brief The cocos2d
Application.The reason for imp...
分类:
其他好文 时间:
2014-06-10 22:15:51
阅读次数:
245
A few people have been experiencing the following
error. UPDATE: The reason for it happening is because when your browsers request
a page from us, we ...
分类:
其他好文 时间:
2014-06-10 20:51:52
阅读次数:
273
AppDelegate.h#ifndef _APP_DELEGATE_H_#define
_APP_DELEGATE_H_#include "cocos2d.h"USING_NS_CC;/**@brief The cocos2d
Application.The reason for imp...
分类:
其他好文 时间:
2014-06-10 10:28:07
阅读次数:
260
今天下载了一份原来来参考,却发现SDK版本偏低我没有安装用SDK
Manager却一直更新不了出现Failed to fetch URL
https://dl-ssl.google.com/android/repository/repository-6.xml, reason:
Connection...
分类:
移动开发 时间:
2014-06-09 17:48:05
阅读次数:
409
什么是单一职责原则 什么是单一职责原则? 单一职责原则的英文名称是Single
Responsibility Principle,简称SRP。SRP的原话解释是:There should never be more than one
reason for a class to change.也就是说...
分类:
其他好文 时间:
2014-06-08 19:36:12
阅读次数:
315