jnaglick/ezrl — Issue #2: Create "Coordinate," "Size," "Range" classes
Author: jnaglick
Created: 2011-10-29 14:34:29+00:00
State: open

These classes are needed so freaking bad. They are just wrappers that give names to 2-tuples (pairs). Coordinate is for x/y, Size is for w/h, Range is for min/max.

It's debatable if you really need 3 different classes just for different names but I think that abstraction would be nice.

Right now a ton of stuff is just passing around these paired-values, usually as multiple arguments to a method or as methods returning a python tuple. This worked for a while but I'm finally starting to see places where it's limiting code flexibility