tell, don’t ask

That is, you should endeavor to tell objects what you want them to do; do not ask them questions about their state, make a decision, and then tell them what to do.

posted @ 2011-12-26 14:45  justin_s  阅读(143)  评论(0编辑  收藏  举报