随笔分类 -  (技术类)总结整理

摘要:比如下面的例子:projectStatusBar -->(refer to)projectApplication,因为它需要取到application level的一些数据(似乎不大合理,不应该这样依赖);现在需要给application对象增加一个新的成员变量mStatusBar,这就造成了新的dependency关系:projectApplication--> projectStatusBar。这就出现了circular dependency。解决方法非常普通并且普遍 : 1. (假设并且一定已经)有一个interface project,它的任务就是包含一堆interface 阅读全文
posted @ 2011-03-25 17:58 能巴 阅读(248) 评论(0) 推荐(0)
摘要:•源码控制:SVN •源码查看器:FishEye •Wiki:Confluence •Bug追踪器:JIRA •持续集成:Hudson用过三个。 阅读全文
posted @ 2011-01-31 17:27 能巴 阅读(410) 评论(0) 推荐(0)
摘要:1. Persistence1. Key concept is meta type and meta data. take persisting a class as example. Basically, we need to be able to save it into binary file and be able to read it back from binary stream. The basic rule to achieve this: 1. In order to be able to know where to read and how much bytes needs 阅读全文
posted @ 2011-01-25 18:10 能巴 阅读(274) 评论(0) 推荐(0)
摘要:Function object, also called functor, functional, or functionoid,is a computer programming construct allowing an object to be invoked or called as though it were an ordinary function, usually with the same syntax.Several notes for it:1. In C, there is only function pointer; in C#, there is only dele 阅读全文
posted @ 2010-12-22 17:38 能巴 阅读(208) 评论(0) 推荐(0)
摘要:碰到一个问题:需求是:对于同一个app,可以创建多个进程instance。如果一个进程instance已经启动并正在使用一个temp file, 这个temp file作为进程间exclusive使用的资源,是不允许被其他这个app的进程instance所访问的。方法:使用System.Threading.Mutex创建系统mutex--相当于进程级别的全局变量。In fixing。。。。。。。。。。。。。。。。。。。。。。。。。。。。学到的:The System.Threading namespace provides classes and interfaces that enable 阅读全文
posted @ 2010-12-10 11:02 能巴 阅读(1275) 评论(0) 推荐(0)
摘要:一般来讲,做任何task,都有一个必须的过程来总体上指导实现过程的有效进行:1. 了解清楚要做什么。包括spec的基本把握(同样的,第一步只需要总体把握+适当细节,不是全部细节的把握)。2. 怎么做: 1)弄清楚相关的背景知识,专业知识,以及相关的代码逻辑。这是开展工作的基础。 2)考虑solution。这会是接下来具体coding的指导思想。具体实现细节,这里在思考的时候,切勿深究。可以略过不想,最好;如果实在是想到了某个可能的难点的或block的实现细节,记下来好了。等到具体实现的时候,review下也是非常好的reference。 3)具体实现。这个过程里,99%情况下会碰到意想不 阅读全文
posted @ 2010-12-03 18:16 能巴 阅读(262) 评论(0) 推荐(0)
摘要:We are developing a app called Fusion. It's a strange app, as: it's a MFC app while internally MFC app is just its clothes and it makes use of C++/CLI and mainly C# assemblies to do the real job. Its ... 阅读全文
posted @ 2010-10-27 11:36 能巴 阅读(332) 评论(0) 推荐(0)
摘要:1. API他有三种API(这里不讨论API所处层次的问题):c++ API, COM API and .net wrapper API. COM API的存在是因为有些ACAD的东西比如classic menu等,只能用COM来访问。2. 版本a. 每个版本的Autocad对应一个arx版本。保持一定程度的向下兼容,比如AutoCAD2011可以支持用autocad2010 arx编写的app,... 阅读全文
posted @ 2010-09-28 22:57 能巴 阅读(1577) 评论(1) 推荐(0)
摘要:You can get Debugger Roadmap from MSDN to know everything about VS debugger.Exception Handling:There is a Exceptions dialog box in VS to configure how the debugger behaves with exceptions. In general,... 阅读全文
posted @ 2010-09-06 11:26 能巴 阅读(349) 评论(0) 推荐(0)
摘要:Gains:0. Dependency Management. By good dependency (dependency brings in coupling) management (interface-oriented, depend on abstraction, dependency injection, IOC, design pattern), we can restrict th... 阅读全文
posted @ 2010-09-03 18:16 能巴 阅读(210) 评论(0) 推荐(0)
摘要:软件开发中的三类东西组合在一起成为一个软件产品:应用程序框架(catalyst),众多类库(toolkit,ASM,OGS,AIRMAX),及两者基础上开发出的应用程序。 框架会为某一特定目的实现一个基本的、可执行的架构。框架中已经包含了应用程序从启动到运行的主要流程,流程中那些无法预先确定的步骤留给用户来实现。程序运行时,框架系统自动调用用户实现的功能组件。这时,框架系统的行为是主动的。使用普通... 阅读全文
posted @ 2010-09-03 11:21 能巴 阅读(223) 评论(0) 推荐(0)
摘要:Review Error Handling0. General Rules -We should pay more attention on assert usage and make it a part of the error/exception handling mechanism. -Attention: 异常是first-class的语言机制。代码分析工具可以识别出异常并进行各种监测或分... 阅读全文
posted @ 2010-08-20 12:19 能巴 阅读(194) 评论(0) 推荐(0)
摘要:。。。。。。。。。。。。 阅读全文
posted @ 2010-05-15 10:26 能巴 阅读(175) 评论(0) 推荐(0)
摘要:Today, I attended a unit test training held internally in Corp. Several gains:1. Applying Unit test is pretty simple! I never thought that the idea to do unit test and its implementation is just that ... 阅读全文
posted @ 2010-05-12 14:45 能巴 阅读(291) 评论(0) 推荐(0)