this post was submitted on 20 Mar 2024
699 points (97.3% liked)

Programmer Humor

19821 readers
884 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
699
CSS (i.imgur.com)
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

easy to get into trouble for sure.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 9 points 9 months ago (1 children)

As someone that has gone through some of the available online tutorials like freecodecamp, and has no real world experience, especially in a team setting, I think I agree with you. I wouldn't say it's hard, but I do feel it's unnecessarily complicated in some areas. Some naming conventions are unintuitive, the cascading inheritance can get confusing especially with multiple hands working on something, and from my experiences, there's minimal if any effort put into best practices, so everyone does things a little different.

[โ€“] [email protected] 0 points 9 months ago

Pff, just define your own cascade with @layers :)

Best advice I can give: Don't use CSS directly, use a pre-processor like SASS/SCSS. It really helps keeping things sane and somewhat organized.