Book description
This book is no longer available as a pBook. However, you can still purchase the eBook!
Code Generation in Action covers technique and implementation for building high-quality machine-generated code for today's complex applications frameworks. The book includes step-by-step instruction for building dozens of code generators of varying types. These generators build high-quality output that is consistent and maintainable. Code generation abstracts the design of the code so that multiple outputs can be created from a single model of the application functionality, which means development teams can focus on higher-level design work and strategic problems, while still meeting goals for maintaining production applications. The book covers techniques that range from simple code processors that handle common coding problems to more elaborate and complex generators that maintain entire application tiers.
About the Technology
About the Book
Code Generation in Action covers building database access, user interface, remote procedure, test cases, and business logic code as well as code for other key system functions.
Although code generation is an engineering technique it also has a large impact on the engineering team and management. The book discusses the non-technical justifications for code generation in depth, and offers practical advice for making code generation succeed in any organization.
What's Inside:
- Code generation models
- Practical examples of database access generation
- Architectures for generators for all of today's popular technologies
- Insight into deployment issues
Direct examples are provided on a variety of platforms. These include Java/J2EE, Microsoft's ASP and ASP.NET, as well as Open Source solutions such as Perl, Python and PHP.
What's Inside
- Code generation basics
- CG techniques and best practices
- Patterns of CG design
- How to deploy generators
- Many example generators
Over his twenty years of development experience, Jack Herrington has shipped many software applications helped by code generation techniques.
Includes generators for
- Database access
- RPC
- Unit tests
- Documentation
- Business logic
- Data translation
About the Reader
Who can benefit from this book:
- Senior engineers looking for ways to improve their productivity and the quality of their work.
- Systems architects who want to maintain their design decisions in abstract form and then generate code to match the design.
- Product Managers and Project Managers who wish to understand the design principles and cultural benefits of code generation techniques.
About the Author
Jack Herrington is a software engineer with 20 years of experience developing applications using a diverse set of languages and tools. He has shipped applications from scientific real-time applications to web applications for business. He is an expert in the use of code generation techniques from very simple code maintenance to code generators, which build entire tiers of functionality. The author lives in Union City, California.
Quotes
will open your eyes to the potential of code generation ... insightful and practical
- John Lam, co-author of Essential XML
... an endless stream of ideas on how to automate the repetitive aspects of programming
- Michael Lenaghan, Frogware Inc.
Like unit testing, once you try generative programming, you?ll never look back. This book will become a classic.
- Richard Rodger, Jostraca
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- About the Title
- About the Cover Illustration
- Part I. Code generation fundamentals
-
Part II. Code generation solutions
- Chapter 5. Generating user interfaces
- Chapter 6. Generating documentation
- Chapter 7. Generating unit tests
- Chapter 8. Embedding SQL with generators
- Chapter 9. Handling data
- Chapter 10. Creating database access generators
- Chapter 11. Generating web services layers
- Chapter 12. Generating business logic
- Chapter 13. More generator ideas
- Appendix A. A brief introduction to Ruby
- Appendix B. The simple system test framework
- Appendix C. EJBGen code and templates
- Appendix D. Integrating code generation into your IDE
- Appendix E. Simple templating
- Appendix F. Patterns for regular expressions
- Programming: Code Generation in Action
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Code Generation in Action
- Author(s):
- Release date: June 2003
- Publisher(s): Manning Publications
- ISBN: 9781930110977
You might also like
book
Refactoring: Improving the Design of Existing Code
Fully Revised and Updated–Includes New Refactorings and Code Examples “Any fool can write code that a …
book
Design Patterns: Elements of Reusable Object-Oriented Software
Capturing a wealth of experience about the design of object-oriented software, four top-notch designers present a …
book
Working Effectively with Legacy Code
This book provides programmers with the ability to cost effectively handlecommon legacy code problems without having …
book
Modern Java in Action
Manning's bestselling Java 8 book has been revised for Java 9 and 10! In Modern Java …