摘要: Anything can be programmable with defined syntax and common lib. 1 ALTER PROCEDURE [dbo].[sp_GetLaborHourPerDayEmployee](@au_Date DATETIME, @au_employeeID VARCHAR(30)) 2 -- Add the parameters for the stored procedure here 3 AS 4 BEGIN 5 -- SET NOCOUNT ON added to prevent extra result sets fr... 阅读全文
posted @ 2013-08-07 16:28 iDragon 阅读(388) 评论(0) 推荐(0)
摘要: Framework knows how to do and leave what to do to user with interface programming and dynamic configuration.What is Struts?Struts is a kind of MVC framework for developing web application, which has finished the flow of controller,knowing how to do when request come in,at same time left the what to 阅读全文
posted @ 2013-08-07 14:18 iDragon 阅读(848) 评论(0) 推荐(0)
摘要: Interface from user, not from implementor.(DIP)Interface-Oriented Programming.Interface or Abstract function or Abstract classJava专门提供了一种机制,名为“抽象方法”(same as abstraction)。它属于一种不完整的方法,只含有一个声明declaration,没有方法主体 body of definition。下面是抽象方法声明时采用的语法:abstract void X();包含了抽象方法的一个类叫作“抽象类”abstract class with o 阅读全文
posted @ 2013-08-06 19:53 iDragon 阅读(237) 评论(0) 推荐(0)
摘要: OS puts emphases on how to provide interfaces to user's APPs for using hardware device in the convenient and efficient way.Everything has its own logic of running and must be done step by step,no shortcut. Take a look at Android OS FrameworkNow, how to make the above OS run and every component o 阅读全文
posted @ 2013-08-06 15:46 iDragon 阅读(894) 评论(0) 推荐(0)
摘要: JVM & BytecodeHas-a or Is-a relationship(inheritance or composition)如果想利用新类内部一个现有类的特性,而不想使用它的接口,通常应选择合成。也就是说,我们可嵌入一个对象,使自己能用它实现新类的特性。但新类的用户会看到我们已定义的接口,而不是来自嵌入对象的接口。考虑到这种效果,我们需在新类里嵌入现有类的private对象。有些时候,我们想让类用户直接访问新类的合成。也就是说,需要将成员对象的属性变为public。成员对象会将自身隐藏起来,所以这是一种安全的做法。如选择继承,就需要取得一个现成的类,并制作它的一个特殊版本。 阅读全文
posted @ 2013-08-06 09:00 iDragon 阅读(199) 评论(0) 推荐(0)
摘要: Make changes on existing code for subsequent and constant changes of requirement. Reference:http://www.refactoring.com/catalog/index.htmlWays of RefactoringsAdd ParameterChange Bidirectional Association to UnidirectionalChange Reference to ValueChange Unidirectional Association to BidirectionalChang 阅读全文
posted @ 2013-08-06 08:32 iDragon 阅读(226) 评论(0) 推荐(0)
摘要: SQL1. SELECT id, name, FROM Products; //Retrieving Multiple or Individual Columns from the specific DB-table2. SELECT * FROM Products; //Retrieving All Columns (* stand for / means all columns)3. SELECT id, name, price FROM Products order by price, name; //Sorting By Multiple Columns name//Order by 阅读全文
posted @ 2013-08-05 17:34 iDragon 阅读(419) 评论(0) 推荐(0)
摘要: JVM & BytecodeAbstract & ObjectObject in Java(1) 所有东西都是对象object。可将对象想象成一种新型变量;它保存着数据,但可要求它对自身进行操作self-operation(this pointer is always as parameter pssing to function called on object)。理论上讲,可从要解决的问题身上提出所有概念性的组件,然后在程序中将其表达为一个对象。(2) 程序是一大堆对象的组合combination;通过消息传递,各对象知道自己该做些什么。为了向对象发出请求,需向那个对象“发 阅读全文
posted @ 2013-08-05 11:38 iDragon 阅读(233) 评论(0) 推荐(0)
摘要: Reference to: http://agilemanifesto.org/iso/en/Individuals and interactions over processes and toolsWorking software over comprehensive documentationCustomer collaboration over contract negotiationResponding to change over following a planTwelve Principles of Agile Software We follow these principle 阅读全文
posted @ 2013-08-05 11:32 iDragon 阅读(205) 评论(0) 推荐(0)
摘要: JVMAnalysis & DesignThe object-oriented paradigm is a new and different way of thingking about programming.Most of the analysis and design methodologies are intended to sovle the largest of problems. Remember that most projects don’t fit intot hat category, so you can usually have successful ana 阅读全文
posted @ 2013-08-05 11:05 iDragon 阅读(179) 评论(0) 推荐(0)