Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nexion12738yI go camel case for most languages. Python I use all_lower_with_underscores. Not sure on C++.
-
It can be project specific. I've been involved in a Perl software used by thousands of libraries and they switched to camelCase.
Personal pref is camelCase since it's easier to write and read imo. -
I prefer camel case but I think the pep8 style guide for python suggests using_this_style any pythonistas back me up?
-
mito2468yInterested to see other people opinion.. I started using the most popular convention for CSS everywhere else. Variables likeThis, final variables LIKETHIS, and when a class inherits another one (works better in CSS) you do this: fatherClass_childName. Lastly, if the class is a variation (forgot the right name) from father class don't like: boxClass--blue.
-
kirie408yI wouldn't call a variable "open first file" at all, as it's a verb (or an action) and sounds like a function 😉
-
Nexion12738y@mito I would look into BEM (Block Element Modifier. Following that standard has made my stylesheets and markup so much cleaner.
-
Google's C/C++ coding style guide says to use underscores rather than camel case. But honestly, if your starting the project from scratch it's your call. Just make sure that when you touch other people's code, you respect the styles that they chose.
Related Rants
-
vimalvk917Friend : Hey bro I made an awesome program which shows your future wife's name. Me : Hey that sounds inter...
-
dimsumexception2So this guy passed large objects as function arguments directly instead of referencing. What a jackass. So the...
-
OrestH18I'm dreaming to send homework to my C++ programing lecturer full of strange #defines and make the code compila...
Calling C++ programmers, or probably any other language, is it bad practice for me to name a string "open_first_file" or should I camelCase it instead?
undefined
cpp