一、什么是 AOP。AOP(Aspect Orient Programming),也就是面向切面编程。能够这样理解,面向对象编程(OOP)是从静态角度考虑程序结构,面向切面编程(AOP)是从动态角度考虑程序执行过程。二、AOP 的作用。经常通过 AOP 来处理一些具有横切性质的系统性服务,如事物管理...
分类:
编程语言 时间:
2014-09-05 21:03:02
阅读次数:
317
Description
Problem B: Smeech
Professor Octastichs has invented a new programming language, Smeech. An expression in Smeech may be a positive or negative integer, or may be of the form
(pe1e2) wh...
分类:
其他好文 时间:
2014-09-05 18:14:51
阅读次数:
222
Cache是我们经常关心的话题,K6-Ⅲ的推出引出了一种全新的缓存结构即Tri-level Cache设计思想。那么对于微机系统而言,Cache到底有什么作用?它的工作原理又是如何的呢?
一、使用Cache的必要性
所谓Cache即高速缓冲存储器,它位于CPU与主存即DRAM(Dynamic RAM 动态存储器)之间,是通常由SRAM(Static
...
分类:
其他好文 时间:
2014-09-05 16:16:03
阅读次数:
365
代码往往会腐化。 随着一个又一个新特性的添加,处理一个有一个的错误,代码的结构逐渐退化。
如果对此置之不理的话, 这种退化最终会导致纠结不清,难于维护的混乱代码。
xp(极限编程 eXtreme Programming)团队通过经常性的代码重构来扭转这种退化。重构就是在不改变
代码行为的前提下,进行一系列小的修改,旨在改进系统结构。每个改造都是微不足道的,几乎不值得去做,
但是所有...
分类:
其他好文 时间:
2014-09-04 23:46:10
阅读次数:
484
原文:http://scotdoyle.com/python-epoll-howto.htmlAsynchronous Socket Programming Examples with epollPrograms usingepolloften perform actions in this seq...
分类:
编程语言 时间:
2014-09-04 20:45:30
阅读次数:
379
使用ReactiveCocoa实现iOS平台响应式编程ReactiveCocoa和响应式编程在说ReactiveCocoa之前,先要介绍一下FRP(Functional Reactive Programming,响应式编程),在维基百科中有这样一个样例介绍:在命令式编程环境中,a = b + c 表...
分类:
移动开发 时间:
2014-09-04 18:58:30
阅读次数:
505
Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other. Both the malloc() a...
分类:
其他好文 时间:
2014-09-04 16:42:59
阅读次数:
173
1. ConceptsThe idea behind dynamic programming is quite simple. In general, to solve a given problem, we need to solve different parts of the problem ...
分类:
其他好文 时间:
2014-09-04 01:23:47
阅读次数:
208
Visual Basic for Application(VBA) is an implementation of Microsoft’s event-driven programming language Visual Basic 6. Its associated integrated dev....
分类:
移动开发 时间:
2014-09-03 22:39:57
阅读次数:
263
Perl is a high-level , general-purpose,interpreted ,dynamic programming language . It was originally developed by Larry Wall in 1987 as a general-pur....
分类:
其他好文 时间:
2014-09-03 22:38:37
阅读次数:
324