|
||||||||
Chapter 1: Introducing code generation - The introductory chapter provides an overview of the problem-solving capabilities of code generators, and also examines cultural concerns.Chapter 2: Code generation basics - In this chapter we provide a foundation of code generation models that we will use throughout the book. Chapter 3: Code generation tools - This chapter covers the tools we use in this book and the skills you need to be able to develop your own generators. Chapter 4: Building simple generators - The last chapter in part 1 shows a number of simple generators that solve small but realistic engineering problems. You can use these simple generators as starting points to build more elaborate generators. Chapter 5: Generating user interfaces - Building high-quality and consistent user interfaces quickly is a problem to which we apply the code generation technique in this chapter. The case study provides a complete component-based generator for building JSP interfaces from an abstract definition of the interface requirements. Chapter 6: Generating documentation - JavaDoc is an example of using code generation to build documentation from source code. In this chapter, we discuss how JavaDoc works and then apply it to SQL documentation. Chapter 7: Generating unit tests - This chapter applies code generation techniques to building and maintaining unit test code. This makes it easy to build quality test cases and keep them updated as the code changes. Chapter 8: Embedding SQL with generators - Simplifying SQL work has been a goal of a number of commercial products, such as Pro*C and SQLJ, which embed SQL in C and Java, respectively, and then use a generator to build production C and Java code. Chapter 9: Handling data - Reading, writing, importing, exporting, and converting data are common engineering problems. This chapter provides code generation solutions for all of these problems. Chapter 10: Creating database access generators - Database access code is the most commonly generated code because of the primary importance of database code and the ease with which it can be generated. Chapter 11: Generating web services layers - Providing web services layers for applications is a growing field. In this chapter, we apply code generation to building high-quality web services layers. Chapter 12: Generating business logic - Business logic isn’t usually a generation target, but with some creativity you can go a long way with generating business logic code. Chapter 13: More generator ideas - This final chapter in the solutions portion of the book provides several examples of small generators applied to specific problems, such as generating firewall configurations, DLL wrappers, lookup tables, lookup functions, and more. Download free ebooks of software engineering:Manning Code Generation in Action
|
| More free ebooks | |
More computer ebooks
Chapter 1: Introducing code generation - The introductory chapter provides an overview of the problem-solving capabilities of code generators, and also examines cultural concerns.