摘要: 架构与需求 - p52: 架构的详细程度应该介于过描述和欠描述之间 做项目之前必须要清楚要做什么,如果需求不稳定,就把需求当做单独的项目来做,因为在你不了解你要做什么的情况就给出开发计划纯属扯淡。 谨防:我们向来都这么做,以前这么做是有历史原因的,了解历史原因,去掉令人费解的操作 为新领域的架构预留出多余的时间,如果必要,把架构设计作为单独的项目来做,多花点时间 类的设计 - p139 尽可... 阅读全文
posted @ 2013-03-21 23:54 mongg 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 查找// "select SPU_ID,TITLE,CATEGORY_ID,PROPERTIES,AFFECT_PROPERTIES,pict_url,STATUS from spu_[0000-0031] [0012-2334] where status=1 Pattern pt = Pattern.compile("\\[(\\d+-\\d+)\\]"); Matcher match = pt.matcher(sql); System.out.println(sql); // 找到第一个[0000-0031] ... 阅读全文
posted @ 2013-03-21 15:00 mongg 阅读(260) 评论(0) 推荐(0) 编辑
摘要: when(i.next()).thenReturn("Hello").thenReturn("World");when(c.compareTo("Test")).thenReturn(1);when(c.compareTo(anyInt())).thenReturn(-1);doThrow(new IOException()).when(mock).close();verify:确认某个方法被调用过verify(mock).close();verify(mock).write(argThat(arrayStartingWithA), 阅读全文
posted @ 2013-03-21 13:10 mongg 阅读(219) 评论(0) 推荐(0) 编辑
摘要: BookmarksBookmarks书签栏studyAMQApache ActiveMQ ™ -- IndexC++C++虚函数表解析(转) - - C++博客C++Dev Shed Forums - Open Source web developmentC++ to HTTP Get HTML and Save to FileC++ Libraries DocumentationchromeChrome扩展开发论坛 - Chrome中文扩展插件开发交流论坛 - ChromeChinaclojureObject Computing, Inc. - Java News Brief - March 阅读全文
posted @ 2013-03-21 11:09 mongg 阅读(596) 评论(0) 推荐(0) 编辑