Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDeividas Strioga
12,851 PointsColumn naming change
I have noticed that in this database course column names are TitleCased whereas in previous courses column names were lower_case_with_underscores. Is there a reason why it has changed? What about style recommendations? By googling I have only found different opinions.
2 Answers
Derek Gannon
Courses Plus Student 1,140 PointsPersonal preference is what I have been told in the past. Underscores IE <statement_statement> seem to be more efficient if you are working with directories within a command line interface.
Christian Andersson
8,712 PointsThere is really no right or wrong way of doing it. You could use CamelCase or underscores or any other method that you see fit. Use whatever you prefer.
I believe people tend to use underscore, but again, both are perfectly valid.
Specifically why it's different in some courses on Treehouse is something I couldn't answer. Perhaps the courses were made by different mentors?
Mark Westerweel
Full Stack JavaScript Techdegree Graduate 22,378 PointsJust a guess, but I would argue someone with a JS/C background is leaning towards camelCase where a Python/Ruby dev will just go all-out with snake_case