ruby
iteye_18207
这个作者很懒,什么都没留下…
展开
-
ruby学习笔记系列(1)
1 Notation Conventions Throughout this book, we use the following typographic notations. Literal code examples are shown using a typewriter-like font. class SampleCode def run #... end end Within t...2007-06-02 11:43:44 · 116 阅读 · 0 评论 -
ruby学习笔记系列(2)
class variables & class methods A class variable is shared among all objects of a class, and it is also accessible to the class methods that we’ll describe later. Only one copy of a particular cl...2007-06-02 11:48:59 · 146 阅读 · 0 评论 -
ruby学习笔记系列(3)
经典Singletons Sometimes you want to override the default way in which Ruby creates objects. As an example, let’s look at our jukebox. Because we’ll have many jukeboxes, spread all over the country, we...2007-06-02 11:53:47 · 113 阅读 · 0 评论 -
ruby学习笔记系列(4)
Access Control When designing a class interface, it’s important to consider just how much access to your class you’ll be exposing to the outside world. Allow too much access into your class, and you ...2007-06-02 11:55:45 · 283 阅读 · 0 评论 -
ruby学习笔记系列(5)
Reguler Expression \d [0-9] Digit character \D [^0-9] Any character except a digit \s [\s\t\r\n\f] Whitespace character \S [^\s\t\r\n\f] Any character except whitespace \w [A-Za-z0-9_] Word character ...2007-06-02 15:57:00 · 128 阅读 · 0 评论 -
REST && RAILS
花了几天时间学习了一下rails下的REST. 现在把自己的理解记录下来,以备后用。 REST不用说了,网上一堆介绍。rails对REST的支持主要体现在route,helper,resouces format几个部分。由于之前对route不是特别了解,我对REST的疑问也主要是在这部分的。REST风格的程序简化了URL长度,这中简化是通过增加对资源的请求方式来实现的,非REST的HTTP ...2008-05-03 22:37:37 · 106 阅读 · 0 评论 -
rails项目体验(1)
rails项目体验 在过去的16个月中我的同事们和我一直忙碌于一个比较大的rails项目中。 在经历了无数个加班和n个通宵之后终于看到我们的项目部署在6台IBM服务器上,在过去的一周中项目日渐稳定,这种心情只有经历过的人才能体会到。客户满意,BOSS也即将走出痛苦的泥潭,接下来的是最后的完善和部署到另外14台服务器上。忙碌,压力稍...2010-04-11 18:48:47 · 117 阅读 · 0 评论