Webinar: Acyclic Visitor vs MethodHandles vs Traditional GoF Visitor By Dr Heinz M. Kabutz The Visitor Pattern strikes fear into the hearts of Java programmers. It works well, as long as we do not need to add new element types to the hierarchy. Many derivates of Visitor try to address this deficiency, such as the Acyclic Visitor by Uncle Bob, published 20 years ago. One of its challenges is dealing with unexpected elements. Since we are trying to avoid a cyclic dependency, we cannot let Visitor know about Element. We thus should not have a default handler in the Visitor superclass. We would like to invite you to join us for this special webinar, where we look at the Acyclic Visitor and compare it to our modern version of the GoF Visitor. We will also look at how we can refactor both versions to use MethodHandle to create a common accept() method. We will meet tomorrow the 5th April 2018 at 08:00 UTC. A recording of the webinar will be available afterwards. Please register here: https://attendee.gotowebinar.com/register/5117157192327271683 Kind regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) [email protected] Author of "The Java™ Specialists' Newsletter" Java Champion Oracle Developer Champion JavaOne Rock Star Skype: kabutz
|