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 trialThomas Carson
608 PointsCommenting section is confusing to follow
Nick starts out saying that comments are easy, which they are.
- He adds some preliminary comments..OK
- Then he changes his mind and rearranges... OK
- Then he adds some more comments.. OK
- Then he changes his mind again & rearranges again...Huh??
- Then he says it is OK to add your own unique comments...OK
- Then he says that adding your own comments may goof up the web page because of the cascading nature of CSS...Why is he repeating this warning??
At the end of the section, I spend a hugh amount of time to make my MAIN.CSS follow Nick's example. However, I don't feel confident about the outcome. It would be better if Nick left out the "do over" sections.
1 Answer
Vlatko .
2,526 PointsHonestly, if you're able to understand the code and how it works, comments are unnecessary. The only time I would use comments would be if I had to explain something in the code, and only if I were handing it over to another developer who would be looking at it.