Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is active code generation important?

active code generation
0
Posted

Why is active code generation important?

0

The fundamental difference between MockDoclet and MockMaker is that MockDoclet is designed to be used as an active code generator and MockMaker as a passive code generator. Passive code generators are wizard-like code generators that developers typically generate code once (with certain options) and then from then onwards treat the file as any other source file. It is the developer’s responsibility to ensure it is maintained as the project evolves. Of course, generated code is generally not as clean and maintainable as developers would like them to be and can end up causing maintenance nightmares (MockModified syndrome). Active code generators generate disposable code. The idea is that you have an input configuration that is easily maintainable and whenever it changes all the generated code is regenerated, overwriting previous versions. This is much simpler to maintain as the developer never actually modifies (or even looks at) the generated code. Excellent coverage of code generators,

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123