702
CSS (i.imgur.com)
submitted 9 months ago* (last edited 9 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
[-] SuperSpruce@lemmy.zip 6 points 9 months ago

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 7 points 9 months ago* (last edited 9 months ago)

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

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

[-] SuperSpruce@lemmy.zip 3 points 9 months ago

When did CSS become Turing complete?

[-] Cwilliams@beehaw.org 7 points 9 months ago
[-] phoenixz@lemmy.ca 2 points 9 months ago* (last edited 9 months ago)

Some guy has too much free time if you ask me

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

[-] csm10495@sh.itjust.works 1 points 9 months ago

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

[-] SuperSpruce@lemmy.zip 1 points 9 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().

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

Programmer Humor

19809 readers
160 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