小寒的blog
Programming is a darned hard thing—but I am going to like it.
01 2008 档案
用xlst将xml转换html
摘要:xml文件 诸葛亮姓什么? 诸 诸葛 诸葛亮 亮 2 三国是指那三国? 魏国 吴国 辽国 蜀国 ... 阅读全文
posted @ 2008-01-29 20:03 xhan 阅读(3275) 评论(1) 推荐(1)
随机数生成
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.Collections.Generic; using System.Text; namespace Exam.BLL { /**/... 阅读全文
posted @ 2008-01-28 12:38 xhan 阅读(415) 评论(0) 推荐(0)
用例分析
摘要:从用例到代码, 第一部分: 用例分析 级别: 初级 Gary Evans, Independent Obje... 阅读全文
posted @ 2008-01-20 16:58 xhan 阅读(1780) 评论(0) 推荐(0)
4 、服务层
摘要:Service Layer by Randy Stafford Defines an application's boundary with a layer of services that establishes a set of available operations and coordinates the application's response in each operation. ... 阅读全文
posted @ 2008-01-17 12:59 xhan 阅读(347) 评论(0) 推荐(0)
3、表模块
摘要:Table Module A single instance that handles the business logic for all rows in a database table or view. For a full description see P of EAA page 125 One of the key messages of object orientation... 阅读全文
posted @ 2008-01-16 22:24 xhan 阅读(345) 评论(0) 推荐(0)
2、领域模型
摘要:Domain Model An object model of the domain that incorporates both behavior and data. For a full description see P of EAA page 116 At its worst business logic can be very complex. Rules and logic ... 阅读全文
posted @ 2008-01-16 20:06 xhan 阅读(423) 评论(0) 推荐(0)
并发术语解释
摘要:更新丢失(Lost updates):例如:A程序员打开一个类文件,在A保存文件之前,B也打开了这个文件。A修改了代码文件的一个method1()方法,B修改了代码文件的method2()方法。然后B在A之前保存了文件。这样当A保存文件时候就会把B对method2()方法的修改该覆盖掉造成了B对文件更新的丢失! 不一直读(inconsistant read):发生在读取两个各自正确的数据,而他们却... 阅读全文
posted @ 2008-01-15 20:28 xhan 阅读(277) 评论(0) 推荐(0)
性能术语解释
摘要:响应时间:系统完成一次外部请求处理要用的时间。外部请求可能是用户交互行为,如:点击一个button,或者是服务器API的调用。 响应性:不同于请求处理,它是系统响应请求的速度有多块.这个指标在许多系统里非常的重要,因为对于一些系统而言,如果响应性太慢,用户将难以忍受。尽管其响应时间可能不慢。如果在请求处理期间,系统一直处于等待状态,则系统的响应性和响应时间是相同的。然而,如果能够在处理真正完成之前... 阅读全文
posted @ 2008-01-15 13:01 xhan 阅读(278) 评论(0) 推荐(0)
1、Transaction Script(事务脚本)
摘要:领域逻辑模式(Domain Logic Patterns) 1、Transaction Script(事务脚本) Organizes business logic by procedures where each procedure handles a single request from the presentation. For a full description see P of EAA... 阅读全文
posted @ 2008-01-15 11:39 xhan 阅读(875) 评论(0) 推荐(0)
File.ReadAllText方法,File.WriteAllText方法修改文件内容
摘要:File.ReadAllText (String) 打开一个文本文件,读取文件的所有行,然后关闭该文件。 File.ReadAllText (String, Encoding) ... 阅读全文
posted @ 2008-01-04 10:10 xhan 阅读(1770) 评论(0) 推荐(0)
异步编程概述<转>
摘要:NET Framework 允许您异步调用任何方法。定义与您需要调用的方法具有相同签名的委托;公共语言运行库将自动为该委托定义具有适当签名的 BeginInvoke 和 EndInvoke 方法。 BeginInvoke 方法用于启动异步调用。它与您需要异步执行的方法具有相同的参数,只不过还有两个额外的参数(将在稍后描述)。BeginInvoke 立即返回,不等待异步调用完成。BeginInvok... 阅读全文
posted @ 2008-01-04 09:44 xhan 阅读(319) 评论(0) 推荐(0)
Microsoft .NET Pet Shop 3.x: .NET Pet Shop 的设计模式与体系结构
摘要:http://www.microsoft.com/china/MSDN/library/enterprisedevelopment/builddistapp/Microsoft.NETPetShop3.0.mspx?mfr=true 阅读全文
posted @ 2008-01-02 15:58 xhan 阅读(220) 评论(0) 推荐(0)
ASP.NET2.0 SQL Server2005构建多层应用<转>
摘要:随着.NET 2.0的发布,将会使得使用ASP.NET 2.0来构建的Web应用越来越容易。使用ASP.NET 2.0和SQL Server 2005,将会比ASP.NET 1.1更方便地构建多层体系架构的web应用。本文,将使用ASP.NET 2.0和SQL Server 2005 (.net使用Visual Studio 2005 beta 2,SQL Server 2005使用april c... 阅读全文
posted @ 2008-01-02 10:23 xhan 阅读(290) 评论(0) 推荐(0)