Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Active Tab2009
 
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-On Labs

"Design Patterns" for Dynamic Languages on the JVM Machine
TS-4961


Presenter: Neal Ford, ThoughtWorks Inc.


The "Gang of Four" book was actually two books: (1) a nomenclature describing common software problems and (2) a recipe book for solutions. The vocabulary they defined is still useful. The recipes are a disaster, though! Dynamic languages (such as Groovy and Ruby) have powerful metaprogramming facilities far beyond statically typed languages. It turns out that many of the structural design patterns in the "Gang of Four" book and beyond are much easier to solve with metaprogramming. This session compares and contrasts the "traditional" approach of design patterns with a more nuanced metaprogramming approach. Using language features creates cleaner abstractions with fewer lines of code and little or no additional structure. This session shows one of the many reasons dynamic languages are such a hot topic.

 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions