4 ms·
For crying out loud, you don't have to build an object hierarchy around the thing (although it would make sense to in this case), but at least have the common s
by qwertyuiop924 10y ago
For crying out loud, you don't have to build an object hierarchy around the thing (although it would make sense to in this case), but at least have the common sense, or the sense of shame, to abstract away data lookups into separate functions. That's data structure abstraction 101.