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

Programmer Humor

19593 readers
465 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
701
CSS (i.imgur.com)
submitted 8 months ago* (last edited 8 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] 6 points 8 months ago (2 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.

[–] [email protected] 1 points 8 months ago (1 children)

.. effortless casting could be a negative depending on who ya ask.

[–] [email protected] 1 points 8 months ago

I'm of the opinion that it's a positive. Often I use "string" + number to access HTML elements and it just works. I can even use it to concatenate arrays.

Meanwhile, when I try to debug in C++ with cout statements, half the time it doesn't even do anything even though I use std::to_string().

[–] [email protected] 7 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.

[–] [email protected] 3 points 8 months ago (1 children)

When did CSS become Turing complete?

[–] [email protected] 7 points 8 months ago (1 children)
[–] [email protected] 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...