Today's the day

向软件大牛炫耀我会焊单片机,向硬件大牛炫耀我会写 Rails,向软硬件大牛炫耀我生物,向软硬件生物大牛炫耀我会折腾期货 -_-bbb

单用户、多用户版合在一起?
改善了 Chito 插件的实现方式

重整 Chito 代码

galeki posted @ 2008年3月21日 15:06 in Chito , 4892 阅读

暂时停止向 Chito 添加复杂的功能,是时候把代码优化和整理一下了~ 

实现功能的代码,该封装的封装,该简化的简化,也要遵循 MVC 的设计信条,尽量精简 Controller 层,把功能都放到 Model 里去~ 而且很多地方的代码都有啰嗦的嫌疑,现在 Chito 的总代码 2300 行左右,但是实现管理界面的文件管理器,就用了 200 行汗……现在这代码要是被别人看了岂不会被笑话死……

另外插件的方式也有再精简的余地,现在的实现方式效率也不是很高,趁着现在插件量还不是很多,修改起来还是很轻松的~

正好前两天打印的两本书:《Design Patterns in Ruby》和《The Rails Way》,这几天看看,再对 Ruby 和 Rails 重新了解一下,相信能学到不少的东西,然后把他们应用到 Chito 里来~ 


明天闪人,恋恋不舍的离开舒适的家。在家赖了快两个月,省了不少的饭钱,不过干事效率确实是不高,带回来好多书都没看,这两天更是萎靡得一塌糊涂,只想上网瞎逛,就是不想干事情,大概是吃得太多了……

回去就没好吃的了,上厕所又得骑车了……     不过效率应该会比家里高不少,而且可以用新电脑,嘿嘿,这样想想心情好多了~~ 

  • 无匹配
  • 无匹配
anonymous 说:
2023年5月03日 20:17

In this article understand the most important thing, the item will give you a keyword rich link a great useful website page: Orlando Bed Bug Pest Control

anonymous 说:
2023年5月03日 20:17

I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on here. Pest Control Windermere

Canada Essay Writing 说:
2023年11月18日 18:06

Taking a pause to optimize and organize Chito's code sounds like a wise move. Streamlining functions, adhering to MVC design principles, and delving into Ruby and Rails design patterns can undoubtedly enhance the codebase. Best of luck with the improvements, and the prospect of a more efficient workspace ahead!


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter