this post was submitted on 20 Mar 2024
714 points (100.0% liked)

Programmer Humor

23025 readers
1645 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
714
CSS (i.imgur.com)
submitted 1 year ago* (last edited 1 year 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] 51 points 1 year ago (11 children)

It's really not, though. This is only true if you're bad at CSS, which basically can be said about anything.

[–] [email protected] 9 points 1 year 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] 1 points 1 year 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.

load more comments (9 replies)