Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Style Guide: Naming Observable variables with $ #2039

Closed
jbalbes opened this issue Aug 5, 2016 · 3 comments
Closed

Style Guide: Naming Observable variables with $ #2039

jbalbes opened this issue Aug 5, 2016 · 3 comments

Comments

@jbalbes
Copy link

jbalbes commented Aug 5, 2016

There is a convention out there to always name variables that are observables with a $ at the end. Is this something that the style guide should take a stance on, and if so, what should it be?

@jbalbes
Copy link
Author

jbalbes commented Aug 5, 2016

Using the language of the style guide, I would put this as a 'consider'. Anyone feel more strongly either way and if so, why?

@wardbell
Copy link
Contributor

wardbell commented Aug 9, 2016

We do not recommend the $ suffix. It smacks of Hungarian notation. But neither do we wish to prohibit it. A deliberate silence is our course ... for now.

@wardbell wardbell closed this as completed Aug 9, 2016
@kylecordes
Copy link

I have nothing against the Hungarian people, but I also loathe Hungarian notation... It reminds me of the super-bad super-old days, when I first learned BASIC in 19xx and had to put $ at the end of string variable names. Never again. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants