<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" media="screen"?>
<rss version="2.0">
  <channel>
    <title>本杰.NET - DesignPattern</title>
    <link>http://www.beingnet.com/showforum-15.aspx</link>
    <description>Latest 20 threads</description>
    <copyright>Copyright (c) 本杰.NET</copyright>
    <generator>Discuz!NT</generator>
    <pubDate>Tue, 07 Feb 2012 03:02:10 GMT</pubDate>
    <ttl>60</ttl>
    <item>
      <title>再看OA项目第三天笔记</title>
    <description><![CDATA[NetTier        

        可以直接使用
        如果已经现成的架构,反向根据codesmith来生成我们自己的代码

流行的数据访问层框架
        Data Access Application Block
        entlib 4.1
        SubSonic
        Nhibernate
        Typ]]></description>
      <link>http://www.beingnet.com/showtopic-1710.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Sat, 04 Sep 2010 22:56:00 GMT</pubDate>
    </item>
    <item>
      <title>[VIP学员]N层架构,手写代码,工具,开发效率,ADO.NET,ORM,设计模式</title>
    <description><![CDATA[交谈中请勿轻信汇款、中奖信息，勿轻易拨打陌生电话。

 ‘如既往。 2010/7/26 19:17:55
张老师，商城的视频得等到全部录制完才向外发吗？？
还差多长时间了
张波老师  19:29:38
你好,是的.现在已经84讲了.高级阶段已经讲了一周了.后面就要结束了,我会抓紧的.
‘如既往。  19:31:30
呵呵，快看完blog了
这两天在单位试着自己做个完整的东西]]></description>
      <link>http://www.beingnet.com/showtopic-1659.aspx</link>
      <author>张波老师</author>
      <pubDate>Mon, 26 Jul 2010 21:16:00 GMT</pubDate>
    </item>
    <item>
      <title>[群聊纪录]先学设计模式,还是先做项目?重构?</title>
    <description><![CDATA[╮呆  子(642798342) 20:24:28 
老师，是先学设计模式，了解了一些设计模式再去做项目好呢！还是有其他的方法去做项目好，现在总感觉自己做的东西，功能能实现，就是觉得很杂!
回复
张波老师&amp;lt;zhangbo99@gmail.com&amp;gt; 20:25:11 
跨平台性,这个肯定是Java更好.C#没有可比性,因为微软一直不实现
回复
╮呆  子(642798342)]]></description>
      <link>http://www.beingnet.com/showtopic-1657.aspx</link>
      <author>张波老师</author>
      <pubDate>Mon, 26 Jul 2010 20:50:00 GMT</pubDate>
    </item>
    <item>
      <title>可以不断重构，真是幸甚</title>
    <description><![CDATA[只要我们的代码没有达到 DP 的高度（这种高度，不是一天两天就能达到的，必须对前辈保持高山仰止的谦虚态度），就总是有机会重构！

下面的代码演示了，哪怕是小小的一个测试方法，也是可以重构的（抄书得到的心得）。    public void testReport() {
       final Date date = new Date();
       CourseReport repo]]></description>
      <link>http://www.beingnet.com/showtopic-772.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Tue, 04 May 2010 18:31:00 GMT</pubDate>
    </item>
    <item>
      <title>设计模式是最高境界，但在迈向最高境界的时候，需要克服唐僧般的困难</title>
    <description><![CDATA[在复习和回顾老师讲的设计模式，包括其他各种课程中展示出来的各项技术的时候，留下最深印象的，就是 重构。 

人不是神，往往有些代码，在第一次写的时候，不知道是否可以 复用 ——有没有重用价值，往往是等到第二次出现相同代码到时候才知道的。。所以，每次只要出现冗余的地方，就发现老师动用 重构 的思维方式。这使得代码被维护得越来越 优雅 。

优雅的代码是一种追求，其实设计模式本身也是。那几位老]]></description>
      <link>http://www.beingnet.com/showtopic-736.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Mon, 26 Apr 2010 18:39:00 GMT</pubDate>
    </item>
    <item>
      <title>本板块荐书一本不够，再荐一本</title>
    <description><![CDATA[重构与模式(荣获第15届生产效率大奖、帮你打通重构与模式任督二脉 )     

http://www.china-pub.com/32561

本书开创性地深入揭示了重构与模式这两种软件开发关键技术之间的联系，说明了通过重构实现模式改善既有的设计，往往优于在新的设计早期使用模式。本书不仅展示了一种应用模式和重构的创新方法，而且有助于读者结合实战深入理解重构和模式。书中讲述了27种重构方式]]></description>
      <link>http://www.beingnet.com/showtopic-728.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Mon, 26 Apr 2010 12:11:00 GMT</pubDate>
    </item>
    <item>
      <title>在本版块推荐的书当然是当仁不让的板块的标题</title>
    <description><![CDATA[这本书的副标题是：可复用面向对象软件的基础

http://www.china-pub.com/25961

本书结合设计实例从面向对象的设计中精选出23个设计模式，总结了面向对象设计中最有价值的经验，并且用简洁可复用的形式表达出来。本书分类描述了一组设计良好、表达清楚的软件设计模式，这些模式在实用环境下特别有用。本书适合大学计算机专业的学生、研究生及相关人员参考。

书评

“这]]></description>
      <link>http://www.beingnet.com/showtopic-726.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Mon, 26 Apr 2010 12:01:00 GMT</pubDate>
    </item>
    <item>
      <title>Observe模式的依赖关系</title>
    <description><![CDATA[如图所示，左边在 选择颜色，右下角有两个‘Listener’。。

左边的这个 选择器 并没有依赖两个具体的实现中的任何一个！而是依赖（两个具体实现者的） 抽象！

184]]></description>
      <link>http://www.beingnet.com/showtopic-682.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Mon, 19 Apr 2010 18:35:00 GMT</pubDate>
    </item>
    <item>
      <title>Event和Delegate，简化版的观察者模式</title>
    <description><![CDATA[之所以说简化，是因为 观察者模式，在 事件源 和 观察者之间是通过 接口 进行关联的。事件源维护了一个List&amp;lt;实现某接口的观察者&amp;gt;，当事件激发时，就遍历这个List，挨个调用 实现某接口的观察者 身上实现了接口的那个方法。。using System;
using System.Collections.Generic;
using System.Linq;
using Syste]]></description>
      <link>http://www.beingnet.com/showtopic-679.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Mon, 19 Apr 2010 16:47:00 GMT</pubDate>
    </item>
    <item>
      <title>单例模式一定需要创建一个private static实例吗？为什么不创建这个实例，方法也可以被调用？</title>
    <description><![CDATA[如果随便创建这个类的实例,就不叫单例模式了.
为了阻止用户随便创建新的实例,才会有单例模式,
为了实现单例模式,从代码的角度上,才会使用private static 类的实例,只让这个类自己能访问,并对外公开唯一实例.]]></description>
      <link>http://www.beingnet.com/showtopic-665.aspx</link>
      <author>张波老师</author>
      <pubDate>Fri, 16 Apr 2010 20:02:00 GMT</pubDate>
    </item>
    <item>
      <title>学习大师级的源代码</title>
    <description><![CDATA[在看NUnit的源码时，看到一个方法的起名，引起了兴趣，RunBare()。。
英语不好很是痛苦，查了字典发现Bare在这里最接近的意思是，光秃秃的，空空的，最简化的。。

这是个什么意思？什么逻辑呢？（英语好实在是天大的重要，可以帮助理解太多东西）

经过不断的苦思冥想，好像终于有点想明白。。第一个映入脑海的，是我们小学时代语文课本上做的练习——缩句。。可见，学好数理化，走遍天下都不怕]]></description>
      <link>http://www.beingnet.com/showtopic-634.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Wed, 14 Apr 2010 22:33:00 GMT</pubDate>
    </item>
    <item>
      <title>再模仿命令模式，要求要高一点了</title>
    <description><![CDATA[这次写的代码，纯粹是手工在Notepad++中写的，代码规范是按照C#，但没有经过编译。

第一个类，应该先写不依赖别人的 Reciever类public class 厨师
{
        //我是厨师，就是命令模式中的Reciever，专门负责 行为——做菜
        public void Cook(String aKindOfMeal)
        {       ]]></description>
      <link>http://www.beingnet.com/showtopic-624.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Tue, 13 Apr 2010 22:36:00 GMT</pubDate>
    </item>
    <item>
      <title>模板方法，体现的是1+1&amp;gt;2</title>
    <description><![CDATA[模板是我们日常编码过程中经常会遇到的。。

随便到网上找一段C#代码。。stringstr1 =string.Format(&amp;quot;{0:N1}&amp;quot;,56789);                //result: 56,789.0
stringstr2 =string.Format(&amp;quot;{0:N2}&amp;quot;,56789);                //resu]]></description>
      <link>http://www.beingnet.com/showtopic-592.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Sun, 11 Apr 2010 11:32:00 GMT</pubDate>
    </item>
    <item>
      <title>DP是武学的最高境界</title>
    <description><![CDATA[DP的学习，其实是贯穿于 编码工作 职业生涯的始终的。这一点也容易理解。。想当年，写出这23种设计模式的BIG4每个都在这个行业浸淫了多年，又是绝对的专家。我们作为后来者，只能站在巨人的肩膀上，不断揣摩不断比划，才有可能 真正入门 。任何急功近利的想法，都是不切合实际的。就像习武之人，绝无可能上来就拿一本 乾坤大挪移 来比划第9重境界。。张无忌也是有了九阳神功的底子，才有可能习得。

有段代码]]></description>
      <link>http://www.beingnet.com/showtopic-591.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Sun, 11 Apr 2010 10:51:00 GMT</pubDate>
    </item>
    <item>
      <title>策略模式中Context的一点疑问</title>
    <description><![CDATA[近两天在看策略模式，其中有一个Context（上下文）类，感觉这个类可有可无。

不使用Context（上下文）类：using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        ]]></description>
      <link>http://www.beingnet.com/showtopic-407.aspx</link>
      <author>sahalasahara</author>
      <pubDate>Sat, 13 Mar 2010 21:43:00 GMT</pubDate>
    </item>
    <item>
      <title>asp.net 三层架构缓存问题</title>
    <description><![CDATA[缓存放在哪一层比较好？当数据缓存了的话怎么在更新之后读取出来是最新的?今天我试了下
GetModel(id)缓存了下,修改数据时数据库已经发生改变了,但是再次修改时发现数据还是之前的,这样的情况怎么样处理?麻烦给出详细......]]></description>
      <link>http://www.beingnet.com/showtopic-401.aspx</link>
      <author>张波老师</author>
      <pubDate>Sat, 13 Mar 2010 20:29:00 GMT</pubDate>
    </item>
    <item>
      <title>單例模式引發的一些思考</title>
    <description><![CDATA[設計模式中，有些模式是容易理解，但使用起來不知道何時何地應該使用；而有些模式卻知道什么時候該用，卻又不太好理解。

代理模式，體現了前者。因為在軟件世界，很多很多東西都是事關代理。。我們使用PC+Win系統進行編程，Win這種OS就是一種代理，隔離了硬件的復雜性。對應程序員而言，不必精通硬件（驅動開發除外）

觀察者模式，體現了后者。有很多時候，我們需要使用這種方式，而不是使用 輪詢 方式]]></description>
      <link>http://www.beingnet.com/showtopic-347.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Wed, 03 Mar 2010 10:43:00 GMT</pubDate>
    </item>
    <item>
      <title>Composite模式中的递归调用</title>
    <description><![CDATA[/**
         * Counts the number of test cases that will be run by this test.
         */        public int countTestCases() {
                int count= 0;
                for (Enumeration e= tes]]></description>
      <link>http://www.beingnet.com/showtopic-323.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Sun, 21 Feb 2010 14:39:00 GMT</pubDate>
    </item>
    <item>
      <title>.net 工厂模式 Model层的作用？</title>
    <description><![CDATA[DBUtility(sqlhelper)
Model
DAL
IDAL
DALFactory
BLL
如果我想从数据库中获取一个DataSet的话，是将数据先转换成model类型然后转换成DataSet
private int _id;
        private string _name;
        private string _sex;
        /// ]]></description>
      <link>http://www.beingnet.com/showtopic-264.aspx</link>
      <author>张波老师</author>
      <pubDate>Wed, 27 Jan 2010 00:45:00 GMT</pubDate>
    </item>
    <item>
      <title>代理模式12，二话不说，上代码</title>
    <description><![CDATA[using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Proxy20100108
{
    class Program
    {
        static void Main(string args)
        {
    ]]></description>
      <link>http://www.beingnet.com/showtopic-185.aspx</link>
      <author>shenyoujia</author>
      <pubDate>Fri, 08 Jan 2010 11:52:00 GMT</pubDate>
    </item>
  </channel>
</rss>
