aaronpriven / actium

Programs used for schedules and other information at AC Transit
Other
1 stars 1 forks source link

Replace Actium::Timenum with a flyweight object #3

Closed aaronpriven closed 6 years ago

aaronpriven commented 8 years ago

Actium::Timenum is a procedural module that would make more sense as a flyweight object, since all timenums of the same value are the same, but each one has methods that should be associated with it.

aaronpriven commented 8 years ago

Flyweight object written, but nothing uses it yet.

aaronpriven commented 6 years ago

Actium::Time has been deleted in development and all calls to it replaced with Actium::O::Time. Many of these are just replacing simple functions with object-oriented calls to do the same thing, but at least the duplicate code is gone. More intelligent use of the object can come as things are worked on.