Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:15:26+00:00 2026-06-07T13:15:26+00:00

We just had a discussion wether to use a present or a past form

  • 0

We just had a discussion wether to use a present or a past form for event names. Fact is, the events get usually trigger after something happened:

store.save(object)
store.trigger("create", object)

I’m wondering if there is any convention for event naming? It would make more sense to use the past form, on the other side I’ve the impression that using the present form is used more widely.

Are there any good resources on this subject? Are you aware of known JavaScript libraries that use the past form for its events?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:15:29+00:00Added an answer on June 7, 2026 at 1:15 pm

    I would go with present tense.

    Most, if not all, JavaScript frameworks seem to follow the convention set forth by the JavaScript DOM event API; i.e. to use present tense for event names. When I think about it, this seems most natural to me, despite the fact that events are handled after they are triggered. After all, the event is triggered on event name. Whatever action is performed which is cause to trigger the event, it happens in the current iteration of the event loop. In other words: as far as the event loop is concerned, the event and the action which triggers the event happen simultaneously.

    Some frameworks, such as YUI3, offer an after hook as well as an on hook for custom events. This distinction is put to use in YUI’s attribute library (amonst others):

    Listeners registered using the on method, are notified before the stored state of the attribute has been updated. […]

    Since these listeners are invoked before any state change has occurred, they have the ability to prevent the change in state from occurring […]

    Listeners registered using the after method, are notified after the stored state of the attribute has been updated.

    Source: http://yuilibrary.com/yui/docs/attribute/index.html#on-vs-after

    I’m not personally aware of any frameworks that use past tense for event names, but then I’m not familiar with all of them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just had a discussion at work about the merits of using PostgreSQL over MySQL
I just had an interesting experience with a startup form in MS Access 2010.
I just had a discussion with a coworker concerning code in header files: He
I've just had a discussion with a developer about naming classes in C#. My
I just had a discussion today with some coworkers about python's db-api fetchone vs
We do ASP.NET Development using Visual Studio. A discussion point we've just had is
We've just had a discussion with college about is the following style acceptable for
just had a general question about how to approach a certain problem I'm facing.
I just had an idea, is that possible to protect my java sources (packed
I just had the jQuery epiphany the other day and still feel like there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.