4 ms·
> In what situation would a code base use fooBar and foo_bar as two different identifiers meaning two completely different things? You don't. It's a terrible i
by duaneb 12y ago
> In what situation would a code base use fooBar and foo_bar as two different identifiers meaning two completely different things?
You don't. It's a terrible idea to mix naming conventions.
> amyAtePizza has the same meaning as amy_ate_pizza.
WHY?! What possible benefit could it have? Why would you be mixing styles in the first case? Why can't you just remember which style hopefully your entire code base uses?
- dom96 12y agoI wouldn't mix styles inside my own code base. But what if I am using somebody else's library which uses a different style? The benefit is that I can then use the style I have been using in my code base to call the functions in that library without mixing naming conventions.
- Dylan16807 12y agoI hope you never move code between different code bases, then. Wouldn't it be a lot simpler to have a single style?