ucsb-cs56-projects / cs56-utilities-binary-clock

-
1 stars 5 forks source link

Refactor how TimePanel.java creates Blocks #62

Closed shudaniel closed 6 years ago

shudaniel commented 6 years ago

TimePanel.java hardcodes in every individual Block object for the clock. Each Block creation is copy pasted with different parameters. Currently, each Block is its own instance variable, so there are 20 Block instance variables. A majority of the code is copy pasted to do the same task on every single block. Completely refactor entire class to be more flexible and follow DRY.

200-300 points.

KevinLee00 commented 6 years ago

I'll give you 200 points for this.