Skip to main content
Post Locked by CommunityBot
Post Migrated Away to programmers.stackexchange.com by bmargulies, Petar Minchev, Kev, Arnold Spence, Richard
Post Closed as "off topic" by bmargulies, Petar Minchev, Kev, Arnold Spence, Richard
edited tags
Link
skaffman
  • 404.6k
  • 96
  • 825
  • 775
Source Link
Eastern Monk
  • 6.7k
  • 9
  • 50
  • 62

Is it good idea to write variable names that match application specific terms?

Let us say I am writing a Facebook like application.

I write code like below

$this->get_user_friends(); 

then next morning the boss says that we don't want to call Friends friends anymore, we will call them Pal.

Then all the templates are changed but what about the code above? After 2 years when some programmer will have to look into it he is likely to get confused isnt it ?

What do you guys really do ?