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

HTML

Konrad Pilch
Konrad Pilch
2,435 Points

HTML Requests Trello

Hi there!

HTML Trello Board

TAGS FROM TRELLO : Guil Hernandez , Andrew Chalkley , Dave McFarland .

I was looking on HTML and i had an idea, since HTML is straight forward, theres one point thats not . Naming . Naming things correctly . I allways code sites and i think what should i call this, what are the best practices to do this, a book of names? So if i use e.g panel, or movies as movie in PHP, this are appropriate names , in that way .

What do you think ? :)

1 Answer

If I were a Treehouse teacher I'd be very hesitant to make recommendations one way or another when it comes to naming things.

Naming conventions like camelCase, underscores/hyphens, singular/plural, etc. is fine (and sometimes built into each programming/scripting/markup language), but there's just too many variables to make a call on what something should be called.

Some words even mean different things in different parts of the world, or are spelled differently (between US/UK English) and some words only have any useful meaning for some period of time (we can all hope 'selfie' will eventually disappear).

Things become even more complicated when you're creating custom HTML elements using front-end frameworks like Angular or things like Web Components.

Hope I didn't come across as being too negative. I totally agree that it's not very straight forward! I think that's why frameworks like Bootstrap and Foundation are so popular — you don't have to think of the names, they've done it for you! :)

Konrad Pilch
Konrad Pilch
2,435 Points

Yes , sure! Now you have to delete the rest of bootstrap ^^ which i think it would be easier to just name stuff ^^ They have build in names like class="well" etc.. but what i mean, they can give an idea, or they can teach us how to name something good way, maybe when its a good way to use -this- sybmol, maybe when its good to use camelcase instead of other way etc..

But i do get what you mean. You having some kind of basics , i think it would be still good . Even if that in different language.