Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the...

11
Code Review and Evaluation

Transcript of Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the...

Page 1: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Page 2: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation FAEIS Proposal

Subobjective 5.1: Improve the FAEIS Applications.

A contract was initiated with TeraTech to

review the code for the FAEAIS applications and suggest improvements. This will enable us to ensure that FAEIS code is efficient, current, and based on effective programming techniques. It will also help us maintain longitudinal integrity of FAEIS; good code is much easier for others to maintain and less dependent on one programmer’s knowledge.

Page 3: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Project Outline

• Project initiated in June 2006

• Attended TeraTech training, Oct. 2006

• Cold Fusion code sent to Teratech, Nov. 2006

• Preliminary report received from Teratech, Jan. 2007

• Implementation of recommendations, Feb. 2007

• Revised code provided to TeraTech, Mar. 2007

• Final report received, Mar. 2007

Page 4: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Initial Recommendations

• Consistency of documentation

• Replace deprecated tags

• Security upgrades

• Accessibility

• Performance improvements

• Consistent coding architecture

Page 5: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Documentation Example

<!--- s4_display.inc -- section 4 -- Student Survey Form Display

Name: s4_displayDescription: display student survey forms, set survey statusDate: Jan. 24, 2007Program: FAEIS Data EntrySection: 4Type: My Surveys Users: Data EntryCalled by: s_body.incData Input: NProcess File: NIncludes: none

Functions: display survey forms, set survey status --->

Page 6: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Performance Example

OLD CODE:<cfquery datasource=#dsource# name = "lookup_b">

select * from x_inst where k = #lookup_a.x_inst#</cfquery>

REPLACEMENT CODE:<cfquery datasource=#dsource# name = "lookup_b">

select k ,name ,fice ,type ,instcode ,f_faeis

from x_inst where k = #lookup_a.x_inst#</cfquery>

Page 7: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation

Deprecated Tags Example

OLD CODE:

<cfif parameterexists(url.v)>

REPLACEMENT CODE:

<cfif isdefined("url.v")>

Page 8: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation Application Architecture

• FAEIS Data Entry

• FAEIS Report Builder

Page 9: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation Application Architecture

FAEIS Data Entry

• over 1000 users

• multiple security levels

• access point for BOHS & SIP sub-apps

• 48 sections

• 110 files

Page 10: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and Evaluation Application Architecture

FAEIS Report Builder• fewer users

• some restrictions to faculty data

• resource intensive

• complex code

• very flexible for users

• 11 sections

• 24 files

• extensive utilization of Oracle database

Page 11: Code Review and Evaluation. Code Review and Evaluation FAEIS Proposal Subobjective 5.1: Improve the FAEIS Applications. A contract was initiated with.

Code Review and EvaluationExcerpts from the Final Report

“This code review is comprehensive in that it covers all aspects of the application.”

“the code uses the recommended functionality of ColdFusion”

“efficient coding schemes are in use.”