this post was submitted on 29 Sep 2023
54 points (82.9% liked)

Programmer Humor

32453 readers
1022 users here now

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

Rules:

founded 5 years ago
MODERATORS
all 32 comments
sorted by: hot top controversial new old
[–] [email protected] 48 points 1 year ago* (last edited 1 year ago) (2 children)
CREATE TABLE display (
    id INT PRIMARY KEY,
    display_property TEXT
);

INSERT INTO display (id, display_property)
VALUES
(1, 'block'),
(2, 'inline-block'),
(3, 'flex');

CREATE TABLE divs (
    id INT PRIMARY KEY,
    inner_html TEXT,
    display INT REFERENCES display(id)
);

INSERT INTO divs (id, inner_html , display)
VALUES
(1, 'div1', 1),
(2, 'div2', 2),
(3, 'div3', 3);
[–] [email protected] 44 points 1 year ago (2 children)
.users {
  id: int !primary-key;
  name: text;
}

.users::insert {
  id: 1;
  name: "John doe";
}

@query (max: 10) {
  .user {
    display: table;
  }
  .users id {
    display: none;
  }
}
[–] [email protected] 18 points 1 year ago

Thanks, I hate it.

[–] [email protected] 15 points 1 year ago (1 children)

They both feel so wrong, I love it.

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

I think I need to lie down.

[–] [email protected] 43 points 1 year ago (3 children)

I prefer SQL, because you can pronounce it "sequel" or "es-cue-ell", and it's fine. CSS just doesn't have that kind of flexibility as a language.

[–] [email protected] 11 points 1 year ago

CSS also pisses me off because it clearly doesn't cascade... to contrast SQL is a language, it is used for querying... and it's structured horribly. Please for the love of God let me FROM foo WHERE bar SELECT baz

[–] [email protected] 6 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

"Ksssss"

That's what I sound like whenever I have to tackle that bag of snakes.

[–] [email protected] 5 points 1 year ago (3 children)

I have also heard some say "school"

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago)

Well, those people are maniacs

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

i’m leaning towards “skull” tho

[–] [email protected] 2 points 1 year ago

"I dropped a table with skull"

it has a nice ring to it

[–] [email protected] 30 points 1 year ago

Oh. Now I want one of these for every pairing. Vim vs Windows. Bubble Sort vs. SODIMM. The beauty is, with LLMs, I can have it! Enter two of any computer terms, and ChatGPT spits out a comparison. And why stop with computer stuff? Eukayryotic vs Republican! The War of 1812 vs The Kessel Run!

[–] [email protected] 20 points 1 year ago

I think the real question on all of our minds is which is better: JavaScript or megabytes

[–] [email protected] 18 points 1 year ago

Is this chatGPT generated?

[–] [email protected] 18 points 1 year ago

Having worked with tables in both I'm partial to French.

[–] [email protected] 15 points 1 year ago (1 children)

Filing cabinets or oil paints? Which is better?

[–] [email protected] 4 points 1 year ago

Tried to store documents in paint and it ruined the documents, 0/10

I'll let you know how my file cabinet art show goes

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

This is a pretty roundabout way of saying back-end vs front-end.

[–] [email protected] 2 points 1 year ago
[–] [email protected] 2 points 1 year ago

C

Ss

Of cour

Se

[–] [email protected] 2 points 1 year ago

What in the actual fuck

[–] [email protected] 1 points 1 year ago

Obviously CSS