The Java Critiquer: Incremental Development of Educational Critiquing Systems

5
The Java Critiquer: Incremental Development of Educational Critiquing Systems Lin Qiu

description

The Java Critiquer: Incremental Development of Educational Critiquing Systems. Lin Qiu. Enter code. Manual critiquing. Return code. Automatic critiquing. Review critiques. int x;. Use more descriptive variable names. public void increaseRadius() { radius = radius + 1; - PowerPoint PPT Presentation

Transcript of The Java Critiquer: Incremental Development of Educational Critiquing Systems

Page 1: The Java Critiquer: Incremental Development of Educational Critiquing Systems

The Java Critiquer: Incremental Development of Educational Critiquing Systems

Lin Qiu

Page 2: The Java Critiquer: Incremental Development of Educational Critiquing Systems
Page 3: The Java Critiquer: Incremental Development of Educational Critiquing Systems

Enter code

Automatic critiquing

Review critiques

Manual critiquing

Return code

public void increaseRadius() {radius = radius + 1;

diameter = radius*2;

} public boolean isValid() { if (radius > 0)

return true;else

return false;

}

Java has a simpler way to write this. Use ++radius;

You never need to write an if to return true in one case and false inthe other. Just write return (radius >0); instead.

Use more descriptive variable names.

int x;

Don't cram things together without spaces, ex. x+y*z

Page 4: The Java Critiquer: Incremental Development of Educational Critiquing Systems
Page 5: The Java Critiquer: Incremental Development of Educational Critiquing Systems

Critiquing SystemHuman Critiquer

Realize

Familiarize

Publicize

Optimize

Generalize

Add a critique

Refine the critique

Add a pattern

Refine the pattern

Share the critique and pattern

Develop automation

Provide public access

Collect critiques

Improve automation

Improve critiques

Incremental authoring

accumulating

intelligence

Critique Authoring

Pattern Authoring