this post was submitted on 14 Aug 2023
608 points (92.6% liked)

Programmer Humor

32822 readers
297 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] WtfEvenIsExistence@reddthat.com 9 points 1 year ago (2 children)

Is this some highly sophisticated programmer humor that I'm too tech-illiterate to understand?

[–] judgeholden@hexbear.net 30 points 1 year ago (3 children)
[–] scottmeme@sh.itjust.works 10 points 1 year ago (1 children)
[–] starman@programming.dev 8 points 1 year ago (1 children)
[–] HumanPerson@sh.itjust.works 6 points 1 year ago (1 children)
[–] lemann@lemmy.one 7 points 1 year ago (1 children)
[–] vicfic@iusearchlinux.fyi 2 points 1 year ago (1 children)
[–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 1 year ago

Little diddy bout Jack and Diane

[–] Durotar@lemmy.ml 7 points 1 year ago

The real question is since when CSS is good?

[–] SnowdenHeroOfOurTime@unilem.org 0 points 1 year ago (1 children)

ITs NoT StRoNgLy TyPeD aNd Is ThErEfOrE gArBaGe

[–] starman@programming.dev 0 points 1 year ago (2 children)

Give me one advantage of language that isn't strongly typed

[–] kogasa@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Fluent polymorphism via duck typing. It's useful when you're treating objects as a collection of properties, and therefore it's not their type that matters but which properties they have. Types can still be used to label common collections of properties but it's less painful to talk about objects that are "like an X but with/without certain properties," or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification.

It's not a debate I care to have, I just think it's funny that people want to build websites but hate how websites are built.

[–] exscape@kbin.social 24 points 1 year ago (1 children)

CSS is used to create the design, basically the look (colors, layout and so on), but no substance.
JavaScript is used to implement code and logic.

HTML + JavaScript would typically (since you're supposed to use CSS to create colors and design) look very dull, thus the black-and-white Oppenheimer.

[–] rikudou@lemmings.world 0 points 1 year ago (1 children)

document.querySelector('.whatever').style.color = "red";

Don't recommend, though.

[–] exscape@kbin.social 2 points 1 year ago

Sure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as "inline CSS".