make a different year 2009

临近毕业,博主决定停止空想并制定了详细的行动计划。计划包括在1月内完成Linux评测软件开发、论坛程序制作及整合工作,并初步规划了2月及3月的学习与实习目标。

HELL , ITS ABOUT TIME.

    从小至今,喜爱发呆,在纸上描绘各种点子,做富丽的梦。然随着岁月流逝,梦想接踵破灭,我还是以前的我。我大部分的时候在说:我想做。。。我要做。。。明天我要。。。过两天我决定了要。。。。最后什么也没做成。

   临近毕业,愈加感悟时间的珍贵,我必须得停止空想,得马上做些事情了,简单规划下09年6月前的安排。

 

1月15日前:写好Linux的评测软件,保证所有功能(内存,时间,输入输出,安全控制)。

1月20日前:整合到 Rails里,能实现设计时的基本功能。

1月25日前:写一个论坛程序,并改装成plugin ,能简单的部署到现有rails应用上。

1月30日前:整合所有功能,购买空间域名,上线玩玩。

 

2月份:复习flex as3 ,研究别人项目代码 ,构思CMS系统实现。

3月份:一边实习一边完成毕业设计。

 

其他穿插时间:深入 CSS ,再练练估计差不多了。

                            找几个网站,模仿下界面设计,从photoshop到最后的html。

                            加强对色彩的理解,继续学习绘画。:)

(持续编辑中。。)


The Crazy One

 

3)A digital clock consists of a screen to display the time and a dial for setting in turn the year, month, day, hour and minute. Twisting the dial to the left reduces by one the value being changed but twisting it to the right increases it by one. Pushing the dial alters which value is being adjusted. At first, it is the year but after the dial is pushed once, it is the month, then after the dial is pushed again, it is the day and so on. Imagine the clock is represented by a class with attributes year, month, day etc. The following is what the code for a method rotateDialLeft() might look like. public void rotateDialLeft() { if (mode == YEAR_MODE) { year--; } else if (mode == MONTH_MODE) { month--; } else if (mode == DAY_MODE) { day--; } else if (mode == HOUR_MODE) { hour--; } else if (mode == MINUTE_MODE) { minute--; } } The code for rotateDialRight() is similar. Apply the Open-Closed Principle to explain why the above code is unsatisfactory from the design viewpoint, considering the possibility of future change to the code, giving an example of such a change. 5)Give the code required for the classes introduced in question 3), focusing on the code for a method selectState() which changes the value that is being adjusted from years to months. Make it clear in which classes the code is to be found. Assume the existence of other methods that are needed such as getMonthSetUpState(). 8)Suppose that in a multiplayer role-playing game, a class Client has a dependency to an interface Fighter with public methods attack(), defend() and escape(). The game designer now wishes for Client to use a class Wizard with three different but equivalent public methods castDestructionSpell(), shield() and portal(). Explain how it is possible to do this using an appropriate design pattern.
06-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值