Ray's playground

 
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 56 下一页

2010年7月6日

When Trouble Strikes(Chapter 14 of Programming Ruby)

摘要: Ruby comes with a debugger, which is conveniently built into the base system. You canrun the debugger by invoking the interpreter with the -r debug option, along with any otherRuby options and the nam... 阅读全文

posted @ 2010-07-06 20:53 Ray Z 阅读(119) 评论(0) 推荐(0) 编辑

Unit Testing(Chapter 13 of Programming Ruby)

摘要: RomanCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1classRoman2MAX_ROMAN=49993definitialize(value)4ifvalue<=0||value>MAX_ROMAN5fail"Romanvalue... 阅读全文

posted @ 2010-07-06 12:53 Ray Z 阅读(152) 评论(0) 推荐(0) 编辑

2010年7月5日

Securing Spring(Chapter 7 of Spring In Action)

摘要: This chapter covers■ Introducing Spring Security■ Securing web applications using servlet filters■ Authentication against databases and LDAP■ Transparently securing method invo... 阅读全文

posted @ 2010-07-05 21:04 Ray Z 阅读(153) 评论(0) 推荐(0) 编辑

Fibers, Threads, and Processes(Chapter 12 of Programming Ruby)

摘要: [代码] 阅读全文

posted @ 2010-07-05 20:25 Ray Z 阅读(113) 评论(0) 推荐(0) 编辑

Basic Input and Output(Chapter 11 of Programming Ruby)

摘要: [代码] 阅读全文

posted @ 2010-07-05 12:54 Ray Z 阅读(115) 评论(0) 推荐(0) 编辑

2010年7月4日

Exceptions, Catch, and Throw(Chapter 10 of Programming Ruby)

摘要: [代码] 阅读全文

posted @ 2010-07-04 17:41 Ray Z 阅读(132) 评论(0) 推荐(0) 编辑

2010年7月3日

Expressions(Chapter 9 of Programming Ruby)

摘要: break terminates the immediately enclosing loop; control resumes at the statement followingthe block. redo repeats current iteration of the loop from the start but without reevaluatingthe condition or... 阅读全文

posted @ 2010-07-03 20:24 Ray Z 阅读(123) 评论(0) 推荐(0) 编辑

2010年6月30日

Working with persistent objects(Chapter 4 of Hibernate In Action)

摘要: In Hibernate, objects instantiated using the new operator aren’t immediately persistent.Their state is transient, which means they aren’t associated with any databasetable row, and so thei... 阅读全文

posted @ 2010-06-30 21:20 Ray Z 阅读(234) 评论(0) 推荐(0) 编辑

2010年6月29日

Managing transactions(Chapter 6 of Spring In Action)

摘要: Spring supports both programmatic and declarative transaction management.In either case, Spring shields you from having to work directly with a specifictransaction management implementation by abstrac... 阅读全文

posted @ 2010-06-29 12:59 Ray Z 阅读(183) 评论(0) 推荐(0) 编辑

More About Methods(Chapter 8 of Programming Ruby)

摘要: Methods that return a boolean result (socalledpredicate methods) are often named with a trailing ?.  Methods that are “dangerous,” or that modify their receiver, may be named with a traili... 阅读全文

posted @ 2010-06-29 00:05 Ray Z 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 56 下一页

导航