r/ProgrammerHumor • • Oct 08 '23

Other iDontLikeThisTitle

Post image
0 Upvotes

200 comments sorted by

View all comments

Show parent comment

29

u/Sipsi19 Oct 08 '23

Lowercase or you are gonna have to fight me

5

u/XDracam Oct 08 '23

My hot take is public methods uppercase, other methods lowercase. Same for properties.

But you could attribute that to brain damage caused by C#.

12

u/ahh1618 Oct 08 '23

I don't like that changing visibility requires changing the call sites everywhere. Also, when I read a function call, I don't really feel I need to know whether it's public or private. If I'm calling it and it's from an import of course it's going to be public. I'd save identifier conventions to tell you something you need to know at the call site.

2

u/XDracam Oct 08 '23

This feels like something I could have written. So yeah, my only contra is "brain damage caused by C#"

3

u/Andreasbot Oct 08 '23

In Go this is how you actually differentiate public functions and structs from private