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

Programmer Humor

421 readers
19 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
390
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.

top 10 comments
sorted by: hot top controversial new old
[–] onlinepersona@programming.dev 38 points 8 months ago

flexbox made things so much easier, but still hard. There are just too many rules to keep in your head about display and position and how they affect other attributes. And the box model... wow. margin, border, padding, content, but he attribute is box-sizing and it has border-box and content-box, but not the others.

IINM it was written by people who came from print media (just like HTML) and that stuck.

CC BY-NC-SA 4.0

[–] cupcakezealot@lemmy.blahaj.zone 5 points 8 months ago

i hate that i understand this

[–] SuperSpruce@lemmy.zip 3 points 8 months ago (1 children)

Out of the 3 main web languages I use to develop my games (HTML, CSS, and JavaScript), CSS is definitely my least favorite.

HTML is relatively simple and understandable such that bugs rarely get introduced into my HTML code.

JavaScript, while janky and not known for good performance, will work without too much trouble compared to other languages (I'm looking at you, C++). No segfaults, effortless type casting, intuitive syntax, and debugging is fairly easy. Worst part is editing HTML and styles with JavaScript, it just feels clunky, to both the programmer and the CPU.

And then there's CSS. Despite being a language dedicated to making things look pretty, it's just an unintuitive list of properties on HTML classes. So many times it takes way too long to do a simple thing like center text in a div when there is other text that is meant to not be centered. But I guess I'm not using it to its fullest potential, as I recently came across an article that listed many pretty graphics, often animated, that was purely made using CSS.

[–] GroteStreet@aussie.zone 6 points 8 months ago* (last edited 8 months ago) (1 children)

Me in the late 90s: CSS is not a language!

Today: Holy crap, it's now Turing-complete.

[–] SuperSpruce@lemmy.zip 3 points 8 months ago (1 children)

When did CSS become Turing complete?

[–] Cwilliams 7 points 8 months ago (1 children)
[–] phoenixz@lemmy.ca 2 points 8 months ago* (last edited 8 months ago)

Some guy has too much free time if you ask me

I mean it's awesome, but seriously, too much free time...

[–] Hammerheart@programming.dev 3 points 8 months ago

I am struggling with using flex for the first time and holy cow do i feel this

[–] mark@programming.dev 1 points 8 months ago

Yeah, because anything that isn't a big new JavaScript framework is just way too complicated

[–] Draconic_NEO@programming.dev 0 points 8 months ago

Totally agree with this. I was trying to do CSS theming on my personal website on SDF to try and make it look nicer but I gave up and just went without it because it never worked right. It's a crappy website anyway with a lot of problems (doesn't have correct margins so on anything outside specific resolutions it looks wonky).