http://blog.steveklabnik.com/posts/2012-09-01-random-ruby-tricks--struct-new
Ruby has the Struct construct which author makes use of to "reify" objects to be more Object Oriented. In Java, we'd have to create a separate class for these tiny strongly typed data objects, e.g. by using the "parameter object" pattern.
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Tuesday, October 11, 2016
Wednesday, March 12, 2014
JavaWorld on "The ultimate superclass"
http://www.javaworld.com/article/2105982/core-java/java-qanda-the-ultimate-superclass-part-1.html#tk.rss_all
talks about shallow vs deep cloning, covariant return types, etc.
talks about shallow vs deep cloning, covariant return types, etc.
Subscribe to:
Posts (Atom)