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
AddToCalendarViewandcanAddToCalendar- Avoids “Event” naming conflict
- Reads naturally
I ended renaming to:
AddHotelReservationToCalendarViewAddTicketToCalendarViewAddEventToCalendarView
Buy me a coffee?
Thank you for reading! If you found this useful, consider supporting my writing and indie app work with a small one-time donation through Buy Me a Coffee. Thanks!