- 博客(15)
- 资源 (7)
- 收藏
- 关注
翻译 设计模式之 Designing for Change 变更设计
The key to maximizing reuse lies in anticipating new requirements and changes to existing requirements, and in designing your systems so that they can evolve accordingly.变更设计的关键是在预测新的要求和变更已存在的要求时最大限
2013-08-31 11:08:38 1198
翻译 设计模式之Relating Run-Time and Compile-TimeStructures
Relating Run-Time and Compile-TimeStructures 有关运行时和编译时的结构An object-oriented program's run-time structure often bears little resemblance to its code structure. The code structure is frozen at compile
2013-08-27 10:25:14 1568
原创 《《内存和性能优化》》给我带来的!
《《内存和性能优化》》这本书教会了我很多!有很多的东西自己知道,但是确实想用语言表达出来很难,下面就简单的发表我的一部分关于这本书的新的吧!我学会了在进行系统设计时要注意的问题(1)如何做需求分析(2)如何来检测算法的稳定性(3)如何优化自己的程序(4)如何在编写程序时写出高质量的代码(5)在程序调试的过程中如何定位错误这些方法的作用主要是用来进行性能和内存的优化最后也
2013-08-22 09:06:34 3962
翻译 设计模式之Inheritance versus Parameterized Types 继承和参数化类型
Another (not strictly object-oriented)technique for reusing functionality is through parameterized types, also known asgenerics (Ada, Eiffel) and templates (C++). This technique lets you define atyp
2013-08-17 17:34:47 1215
原创 虚拟机启动出错
启动vmware时出现以下错误:Cannot open the disk 'D:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on.原因: 出现这种情况一般是由于上次在关机的出现了异常,比方说非正常关机,强关机等情况,从而导致产生了一些lck为后辍名的文件,那么解决方法就是删除这些lck文件即可。解
2013-08-17 09:03:50 1025
翻译 设计模式之 Delegation 授权
Delegation is a way of making composition as powerful for reuse as inheritance[Lie86, JZ91]. In delegation, two objects are involved in handling a request: a receiving object delegates operations to
2013-08-16 18:00:42 1685
翻译 设计模式之 Putting Reuse Mechanisms to Work and Inheritance versus Composition
Most people can understand concepts like objects, interfaces, classes, and inheritance. The challenge lies in applyingthem to build flexible, reusable software, and design patterns can show you how.
2013-08-15 20:14:47 1256
翻译 设计模式之Programming to an Interface, not anImplementation 程序指向接口,而不是实现
Class inheritance is basically just a mechanism for extending an application's functionality by reusing functionality in parent classes. It lets you define a new kind of object rapidly in terms of a
2013-08-15 16:08:57 1696
翻译 Class versus Interface Inheritance 类接口继承
Class versus Interface Inheritance 类接口继承It's important to understand the difference between an object's class and its type.理解对象类和它的类型的不同这是非常重要的An object's class defines how the object is impleme
2013-08-10 15:03:00 1234
原创 排序方法之标准库中的快排 qsort ()函数
C标准库qsort()函数的用法(快排) 使用快速排序例程进行排序头文件:stdlib.h用 法: void qsort(void *base, int nelem, int width, int (*fcmp)(const void*,const void *));参数: 1 待排序数组首地址2 数组中待排序元素数量3 各元素的占用空间大小4 指向函数的指针,用于
2013-08-09 19:59:38 1540
原创 排序方法之堆排序
堆排序的实现(—)创建初始堆(二)堆排序在创建初始堆之前首先要了解一些关于堆的概念,还需要了解一些关于平衡二叉树的内容 (1)堆的节点数 =n/2; 并且是只舍不入; (2)最后一个堆结点=(n/2)-1; (3)对于任意结点a[x],可以找到它子结点上的内容a[2x+1]和a[2x+2](——)创建一个堆实现原理:它考察堆的各个结点并且使之成为一个堆。这
2013-08-09 16:49:26 1800
翻译 Specifying Object Implementations 指定对象的实现
So far we've said little about how we actually define an object. An object's implementation is defined by its class. The class specifies the object's internal data and representation and defines the
2013-08-08 21:31:17 1037
翻译 Determining Object Granularity 决定对象的粒度
Objects can vary tremendously in size and number. They canrepresent everything down to the hardware or all the way up toentire applications. How do we decide what should be an object?就尺寸和数字而言,对象是极其
2013-08-07 19:56:46 1264
翻译 How Design Patterns Solve Design Problems 设计模式如何解决设计问题
HowDesign Patterns Solve Design Problems设计模式如何解决设计问题Design patterns solve many of theday-to-day problems object-oriented designers face, and in many different ways. Here areseveral of these proble
2013-08-05 12:10:09 1151
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人