享受代码,享受人生

SOA is an integration solution. SOA is message oriented first.
The Key character of SOA is loosely coupled. SOA is enriched
by creating composite apps.
posts - 98, comments - 2396, trackbacks - 162, articles - 45
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

08 2005 档案

posted @ 2005-08-20 23:34 idior 阅读(434) | 评论 (0) 编辑 |

posted @ 2005-08-19 15:49 idior 阅读(1519) | 评论 (4) 编辑 |

摘要: 在很多场合下, 你需要在主(UI)线程中运行一些比较耗时间的任务,比如以下的任务 l Image downloadsl Web service invocationsl File downloads and uploads (including for peer-to-peer applications)l Complex local computationsl Database transact...阅读全文

posted @ 2005-08-18 16:15 idior 阅读(6824) | 评论 (10) 编辑 |

摘要: 通过和吕震宇和wayfarer对Visitor模式的讨论,加深了对Visitor模式的理解. 整个学习过程如下, 希望对想了解Visitor模式的朋友有所帮助.同时感谢博客园提供的良好学习环境. 介绍 存在的问题 不可爱的Visitor 如何让Visitor变的可爱1 如何让Visitor变的可爱2 关于双重分派 Double-Dispatch and Visitor Pattern阅读全文

posted @ 2005-08-18 11:11 idior 阅读(8342) | 评论 (0) 编辑 |

posted @ 2005-08-17 11:48 idior 阅读(1978) | 评论 (10) 编辑 |

posted @ 2005-08-15 20:28 idior 阅读(3730) | 评论 (4) 编辑 |

摘要: 在谈具体实现前 先介绍一下三种事务:1. 单对象单资源2. 多对象单资源3. 多对象多资源(分布式事务, 使用两段提交协议)在ADO.Net1.0下有两种使用Transaction的方法. 一种是在需要事务的对象中显式的调用事务处理, 还有一种是使用Enterprise Service的声明式的方法.第一种方法的示例代码如下: publicvoidTransactionTest(){stringc...阅读全文

posted @ 2005-08-15 20:28 idior 阅读(11284) | 评论 (14) 编辑 |

posted @ 2005-08-14 11:27 idior 阅读(4405) | 评论 (10) 编辑 |

posted @ 2005-08-14 11:26 idior 阅读(2526) | 评论 (2) 编辑 |

posted @ 2005-08-14 11:25 idior 阅读(2386) | 评论 (2) 编辑 |

posted @ 2005-08-14 11:24 idior 阅读(3086) | 评论 (2) 编辑 |

摘要: TDD这个概念出现至少也有两年多了, 在大家刚接触它时候, 几乎没人不拍手鼓掌, 测试驱动的概念确实可以为我们带来很多的好处. 泡泡在前不久写了一篇很不错的TDD的文章, 可是我还是忍不住在他的评论中说到这篇文章有点”老”. 确实,同样的概念在书中, 在大家的口中已经被说烂了. 但是TDD真正给我们带来什么呢? 有多少人在用TDD呢? 为什么这么好的技术到了应用中就被人们&...阅读全文

posted @ 2005-08-09 10:15 idior 阅读(3661) | 评论 (5) 编辑 |

摘要: RhinoMock阅读全文

posted @ 2005-08-08 22:31 idior 阅读(6705) | 评论 (4) 编辑 |

摘要: 让我们从一个计算工资的老例子说起. 不同的员工有各种不同的工资计算方法, 这种情况下如何为全公司的员工计算呢? 想想现实中的情况, 在公司可能有一个会计部,每到发薪的日子. 会计部就会把全公司的员工资料集中到一起, 看看张三是什么类型的员工, 如果是小时工就按小时工来计算,如果是办公室主任就按主任的方法来计算. 基于这样的考虑, 我们在建模的时候也会相应的建立一个类似于会计部的类, 其中定义了一个...阅读全文

posted @ 2005-08-08 22:29 idior 阅读(2647) | 评论 (13) 编辑 |

摘要: Include Only the Primary Key Columns, last in winInclude All Columns in the WHERE ClauseInclude the Primary Key and Timestamp Columns(Recommended)4. Include the Primary Key Columns and Modified Column...阅读全文

posted @ 2005-08-06 14:57 idior 阅读(2405) | 评论 (3) 编辑 |

posted @ 2005-08-03 00:52 idior 阅读(1364) | 评论 (5) 编辑 |

摘要: Martin Fowler昨天发布了一篇有关Collection Closure的文章, 文中以Ruby为例展示了Collection Closure的强大,方便. 对照着他的例子, Demo了一下在C#中如何实现类似的功能.Example 1employees.each do |e| e.doSomething end31 employees.ForEach(delegate(Employee ...阅读全文

posted @ 2005-08-02 13:13 idior 阅读(2178) | 评论 (5) 编辑 |

posted @ 2005-08-01 15:46 idior 阅读(1625) | 评论 (6) 编辑 |