• pooberbee@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    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.

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      9 months 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

  • lelgenio@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago
    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);