6
Automatic Code Automatic Code Generation Generation By James Phillips By James Phillips

Automatic Code Generation

Embed Size (px)

DESCRIPTION

Automatic Code Generation. By James Phillips. What is Automatic Code Generation?. Automatic Code Generation refers to using programs to generate code that the user would otherwise have to write themselves. Why use Automatic Code Generation?. - PowerPoint PPT Presentation

Citation preview

Page 1: Automatic Code Generation

Automatic Code GenerationAutomatic Code Generation

By James PhillipsBy James Phillips

Page 2: Automatic Code Generation

What is Automatic Code Generation?What is Automatic Code Generation?

Automatic Code Generation refers to using Automatic Code Generation refers to using programs to generate code that the user programs to generate code that the user would otherwise have to write themselves.would otherwise have to write themselves.

Page 3: Automatic Code Generation

Why use Automatic Code Generation?Why use Automatic Code Generation?

Automatic code generation has certain Automatic code generation has certain advantages over traditional coding.advantages over traditional coding.

– High QualityHigh Quality– ConsistentConsistent– ProductiveProductive– Coding AbstractlyCoding Abstractly

Page 4: Automatic Code Generation

Two Types of Active Code GenerationTwo Types of Active Code Generation

Passive- Passive code generators creates Passive- Passive code generators creates code, then has nothing more to do with the code, then has nothing more to do with the project.project.

Active- Active code generators create code Active- Active code generators create code then keep track of that code during its then keep track of that code during its lifecycle.lifecycle.

Page 5: Automatic Code Generation

More ClassificationMore Classification

Code mungerCode munger– Generates new code from existing codeGenerates new code from existing code

Inline code expanderInline code expander– Expands special code in a programExpands special code in a program

Mixed code generatorMixed code generator– Inserts new code into existing codeInserts new code into existing code

Partial class generatorPartial class generator– Creates framework code from a model. i.e. empty function declarationsCreates framework code from a model. i.e. empty function declarations

Tier generatorTier generator– Creates complete code from a modelCreates complete code from a model

Domain LanguageDomain Language– A new language to describe a specific type of problemA new language to describe a specific type of problem

Page 6: Automatic Code Generation

ReferencesReferences ““Visual Paradigm FAQ.“ Visual Paradigm FAQ.“ http://www.visual-paradigm.com/FAQ.phphttp://www.visual-paradigm.com/FAQ.php. .

Oct 22, 2004.Oct 22, 2004.

““Object Management Group.” Object Management Group.” http://http://www.omg.orgwww.omg.org. Oct 18, 2004.. Oct 18, 2004. ““Poseidon for UML.” Poseidon for UML.”

http://www.gentleware.com/products/descriptions/pe.php4. Oct 21, http://www.gentleware.com/products/descriptions/pe.php4. Oct 21, 2004.2004.

"Java Code Generation versus MDA." "Java Code Generation versus MDA." http://www.codefutures.com/mda/. Oct 10, 2004.http://www.codefutures.com/mda/. Oct 10, 2004.

"Code generation: The One Page Guide." "Code generation: The One Page Guide." http://www.codegeneration.net/files/JavaOne_OnePageGuide_v1.pdf. http://www.codegeneration.net/files/JavaOne_OnePageGuide_v1.pdf. Oct 1 2004. Oct 1 2004.

"MetaMill." "MetaMill." http://http://www.metamill.com/faq.htmlwww.metamill.com/faq.html Oct 1, 2004 Oct 1, 2004 ““Expert Coder.” http://expertcoder.sourceforge.net/en/index.html. Oct Expert Coder.” http://expertcoder.sourceforge.net/en/index.html. Oct

5, 2004.5, 2004.