CSC/ECE 517 Fall 2007/wiki1b 6 aa: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
http://www.beginner-java-tutorial.com/singleton.html | http://www.beginner-java-tutorial.com/singleton.html | ||
http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html |
Revision as of 15:12, 30 September 2007
Take a case of the Singleton pattern and implement it as succinctly as possible in Ruby and Java.Compare the two implementations in terms of clarity and succinctness.The example should be a "real-world" example. While it may be grossly oversimplified for the purpose of illustration, it should not be totally contrived (i.e., should not raise the question, Why would anyone ever want to do that?).
http://www.beginner-java-tutorial.com/singleton.html http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html