- 博客(23)
- 收藏
- 关注
转载 好书籍 记录
Linux经典书籍推荐入门篇 《LINUX权威指南》书不错,写的很全面也比较广,涉及的不深,做为入门书籍不错,可以比较全面的了解linux 。另外比较热门的也可以看看《鸟哥的私房菜》等书,偏管理类的书。如果想做server方向的可以找来看看。驱动 篇 《LINUX设备驱动程序 》就是网上说的“LDD”,经典之作,必备书籍。国产经典《Linux驱动详细解》
2012-06-16 20:03:17
657
原创 依赖倒置原则
依赖倒置原则 的核心是接口编程。1.底层模块尽量都要有抽象类或接口,或者两者都要。2.变量声明尽量是接口,抽象类。3.使用继承时,遵循里氏替换原则。
2012-03-12 15:31:44
258
原创 Design Pattern Responsibility--One Task
Definition:One Class has one responsibilityBest Implement:/** * */package com.sean.designpattern.responsibility.onetask;/** * @author Sean_Zhang * */public interface Breathe { p
2012-03-07 10:31:41
394
原创 Design Pattern--Composite
/** * */package com.sean.composite;/** * @author Sean_Zhang * */public interface Graphic { public void print();}/** * */package com.sean.composite;/** * @author Sea
2012-03-02 15:52:59
268
原创 Pattern Design--Bridge
/** * */package com.sean.bridge;import java.util.List;/** * @author Sean_Zhang * */public interface Question { public String nextQuestion(); public String priorQuestion();
2012-03-02 15:51:29
346
原创 Design Pattern--Adapter
1.Simple Adapter/** * */package com.sean.adapter.simple;import java.awt.event.WindowEvent;import java.util.EventListener;/** * @author Sean_Zhang * */public interface WindowLis
2012-02-29 17:19:08
312
原创 Instrument-Demo
package com.sean.source;public class TransClass { public int getNumber() { return 1; }}import com.sean.source.TransClass;/** * *//** * @author Sean_Zhang * */public cla
2012-02-28 18:29:40
362
原创 Design Pattern--Builder
/** * */package com.sean.builder;/** * @author Sean_Zhang * */public class Car { private String brand; private String tyreBrand; public String getBrand() { return brand;
2012-02-28 18:27:01
276
原创 Design Pattern-Prototype
public class Person1 { public Person1(String name) { this.name = name; } private String name; public String getName() { return name; } public void setName(String name) { this.n
2012-02-28 18:25:34
235
原创 Factory(Abstract Factory)
/** * */package com.sean.factory.abst;import com.sean.factory.Sex;/** * @author Sean_Zhang * */public class PersonAbstractFactory { public static IPerson getPerson(Sex sex,boolean
2012-02-24 13:44:54
261
原创 Factory(Factory Method)
/** * */package com.sean.factory.method;import com.sean.factory.Sex;/** * @author Sean_Zhang * */public interface IPerson { public String getName(); public Sex getSex();}
2012-02-24 13:39:31
386
原创 Factory(Simple Factory)
Simple Factory:package com.sean.factory.simple;public interface IPerson { public String getName();} /** * */package com.sean.factory.simple;import com.sean.factory.Names;/**
2012-02-24 13:36:30
271
原创 收藏的链接
1. http://topic.youkuaiyun.com/u/20091222/22/928fdbe3-abd7-493b-92a9-7d17550ad80a.html 2.http://www.iteye.com/news/24342
2012-02-22 13:39:45
226
原创 SingleTon Design Pattern
Singleton Pattern:There is only one instance in java application.Advantage:1.Reduce memory2.Easy to do rubbish back.The best way to implement it by enum.There are serveral functions to implement
2012-02-22 13:36:21
307
原创 Prototype Design Pattern
<br />public abstract class AbstractFurniture implements Cloneable {<br /> public abstract String draw();<br /> <br /> protected Object clone() throws CloneNotSupportedException{<br /> return super.clone();<br /> }<br />}<br
2011-01-12 23:23:00
304
原创 最伟大十大算法
<br />http://blog.youkuaiyun.com/v_JULY_v/archive/2011/01/10/6127953.aspx
2011-01-12 23:22:00
345
原创 Abstract Factory
<br />public abstract class AbsConcertFactory {<br /> public abstract IMusic createMusic();<br /> <br /> public abstract IMusicBox createMusicBox();<br />}<br /> <br /> <br /> <br />public class LatinConcertFactory extends AbsConcertFactor
2011-01-12 00:27:00
235
原创 Factory Method
<br />方法工厂,抽象工厂 区别在于,方法工厂对应一个产品,抽象工厂对应一系列产品。<br />方法工厂Demo:<br /> public class PianoMusicFactory extends MusicFactory {<br /> public IMusicBox createMusicBox() {<br /> return new PianoBox();<br /> }<br /> }<br /> <br /> pu
2011-01-12 00:11:00
206
原创 Simple Factory(Static Factory) Design Pattern
<br /> Simple Factory设计模式,隐藏实现细节,客户只需知道怎么用就OK,不用知道实现细节。<br /> Demo:<br /> 有发钢琴音的音乐盒,发小提琴音的音乐盒。<br /> 音乐盒:<br /> public interface IMusicBox {<br /> String play();<br /> }<br /> 钢琴音的音乐盒:<br /> public class PianoBox im
2011-01-11 00:16:00
249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人