tags:

views:

213

answers:

9

I need to define a class that represents a real-life event -- like a "movie premier", "party", etc. I will be creating a set of DB objects to store the data for each event and define relationships with other data we have (e.g. venue, people, etc.).

The word "event" has different meaning in the context of software, so I'd like to name the class something other than "event".

Any ideas on another name?

This related post asks a similar question, but I think all of the suggestions lack creativity -- basically @event, the case-sensitive name Event or use the the old-school naming convention CEvent. Technically good solutions, but they don't help when discussing the data objects w/ peers (my speech & listening abilities are case-insensitive) and don't convey any information on how the class is not an event in the traditional use of the term.

+6  A: 

One option would be CalendarEvent, to make it obvious that this is a real-world event tied to a given date.

e.James
I agree, CalendarEvent makes the most sense IMO.
Gromer
SocialFunction :D That way you know it's something obligatory.
At this point it is going to be named MediaEvent. In the context of our product, all the events we deal with are celebrity events -- movie premiers, award shows, events with red carpets, filming on set of TV shows/movies, etc. We arrived at the name following the same basic principal that came up with CalendarEvent.
Adam Porad
Cool. I'm glad I was (somewhat) helpful :)
e.James
+2  A: 

Normally I'd recommend function, but it too has specific meanings in the context of software. ;)

Occasion might be a good synonym.

Reed Copsey
+1  A: 

Perhaps "Affair" or "Advent" -- you could also check the thesaurus:

http://thesaurus.reference.com/browse/event

Scott Anderson
+2  A: 

The thesaurus lists the following as synonyms of the word event:

accident, act, action, advent, adventure, affair, appearance, business, calamity, case, catastrophe, celebration, ceremony, chance, circumstance, coincidence, conjuncture, crisis, deed, development, emergency, episode, experience, exploit, fact, function, holiday, incident, juncture, marvel, matter, milestone, miracle, misfortune, mishap, mistake, occasion, occurrence, pass, phase, phenomenon, predicament, proceeding, shift, situation, story, thing*, tide, transaction, triumph, turn, wonder

Surely one of them would suffice... if not, you can prepend or wrap the word event to make it a non-keyword. Something like @event or [event] although, I have to say that I don't personally like this practice even though it is syntactically permissable.

BenAlabaster
The idea of writing Class Mishap makes me chuckle :)
e.James
I vote for calamity
Boo
Mistake wouldnt be bad either.
Boo
lol @ eJames, it's better than the first one here: http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
BenAlabaster
Haha true. I pray that no one ever feels the need to names a class after me in that way.
e.James
Me either, hehe :P
BenAlabaster
+2  A: 

Entry or EventEntry are probably what I would go with.

Boo
+2  A: 

I can appreciate you want to avoid confusion with events in the programming sense, but my take on it is that maybe you should go with the most obvious name; program to your domain, and things stay readable and easier to design and maintain.

Rob
While normally I would agree Rob, as a VB developer I would have to disagree in this case.Dim tEvent As Event = New EventI just can't go along with that from a readability standpoint. Obviously one can not Dim and Event, but being that Event has special meaning, you gotta think twice everytime you see that.
Boo
Adam Porad
+3  A: 

Activity come to mind.

Jim C
+1  A: 

How about Happening or Occasion?

Jeff Cuscutis
+1  A: 

You could call it a 'Rendezvous'. You could also just make up a word. If this is a key concept in your domain you could abbreviate one of the other suggested names. Things like:

  • CalenderEvent becomes Calvent
  • SocialEvent becomes Socent
  • RealWorldEvent becomes Revent
  • HumanActivity becomes HAct

Those quick examples might be terrible examples but they are short, don't collide with language or library names, and will become real meaningful words for you and your coworkers very quickly if you work with them frequently.

Brian Ensink