Skip to content

Instantly share code, notes, and snippets.

@bjhomer
Last active December 28, 2015 08:59
Show Gist options
  • Save bjhomer/7475191 to your computer and use it in GitHub Desktop.
Save bjhomer/7475191 to your computer and use it in GitHub Desktop.
Naming things is hard

Naming things is hard

So let's work together

Instead of having one controller object that does everything, I've been trying to split things out into various task-focused. This means I have to come up with names for these objects, such as "CoverAnimationDriver", etc. Naming things is hard, so I want your help. Aside from domain-specific bag-of-properties model objects, what nouns have you used in class names? In my experience, these are usually used as a suffix on the class name.

Here's what I've come up with so far:

  • View
  • Controller
  • Manager
  • Data Source
  • Driver
  • Strategy
  • Processor
  • Provider

I'd love more ideas. Comment below.

@bjhomer
Copy link
Author

bjhomer commented Nov 14, 2013

Motivating example: What would you call an object that attempts to fill in missing or lost data in a Foo object? FooRepairer? FooRepairShop? FooCompleter?

@nwalter08
Copy link

-API (I'm always back and forth on whether or not this is a good name. Currently I'm not in favor of it but I felt I should mention it because I've used it a lot.)
-Maker

@CodaFi
Copy link

CodaFi commented Nov 14, 2013

In one project alone:

-Index
-Banner
-Cache
-(Map)Table
-ViewModel
-Hub
-Operation

@heneryville
Copy link

Normalizer
-ery as in a manager of model binders would be a Bindery
Dispatcher
Executer
Workflow

@markmelville
Copy link

Factory
Collection
Data
Info
Context
Options
Result

@heneryville
Copy link

Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment