4 ms·
>Snake notation is also easier to read, especially if the name contains many words in it. Of course in the end it's a matter of preference. Exactly. It's matte
by romanovcode 13y ago
>Snake notation is also easier to read, especially if the name contains many words in it. Of course in the end it's a matter of preference.
Exactly. It's matter of preference. I can read TextLikeThis much easier than text_like_this. Granted I've been developing in C# for past few years so that's likely the reason.
- yoklov 13y agoI don't have a strong opinion either way (I probably like snake case more, but use camel/pascal case basically everywhere) but this doesn't work as well when acronyms are involved. e.g. is it XmlParser or XMLParser? I'd say the latter, but someone else might disagree. I think there are more ambiguous examples, but cant think of them.
- romanovcode 13y ago> is it XmlParser or XMLParser? MS standards says that if shortened letter combination is longer than 2 words than it's lowered, otherwise everything is uppercase. e.g. XmlParser, IOStream But again, everyone can create their own standard and be happy. The only problem occurs when you work with 10 people and everyone is sticking to his own style.
- yoklov 13y agoNot every API is that consistent. JavaScript's `XMLHttpRequest`, for example...
- shmerl 13y agoIt's a matter of preference, however it's not a subjective thing that reading the text without spacing between the words is slower. There are tests which measure such speed.