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 trial

General Discussion

Roadmap Question - CSS Foundations Second Edition

Why is best practices the last item on the list?

I get that instilling some practical skills is necessary but shouldn't best practice be first? As it may cover proper naming conventions, code hierarchy, page step-up, etc?

2 Answers

A section on coding practices, explicitly teaches things that have been passively sprinkled throughout the course.

After you've written a non-trivial program you gain a new appreciation for how code formatting and naming conventions can make it easier to troubleshoot issues.

It also makes it easier for the person coming after you (or yourself a few months later) to understand the logic of the code.

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Patrick,

The reason it's at the end is because I didn't want to go into many of the granular details & approaches without having covered the foundations and core features.

Like @James mentioned, many of the topics & different approaches covered in "Best Practices" will be appreciated best at a later stage in the learning process.

It's kind of tough learning about OOCSS / SMACSS, performance & efficiency, etc... without having experienced writing a single CSS rule.

This wraps things up nicely and will lead-in to the next Deep Dive, which will cover a rather lively & bold preliminary kind of processing :)