Which is better way to name the variables and why do you use like that?
-
example : device_status or deviceStatus
-
Answer:
I personally avoid underscores, it's kind of ... You must be signed in to read this answer.Connected to GoogleConnected to FacebookBy continuing you indicate that you have read and agree to the . Loading account...Complete Your ProfileFull NameChecking...EmailChecking...PasswordChecking...By creating an account you indicate that you have read and agree to the .
Anonymous at Quora Visit the source
Other answers
Depends on what I am coding in. If it's C or C++, I'd go for this_any_day, because it would blend in better with the library method names that are mostly in snake_case. For the same reason, I would never use anything other than the good ol' lowerCamelCase in Java.
Praveen Sampath
i_use_this_cuz_its_readable
Karan Goel
Related Q & A:
- Blu-ray or HD DVD? Which is better and why or are they the same?Best solution by Yahoo! Answers
- Which is better way to experience Hawaii?Best solution by Yahoo! Answers
- Which is better college life or campus life and why?Best solution by Yahoo! Answers
- Which is better and why, Blackberry Pearl Flip or Curve 8530?Best solution by ChaCha
- Which is better for hard use apllications and wear resistance or holding an edge S30v or d2 steel?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.