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

Programmer Humor

19594 readers
574 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 1 year ago
MODERATORS
699
CSS (i.imgur.com)
submitted 8 months ago* (last edited 8 months ago) by nullPointer@programming.dev to c/programmer_humor@programming.dev
 

easy to get into trouble for sure.

you are viewing a single comment's thread
view the rest of the comments
[–] gofsckyourself@lemmy.world 35 points 8 months 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.

[–] BassTurd@lemmy.world 9 points 8 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.

[–] griD@feddit.de 0 points 8 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.

load more comments (9 replies)