Losing 1 hour everytime I must name a class that create something.

- ThingGenerator ?
- ThingBuilder ?
- ThingCreator ?
- ThingFactory ?
- ThingCrafter ?
- ThingMaker ?
- Thinger ?


  • 1
    In such situations like I use a (ridiculous) method my teacher often uses.


    Yes, I'm german. How did you guess?
  • 0
    Builders and factories are different patterns, so knowing that you can not use their names interchangeably should help.

    After that, define a convention or use an already existing one. Most factories are just called SomethingFactory, so you can already drop SomethingCreator and all variations there of.

    To base your factory's name off the interface it returns also helps naming them.
  • 1
    Just bikeshedding. Implement, then refactor
  • 0
    I forgot Thingator.

    I made a Facturator once, had some success.
  • 0
    @-FLX These names seems like Doofersmith(Phineas & Ferb)'s weapons names. Are you him?
  • 1
    No, but he might have the same problem.
Add Comment