Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Awlex182758yIn such situations like I use a (ridiculous) method my teacher often uses.
MyClassCreatedToDoTaskXInThisExample
Yes, I'm german. How did you guess? -
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. -
@-FLX These names seems like Doofersmith(Phineas & Ferb)'s weapons names. Are you him?
Losing 1 hour everytime I must name a class that create something.
- ThingGenerator ?
- ThingBuilder ?
- ThingCreator ?
- ThingFactory ?
- ThingCrafter ?
- ThingMaker ?
- Thinger ?
FFFUUUUUUUUUUUUUUUUUUUUU
undefined
naming procrastination