<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_proshea's blog</title><subtitle type="text">上善若水</subtitle><id>http://feed.cnblogs.com/blog/u/18053/rss</id><updated>2006-06-11T23:10:58Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/18053/rss"/><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/21/381375.html</id><title type="text">Ruby 入门: 方法</title><summary type="text">Ruby 的方法定义允许为参数设置默认值，不过在带有默认值的参数后面不能出现不带有默认值的参数（允许 * 和 &amp;），也就是说下面的方法定义是不被允许的，解释时会出现 parse error。 还有一点与 C# 不同的是，方法定义不能出现在方法调用的后面。 #parseerrordefDisplay(args1="proshea",args2)end#允许defDisplay(args1="...</summary><published>2006-04-21T06:50:00Z</published><updated>2006-04-21T06:50:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/21/381375.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/21/381375.html"/><content type="text">Ruby 的方法定义允许为参数设置默认值，不过在带有默认值的参数后面不能出现不带有默认值的参数（允许 * 和 &amp;），也就是说下面的方法定义是不被允许的，解释时会出现 parse error。 还有一点与 C# 不同的是，方法定义不能出现在方法调用的后面。 #parseerrordefDisplay(args1="proshea",args2)end#允许defDisplay(args1="...</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/21/381186.html</id><title type="text">2006.04.21 疯言疯语</title><summary type="text">Google 开放 Calendar 的 API让我非常开心的一篇文章: Community: Let's Help Microsoft!</summary><published>2006-04-21T04:39:00Z</published><updated>2006-04-21T04:39:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/21/381186.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/21/381186.html"/><content type="text">Google 开放 Calendar 的 API让我非常开心的一篇文章: Community: Let's Help Microsoft!</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/20/379917.html</id><title type="text">Ruby 入门: BEGIN &amp; END</title><summary type="text">BEGIN 块BEGIN 块中的代码在所有代码执行之前执行，Ruby 允许设置多个 BEGIN 块并按出现的顺序执行块中的代码。C# 程序员注意下面的代码 BEGIN{print"OnInit(objectsender,EventArgsargs)\n"}BEGIN{print"OnLoad(objectsender,EventArgsargs)\n"}print"Running"上面的代码看上去...</summary><published>2006-04-20T03:14:00Z</published><updated>2006-04-20T03:14:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/20/379917.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/20/379917.html"/><content type="text">BEGIN 块BEGIN 块中的代码在所有代码执行之前执行，Ruby 允许设置多个 BEGIN 块并按出现的顺序执行块中的代码。C# 程序员注意下面的代码 BEGIN{print"OnInit(objectsender,EventArgsargs)\n"}BEGIN{print"OnLoad(objectsender,EventArgsargs)\n"}print"Running"上面的代码看上去...</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/20/379815.html</id><title type="text">2006.04.20 疯言疯语</title><summary type="text">Furl 真的被封掉了? Feedburner 有可能遭此命运吗? Feedburner 也是基于 RoR? Cathayan 认为 Web2.0 纯粹扯淡? Bloglines 的一个优点就是可以在网吧使用?</summary><published>2006-04-20T01:54:00Z</published><updated>2006-04-20T01:54:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/20/379815.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/20/379815.html"/><content type="text">Furl 真的被封掉了? Feedburner 有可能遭此命运吗? Feedburner 也是基于 RoR? Cathayan 认为 Web2.0 纯粹扯淡? Bloglines 的一个优点就是可以在网吧使用?</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/19/378781.html</id><title type="text">Ruby 入门: 嵌入字符串、% 呈现</title><summary type="text">嵌入字符串在 Ruby 中我非常喜欢的一个功能就是嵌入字符串，所谓嵌入就是指直接将变量写入引号的形式，这样做的好处是直观和节约了连字符出现的频率。比如在 C# 中我们可以编写下面的代码。 stringval="value";stringprintVal="value:"+val;//或者stringprintVal=String.Format("value:{0}",val);但在 Ruby 中可...</summary><published>2006-04-19T01:11:00Z</published><updated>2006-04-19T01:11:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/19/378781.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/19/378781.html"/><content type="text">嵌入字符串在 Ruby 中我非常喜欢的一个功能就是嵌入字符串，所谓嵌入就是指直接将变量写入引号的形式，这样做的好处是直观和节约了连字符出现的频率。比如在 C# 中我们可以编写下面的代码。 stringval="value";stringprintVal="value:"+val;//或者stringprintVal=String.Format("value:{0}",val);但在 Ruby 中可...</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/18/378339.html</id><title type="text">Ruby 入门: 正则表达式之反向引用</title><summary type="text">Ruby 和 Perl 一样，对正则表达式的天然支持都是它们的优势所在，懂得 Perl 的朋友可以看出，Ruby 的正则表达式很多地方和 Perl 都是如出一辙的。反向引用 :-)不知道该怎么翻译，所以请 Rufas(Ruby Fans) 原谅我借用了 Perl 的名词反向引用就是引用正则表达式中被括号括起来的模式，下面两行的模式就是相同的，只是第二句采用了反向引用的形式。 pat1=/([\d\...</summary><published>2006-04-18T08:24:00Z</published><updated>2006-04-18T08:24:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/18/378339.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/18/378339.html"/><content type="text">Ruby 和 Perl 一样，对正则表达式的天然支持都是它们的优势所在，懂得 Perl 的朋友可以看出，Ruby 的正则表达式很多地方和 Perl 都是如出一辙的。反向引用 :-)不知道该怎么翻译，所以请 Rufas(Ruby Fans) 原谅我借用了 Perl 的名词反向引用就是引用正则表达式中被括号括起来的模式，下面两行的模式就是相同的，只是第二句采用了反向引用的形式。 pat1=/([\d\...</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/18/377834.html</id><title type="text">Ruby 入门: 变量和常量</title><summary type="text">局部变量 以小写字母或下划线开头的标识符在 Ruby 中即为局部变量（如果引用未被声明的标识符则会被解释成无参数的方法调用）。 val=5iffalse虽然 val 未被赋值，但声明还是有效的，此时 val 的值是 nil（相当于 C# 中的 null）。实例变量所有实例变量都是 @ 字符打头的标识符，未被初始化的实例变量值为 nil。 classEmployee@empIdend类变量以 @@ ...</summary><published>2006-04-18T01:31:00Z</published><updated>2006-04-18T01:31:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/18/377834.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/18/377834.html"/><content type="text">局部变量 以小写字母或下划线开头的标识符在 Ruby 中即为局部变量（如果引用未被声明的标识符则会被解释成无参数的方法调用）。 val=5iffalse虽然 val 未被赋值，但声明还是有效的，此时 val 的值是 nil（相当于 C# 中的 null）。实例变量所有实例变量都是 @ 字符打头的标识符，未被初始化的实例变量值为 nil。 classEmployee@empIdend类变量以 @@ ...</content></entry><entry><id>http://www.cnblogs.com/proshea/archive/2006/04/14/374808.html</id><title type="text">.NET Quiz: HttpResponse.Redirect</title><summary type="text">原本正常工作的登陆窗体在经过昨天的修改之后突然无法显示 Javascript 提示对话框了，花了一个小时的时间才找到问题的所在。发生错误的代码片断: 1 switch ( CcRoles.Signin(customerToSignin) ) 2 { 3 case SigninStatus.CannotFindCustomer: 4 case SigninStatus.FalsePassword: ...</summary><published>2006-04-13T23:45:00Z</published><updated>2006-04-13T23:45:00Z</updated><author><name>proshea</name><uri>http://www.cnblogs.com/proshea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/proshea/archive/2006/04/14/374808.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/proshea/archive/2006/04/14/374808.html"/><content type="text">原本正常工作的登陆窗体在经过昨天的修改之后突然无法显示 Javascript 提示对话框了，花了一个小时的时间才找到问题的所在。发生错误的代码片断: 1 switch ( CcRoles.Signin(customerToSignin) ) 2 { 3 case SigninStatus.CannotFindCustomer: 4 case SigninStatus.FalsePassword: ...</content></entry></feed>
