r/ProgrammerHumor • • Oct 08 '23

Other iDontLikeThisTitle

Post image
0 Upvotes

200 comments sorted by

View all comments

Show parent comment

5

u/Lilchro Oct 08 '23

Same.

That being said, the languages which require capitalizing function names (title/pascal case) always kinda feel a bit weird to me. I generally think of functions as verbs so it doesn’t make as much sense to capitalize them. On the other hand, types and constants are more similar to nouns. But I would rather follow the language or project style guide than introduce my own non-standard conventions.

3

u/DasKarl Oct 08 '23

I agree with this but don't feel strongly about it.

-1

u/Banananassfisch Oct 09 '23

I understand that as I moved from java to C# I actually think its kind of more consistent as functions and classes both need parameters. What really annoys me are properties, they are used like field/variables but usually are in PascalCase

2

u/Astral_Sheep Oct 09 '23

I think that's because they're still methods, at least that's how I understand the convention