Game-Design / Sprint3_actual / Code Reviews and Reflection / Sprint 3 / BryceCodeReviewMaintainability.txt
BryceCodeReviewMaintainability.txt
Raw
Sprint 3 Code Maintainability Review
Reviewer: Bryce Hostetler
Reviewed File: XMLSwitch.cs (Shay Fabrizio)
Time reviewed: 15 minutes

This file does a great job of minimizing ugly code. To elaborate,
this file could potentially have multiple nested switch-case blocks
for each type of item iterated over in the List of type XMLParser.Item.
The way that each global list is added to allows for there to be minimal conditional
logic thanks to the abstraction used in each object that is added to each
global list. Shay added structs that had fields for location, object types,
and object names. The Object names are passed as ints so ther is no need to
check for the string representation of an object name which would create
multiple nested switch-case blocks. Instead, the int of some object type 
is passed into the constructor for said object type and cast to match
the enumerated states provided in the Factory whihc creates the object instance.