Data View 个人空间中的模板渲染器

文章内容

2008-11-15 09:24:59
1
以前学数据结构和用VC时,对于Data View的结构不以为然,虽然对于同一数据可以有不同的view,但谁会为用户设计很多不同的view (视图)呢。从理论上这样分隔思路很清楚,不过却增加了程序设计的复杂度。

最近为个人空间写模板,为了偷懒,使用其它系统的现成模板,结果就写了好几个不同的渲染器,模仿其它博客系统的函数,读取不同系统的模板,渲染成html 界面。结果成了典型的data-view的结构。

点击: 652 | 评论: 1 | 分类: 自己的喜好 | 论坛: IT人生 | 论坛帖子

QR Code
请用微信 扫一扫 扫描上面的二维码,然后点击页面右上角的 ... 图标,然后点击 发送给朋友分享到朋友圈,谢谢!
分享:
分享到微信

文章评论

7thGuest
无题
the rationale behind this is:
data(model) is relatively more objective and more stable in terms of requirement change.
while the way of viewing it is quite subjective, and directly associate to user preference, much more change requests will come towards this part.
If you design your program with mvc in mind, you are less likely need to touch the whole program when a change request come.
big_happy.gif

2008-11-15 09:39:37 | 引用

发表评论

加西网为北美中文网传媒集团旗下网站