Naming things
ideasasylum opened this issue · 0 comments
ideasasylum commented
Starting with the easy problems in computer science 😉
I'm trying not to worry too much about names at this stage or it would give me an excuse for procrastination. Instead, let's fix it in post! Ideas and discussions welcome/needed on…
Counter::Value
holds the reconciled value of the counter. I'm not overly happy with this name, especially as it has a value column and Value#value sounds daftCounter::Change
holds the changes pending/made to the counter value. AValue has_many :changes
but this clashes with the Railschanges
method. It's currentlyValue has_many :updates
but it might be nice to resolve this early onCounter::Counters.counters.find_counter
😬 Not sure about thefind_counter
method on the association but I couldn't think of another name… (but also it's dangerously/hilariously close toCounter::Counters.counters.counter
Counter::Countable
🤷♂️ probably okCounter::CounterConfig
isn't the right thing but I think this struct should be a first-class object and perhaps mixed-in to Counter::Value?Counting
is model doing the counting, a.k.a the parent model, e.g. a store;Countable
is the thing which is counted, e.g., an order