Computer, rename this for me

One use case for LLMs that I’ve found to be effective and reliable has been naming things.

A recent example:

I had some views that were used for adding an event to the iOS Calendar like HotelReservationEventView and TicketEventView. I wasn’t entirely happy with this suffix, but it worked fine until I wanted to add a similar view for the project’s own Events feature. I wasn’t going to name it EventEventView!

Help me, computer:

Help me think of better names for HotelReservationEventView, TicketEventView

The “event” part is conflicting with our own Event naming in our project, I want to add another view for events but that would make it EventEventView

Cursor’s response:

RECOMMENDATION

(Add[Entity]ToCalendarView):

  • Clear action (adds to calendar)
  • Consistent with AddToCalendarView and canAddToCalendar
  • Avoids “Event” naming conflict
  • Reads naturally

I ended renaming to:

  • AddHotelReservationToCalendarView
  • AddTicketToCalendarView
  • AddEventToCalendarView