Nick Vaccaro
Nick Vaccaro

Reputation: 5504

What is this naming convention?

I am looking through code that has multiple naming conventions from multiple developers - a real treat. Amongst them are Hungarian ("s_year", "s_day") as well as this other style ("yearS", "dayS").

Does anyone know what this style is called? For bonus points, do you know where/when it originated?

Disclaimer: Bonus points are hypothetical and awarded on a per-request basis only. Please give 5-12 weeks for delivery.

Edit: I would like to add that there is a third notation ("sYear", "sDay") in the same file. It's the hat trick of naming conventions!

Upvotes: 5

Views: 470

Answers (3)

codefool
codefool

Reputation: 331

It's likely it's not a notation at all - quite often [lazy] programmers will have a need for a unique variable where a similar one is already in scope - hence they needed another holder for a 'year' and 'year' was already taken so they opted for 'yearS'. If it's any notation at all, it would be to stand out in its blecherousness as a reminder to change it to something meaningful in the future (which never came. Mwahahahaha!)

Upvotes: 1

Toon Krijthe
Toon Krijthe

Reputation: 53366

This is an perfect example of either no naming convention, or of a frequently changed naming convention. Unfortunately, I have seen this quite a lot.

Upvotes: 2

Stu
Stu

Reputation: 15769

It is called "lobotomized notation". It was invented by R. P. McMurphy.

Upvotes: 1

Related Questions