CSC/ECE 517 Summer 2008/wiki1 8 smr: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 8: Line 8:


[http://www.amazon.com/Programming-Ruby-Pragmatic-Programmers-Second/dp/0974514055 Programming Ruby: The Pragmatic Programmers' Guide]
[http://www.amazon.com/Programming-Ruby-Pragmatic-Programmers-Second/dp/0974514055 Programming Ruby: The Pragmatic Programmers' Guide]
[http://t-a-w.blogspot.com/2006/10/prototype-based-ruby.htmlv | Taw's blog: Prototype-based Ruby]
[http://en.wikipedia.org/wiki/Prototype-based_programming | Wikipedia: Prototype-based programming]
[http://www.softpanorama.org/Scripting/Javascript/prototype_based_object_scripting.shtml | Softpanoroma: Prototype Based Object-Oriented Programming]
[http://www.ruby-doc.org/ | RUBY-DOC.ORG]

Revision as of 01:15, 3 June 2008

In Lecture 7, we consider prototype-based programming in Ruby. The example that is given is somehwhat artificial. Can you identify real tasks that are easier with prototype-based programming than with class-based programming? Give the code, at least in outline.

...


References

Programming Ruby: The Pragmatic Programmers' Guide | Taw's blog: Prototype-based Ruby | Wikipedia: Prototype-based programming | Softpanoroma: Prototype Based Object-Oriented Programming | RUBY-DOC.ORG