2007年8月6日
摘要: http://www.infoq.com/cn/articles/agile-team-room-wishlist 阅读全文
posted @ 2007-08-06 17:18 小熊bryan 阅读(342) 评论(0) 推荐(0) 编辑
  2007年7月31日
摘要: 偷乐一下,是俺翻译的,哈哈http://www.infoq.com/cn/articles/properties-metaprogramming 阅读全文
posted @ 2007-07-31 16:32 小熊bryan 阅读(255) 评论(0) 推荐(0) 编辑
  2007年7月30日
摘要: 【翻译】Ruby: Lazily Initialized Attributes url(注:原文网址访问不到,估计是被和谐了):http://blog.jayfields.com/2007/07/ruby-lazily-initialized-attributes.htmlhttp://95555.info/index.php?q=aHR0cDovL2Jsb2cuamF5ZmllbGRzLmNvb... 阅读全文
posted @ 2007-07-30 16:00 小熊bryan 阅读(400) 评论(0) 推荐(0) 编辑
  2007年7月27日
摘要: “当一个singleton方法在这个接受者中没有定义(??)时,singleton_method_undefined作为回调函数会被调用”这是书上P577页的说法,看看官网的原文:Invoked as a callback whenever a singleton method is undefined in the receiver再看代码: 1module Chatty 2 def ... 阅读全文
posted @ 2007-07-27 17:17 小熊bryan 阅读(499) 评论(0) 推荐(0) 编辑
  2007年7月24日
摘要: 多少次听人说,现在的流行音乐都不能算音乐,都是商业化、浮躁的产物。在某种程度上,我认同这一点。不过即使真的有好音乐放在耳边,我们又是否准备好了来听呢?有了互联网和mp3下载,任何一张专辑在我们浮躁、挑剔的耳边恐怕停留不过20分钟,就被扔到“回收站”里面去了吧?然后再次开始等待、搜索下一首可以打动我们的歌曲…… 想起小时候,没有电脑,没有cd,没有mp3,只有磁带。不管是... 阅读全文
posted @ 2007-07-24 22:25 小熊bryan 阅读(417) 评论(2) 推荐(0) 编辑
摘要: 终于完全靠我自己的思考,做出来一个quiz,就是第四个Animal Quiz,代码贴一下,笔记稍后放出。 1class AnimalQuiz 2 @@animals = Array.new # 用来保存问题和答案的数组,每个数组元素又是一个数组, 3 ... 阅读全文
posted @ 2007-07-24 11:15 小熊bryan 阅读(408) 评论(0) 推荐(0) 编辑
  2007年7月23日
摘要: 关键字:XML REXML 数组 堆栈本quiz的目的是将一种给定格式的文件转换成为xml文件。需要在ruby中操作xml,可以使用REXML标准库 回过头来,看标准答案:1、ARGF 与$,此后开始读取给定的GedCOM格式文件,读到第一个有效的行时,其level为0,while判断为false,置parent为根节点,然后将当前的节点作为子节点,并分析其level、tag和data,然后添加... 阅读全文
posted @ 2007-07-23 15:32 小熊bryan 阅读(516) 评论(0) 推荐(0) 编辑
摘要: REXML简要说明1、解析XML文件require "rexml/document"file = File.new( "mydoc.xml" )doc = REXML::Document.new file2、解析XML字符串require "rexml/document"include REXML # so that we don't have to prefix everything with... 阅读全文
posted @ 2007-07-23 14:00 小熊bryan 阅读(3381) 评论(0) 推荐(0) 编辑
  2007年7月22日
摘要: 澄清一个错误观念:Many in the Agile software development world labor under the false assumption that working delivered software = business value. Actually business value generally comes from using software.... 阅读全文
posted @ 2007-07-22 22:41 小熊bryan 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 5 Whys From Wikipedia, the free encyclopedia Jump to: navigation, search The five whys is a question asking method used to explore the cause/effect relationships underlying a particular problem. Ul... 阅读全文
posted @ 2007-07-22 22:35 小熊bryan 阅读(814) 评论(0) 推荐(0) 编辑