Code Robot Overview

13
Derek Cassidy Code Robot

Transcript of Code Robot Overview

Derek Cassidy

Code Robot

Overview What is CodeRobot Components Examples Features Possible Uses Next Steps

What is CodeRobot Tool for auto generation of code projects Generic text rules can apply to any language Similar to CodeSmith Generator Application

http://www.codesmithtools.com/

Components 1. Template Creator

◦ Tool to create a template project from current source code

◦ Allow editing of the project and adding tags without breaking compilation

◦ This part would be the product differentiator to CodeSmith Generator

2. Code Generator◦ Tool to create output source code from CodeRobot

template◦ Allow user to configure all options and generate

project (list of options or wizard driven)

Select text you want to create rule for and right click for options

Template Creator Example 1

Include/Exclude Section

Rule tags:

Template Creator Example 2

Auto generate project GUID

Template Creator Example 3

Setup Rule Options in CodeRobot and Generate Code

Code Generation Example 1

Resulting Project

Code Generation Example 1

Setup Include/Exclude Option

Outputs: or

Code Generation Example 2

Features Templates for any language Define set of rules for template

◦ Text Replace◦ File/Text include/exclude◦ Specific code generation e.g. generate GUID

Use comment style of particular language to allow code to still compile with CodeRobot tags

Visual Studio / other dev environment plugins Project browser for all templates

Possible Uses Generate templates for lots of targets

◦ PC / Web / Mobile◦ Community driven

Redist tool for SDK templates, companies with SDK’s provide template with generation tool

Rules for Porting code …

Next Steps Develop feature list Design functional UI Incrementally add features as is useful for

Recurring Projects