Reputation: 451
For example; I have a function named that;
int ReadEncoderSpeedRPM_ ( int channel );
I want to divide it into left and right. But short of Revolutions Per Minute at the end, restricts me from that kind of renaming;
int ReadEncoderSpeedRPML_ (void);
int ReadEncoderSpeedRPMR_ (void);
It irritates, other Posible renames;
int ReadEncoderSpeedRPM_L_ (void);
int ReadEncoderSpeedRPMl_ (void);
int ReadEncoderSpeedRPMl_ (void);
int ReadEncoderSpeedRpmL_ (void); // My Favourite but I think I'm losing Acronym...
int ReadEncoderSpeedrpmL_ (void);
Which one (or another one) is most recommended, suggested, and Why?
Upvotes: 4
Views: 265
Reputation: 12458
I would prefer a naming like that
int ReadEncoderSpeedRpmLeft (void);
int ReadEncoderSpeedRpmRight (void);
In my opinion it is more readable if you don't use an abbreviation for Left and Right.
Upvotes: 1
Reputation: 728
According to this post, it looks like int ReadEncoderSpeedRpmL_ (void);
seems like the right option.
Upvotes: 3