Method declaration

Whats the c++ pattern to naming methods? Camel case for everything?
I'd say whatever is readable, first and foremost.

Pick a style, no matter what it is, and use it consistently in your code.
Consistency is paramount, but before you go and decide what you like, be aware that business concerns trump personal preference.

That means that if you are writing code for an employer, use the employer’s style. Life will be much easier without the regular beat-downs.

For your personal stuff, if you are writing for an organization (say, adding to an open source project or something), use that organization’s coding style.

For your own personal stuff that doesn’t interface as part of any other project, feel free to use your own style — within limits. Don’t be a coder no one can understand.

I personally prefer snake_case for stuff.
Topic archived. No new replies allowed.