3 ms·
If it is something that models a real-world thing, give it the real-world name, generally. If it doesn't, it may model a well-known software pattern. Check out
by dolni 4y ago
If it is something that models a real-world thing, give it the real-world name, generally.
If it doesn't, it may model a well-known software pattern. Check out the list at https://en.wikipedia.org/wiki/Software_design_pattern https://en.wikipedia.org/wiki/Software_design_pattern.
You might call a factory that produces Foo objects a FooFactory. Or a proxy to Foo objects a FooProxy.
If it doesn't fit either of the above cases, don't sweat too much. Give the thing an accurate name that describes what it is or what it does. Sometimes consulting a dictionary or thesaurus can help. You can always rename it later.