Hacker News new | ask | show | jobs
by lopatin 4052 days ago
Oh this is definitely a personal preference thing, but our convention is this: private instance methods start with an underscore, public instance methods have no underscore. Public ones have no syntactic difference from the core life cycle methods but that's ok to me because they're all easy to remember. Btw we use public instance methods very sparingly, basically as a last resort when all else fails.
1 comments

Awesome. Thanks again for the write up. I love reading well written Javascript.