2012年12月13日
摘要: 关于C++异常的争论 http://www.codeproject.com/Articles/38449/C-Exceptions-Pros-and-Cons 阅读全文
posted @ 2012-12-13 10:00 #hanhui 阅读(158) 评论(0) 推荐(0)
摘要: 介绍HTTP Live Streaming的标准课程 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Int... 阅读全文
posted @ 2012-12-13 09:59 #hanhui 阅读(148) 评论(0) 推荐(0)
摘要: chain of responsibility When one object does not know which specific object will handle its request, the chain of responsibility can be used to for... 阅读全文
posted @ 2012-12-13 09:57 #hanhui 阅读(129) 评论(0) 推荐(0)
摘要: Factory method is virtual method to create local-specific object in the class hierarchy. The base class may or not implement it. If a parameter is ... 阅读全文
posted @ 2012-12-13 09:54 #hanhui 阅读(78) 评论(0) 推荐(0)
摘要: The decorator has same interfaces to component to which it enhances functions or appearance. It is also called wrapper. With this pattern, client do... 阅读全文
posted @ 2012-12-13 09:53 #hanhui 阅读(83) 评论(0) 推荐(0)
摘要: Bridge pathern is used to decouple abstraction and implementation so that both can involve independently. This makes it easy to modify, extend and r... 阅读全文
posted @ 2012-12-13 09:49 #hanhui 阅读(96) 评论(0) 推荐(0)
摘要: 《数学之美》 看过多一半,然后放在家里让夫人看其中作者介绍其导师那一章 《软件管理沉思录》 电子版 《Design Patterns: Elements of Reusable Object-Oriented Software》,看了其中约15种模式 阅读全文
posted @ 2012-12-13 09:43 #hanhui 阅读(109) 评论(0) 推荐(0)
摘要: 之前有个小项目,具体需求是: 完成一个客户端,按照某一速度向服务器发送Radius请求,并处理服务器返回的响应. 实现方案: 采用多线程方式实现,每个线程负责发送请求,并等待服务器返回的响应. 测试发现,发送速度达到某个值时就无法增加了,日志显示内存不够,无法创建更多线程. 进而发现可以创建不... 阅读全文
posted @ 2012-12-13 09:30 #hanhui 阅读(291) 评论(0) 推荐(0)
  2012年1月8日
摘要: 软件和硬件工程师不得不处理字节及比特序问题,这个过程就像走迷宫。尽管最终我们能够走出来,但我们往往筋疲力尽。本文尝试对字节和比特序发挥影响力的领域,包括CPU,总线,设备及网络协议进行总结。我们深入细节期望对这个主题给出清晰的说明。同时,本文尽力从实际应用的角度给出指导和规则。 字节序:大小端问... 阅读全文
posted @ 2012-01-08 21:35 #hanhui 阅读(528) 评论(0) 推荐(0)
  2012年1月2日
摘要: 这些天一直很忙,昨天在BBS上看到ISO C语言新标准[1]公布了,支持多线程! 新特性[2]有些和C++11是对应的,如线程和UTF-8: 对齐处理(Alignment)的标准化(包括_Alignas标志符,alignof运算符, aligned_alloc函数以及头文件。_Noretu... 阅读全文
posted @ 2012-01-02 16:53 #hanhui 阅读(332) 评论(0) 推荐(0)