Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on sh.itjust.works

30 replies

lemmy.ml
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);
47
lelgenioreply
lemmy.ml
.users {
  id: int !primary-key;
  name: text;
}

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

@query (max: 10) {
  .user {
    display: table;
  }
  .users id {
    display: none;
  }
}
44
lemmy.ml

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.

43

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

11
zorroreply
lemmy.world

I like squeal. MS-squeal, my-squeal

5
xmunkreply
sh.itjust.works

Real programmers refuse to refer to MSSQL as anything except TransactSQL or TSQL because 1) MSSQL is a fucking mouthful whether you prefer Sequel or ess-cue-el and 2) because those assholes named their RDBMS SQLServer thud leading to the constant confused "How is the SQL server doing?" 'SQL Server? We're not a Micro$oft shop..."

The real complex one is whether you're a postgre-ess-cue-el, postgres-cue-el, postgres-ess-cue-el, postgre-sequel, postgres-equal or postgres-sequel aficionado... and if you enjoy postgres-equal please fucking leave now.

1

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!

30

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

20

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

4

You reached the end