社区积分系统的设计模式

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    社区积分系统的设计模式 - Presentation Transcript

    1. 社区积分系统的设计模式
      Tony Deng
      http://friendfeed.com/tonydeng
      http://twitter.com/wolfdeng
      http://delicious.com/wolf.deng
      http://wolfchina.blogbus.com
    2. 分析业务需求
    3. 原始USECase
    4. 分类后的USECase
    5. 如何实现?
    6. 已有的资源
      DataBase
      Dict_Score_Source
      用户积分来源—字典表
      User_Score_List
      用户积分明细表
      User_Status
      用户积分总数
    7. Strategy(策略)模式
      Strategy模式的适用场景
      当有许多算法要对一个事物进行处理
      当一次操作中存在着多个算法的选择
      不同的时候需要不同的算法来处理
      当某一个功能成为程序中难以分割的成分,增加新的这个功能的算法实现或改变现有算法将十分困难
      Strategy的意图
      定义一系列的算法,把她们一个个的封装起来,并且使它们可以相互替换。
      算法可以独立于使用它的客户而变化。
    8. Strategy模式结构
    9. 用户积分的Strategy模式结构
    10. 代码演示
    11. 谢谢

    + Tony DengTony Deng, 2 months ago

    custom

    159 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 159
      • 130 on SlideShare
      • 29 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds
    • 29 views on http://wolfchina.blogbus.com

    more

    All embeds
    • 29 views on http://wolfchina.blogbus.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?