摘要: Programming has its own methodology.Layering is everywhere in real life,this why the pruchase and sale exist. Layering, Insert additional indirection通过分层layering/add indirection来体现 "有一个" 或 "用...来实现’ composition /composite 使某个类的对象成为另一个类的数据成员,从而实现将一个类构筑在另一个类之上,这一过程称为 "分层"(Laye 阅读全文
posted @ 2013-08-05 10:45 iDragon 阅读(254) 评论(0) 推荐(0)
摘要: What does the compiler behind our programming?Overloading in C++Override all of overloaded functions defined in base class.The following rules from Bjarne Stroustrup:Begin:Allowing overloading based on const was part of a general tightening up of the rules for const and a trend towards enforcing tho 阅读全文
posted @ 2013-08-02 09:11 iDragon 阅读(297) 评论(0) 推荐(0)
摘要: Programming language evolves always along with Compiler's evolvementOn the Cusp of the Object ModelTemplatesTemplate are now the foundation for generic programming ( the Standard Template Library).Template are used in memory allocation strategies, mutual exclusion mechanism for synchronizing thr 阅读全文
posted @ 2013-08-02 08:23 iDragon 阅读(178) 评论(0) 推荐(0)
摘要: Anything is programmable with defined syntax and common lib.Bash Shell is created to programme to Linux command in defined grammarLinux 中的bash shell 拥有自己的一些语法,通过语法我们可以对命令进行编程,也就是脚本编写。脚本就是用一些特定的语法把要执行的命令联合起来自动执行。参考:http://wenku.baidu.com/view/e034565bbe23482fb4da4ce8.html & http://www.cnblogs.com 阅读全文
posted @ 2013-08-01 16:15 iDragon 阅读(412) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-08-01 14:47 iDragon 阅读(183) 评论(0) 推荐(0)
摘要: Programming language evolves always along with Compiler's evolvementThe Semantics of FunctionC++ supports three flavors of member functions: static, nonstatic, and virtual. Each is invoked differently; those differences are the topic of the next section. (A short quiz: Although we cannot say wit 阅读全文
posted @ 2013-08-01 13:26 iDragon 阅读(279) 评论(0) 推荐(0)
摘要: Download the Android Package of Linux from Android Studio, android-studio-bundle-130.737825-linux.tgz for Linux platformCopy to /usr/locateUnpackage to intallAndroid-studio's startup script --- "studio.sh" 1 #!/bin/sh 2 # 3 # ------------------------------------------------------------ 阅读全文
posted @ 2013-07-31 17:39 iDragon 阅读(7679) 评论(0) 推荐(0)
摘要: Programming language evolves always along with Compiler's evolvement JVM as Additional IndirectionIntroduction to ObjectEverthing is an object. Think of an object as a fancy variable; it stores data, but you can “make requests” to that object, asking it to perform operations on itself. In theory 阅读全文
posted @ 2013-07-31 09:58 iDragon 阅读(292) 评论(0) 推荐(0)
摘要: Programming language evolves always along with Compiler's evolvementThe Semantics of DataThe size of an empty base class or an empty derived class inherited from an empty base class is not 0. For some reason: virtual pointer to virtual function table, or virtual pointer to virtual base class, or 阅读全文
posted @ 2013-07-31 08:57 iDragon 阅读(263) 评论(0) 推荐(0)
摘要: Linux 中的 md5利用 md5 消息摘要算法可以获取任何一件事物的唯一 ID利用 md5 消息摘要算法可以判断任何一个事物是否被改变过一致性验证:MD5的典型应用是对一段信息(Message)产生信息摘要(Message-Digest),以防止被篡改。比如,在UNⅨ下有很多软件在下载的时候都有一个文件名相同,文件扩展名为.md5的文件,在这个文件中通常只有一行文本,大致结构如:MD5 (tanajiya.tar.gz) = 0ca175b9c0f726a831d895e269332461这就是tanajiya.tar.gz文件的数字签名。MD5将整个文件当作一个大文本信息,通过其不可逆的 阅读全文
posted @ 2013-07-30 18:18 iDragon 阅读(1389) 评论(0) 推荐(0)