The author discusses that code generation is the core activity of any developer and his focus in this chapter will be on code generation tools. The author suggests to spend time on thinking about automating a repetitive task instead of doing it. The author then gives an example of generating stored procedures using a tool. The code generation tools are classified in two categories:
- Passive that dumps the code and forgets
- Active which are then classified in several other categories
- Code munger
- Inline-code expander
- Mixed-code generator
- Partial-class generator
- Tier generator
- Full-domain language
- Database access code
- User interface code
- Documentation
- Unit tests
- Web services
- DLL wrappers for legacy code
- Configuration files or initialization files
- Scripting files
- Installation files
No comments:
Post a Comment