SAM SIG: Writing Code Generators For Quality, Productivity, and Fun



  • The Monthly Meeting of the SAM SIG


    Presentation Overview

    Writing Code Generators For Quality, Productivity, and Fun

    Code generation is a powerful technique for increasing your productivity and accuracy when writing software. In this talk, Bill Venners will explain how to do it, when to do it, and what the tradeoffs are--using Java as the target language. He will show several examples from Artima's web application architecture that use ANTLR ( to generate parsers for domain specific languages. Artima uses these DSLs to generate code for artifacts such as domain model database entities, web request controllers, and template views. After this talk you'll have enough information to get started creating your own DSLs to drive your own Java code generators.


    About the Presenter

    Bill Venners

    Bill Venners is president of Artima, Inc. and editor-in-chief of Artima Developer ( He is author of the book, Inside the Java Virtual Machine, a programmer-oriented survey of the Java platform's architecture and internals. His popular columns in JavaWorld magazine covered Java internals, object-oriented design, and Jini. Bill has been active in the Jini Community since its inception. He led the Jini Community's ServiceUI project, whose ServiceUI API became the de facto standard way to associate user interfaces to Jini services. Bill also serves as an elected member of the Jini Community's initial Technical Oversight Committee (TOC), and in this role helped to define the governance process for the community.


    Event Logistics


    Cubberley Community Center

    4000 Middlefield Road, Room H-1

    Palo Alto, CA


    6:30 - 7:00 p.m. Registration/Networking/Refreshments/Pizza

    7:00 - 9:00 p.m. Presentations



    $15 at the door for non-SDForum members

    No charge for SDForum members

    No registration required

    More on the Software Architecture & Modeling....