Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@lemmy.ml · 2 years ago

What do you think guys

history-computer.com

external-link
message-square
22
link
fedilink
53
external-link

What do you think guys

history-computer.com

Sjmarf@sh.itjust.works to Programmer Humor@lemmy.ml · 2 years ago
message-square
22
link
fedilink
SQL vs. CSS What’s the Difference? Which Is Better?
history-computer.com
external-link
A closer look at the differences between SQL and CSS. These two programming languages are common, but how are they used?
alert-triangle
You must log in or register to comment.
  • lelgenio@lemmy.ml
    link
    fedilink
    arrow-up
    46
    ·
    edit-2
    2 years 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);
    
    • lelgenio@lemmy.ml
      link
      fedilink
      arrow-up
      43
      arrow-down
      1
      ·
      2 years ago
      .users {
        id: int !primary-key;
        name: text;
      }
      
      .users::insert {
        id: 1;
        name: "John doe";
      }
      
      @query (max: 10) {
        .user {
          display: table;
        }
        .users id {
          display: none;
        }
      }
      
      • __init__@programming.dev
        link
        fedilink
        arrow-up
        18
        ·
        2 years ago

        Thanks, I hate it.

      • moebius@feddit.de
        link
        fedilink
        arrow-up
        13
        ·
        2 years ago

        They both feel so wrong, I love it.

        • Karfkengrumble
          link
          fedilink
          arrow-up
          8
          ·
          2 years ago

          I think I need to lie down.

    • jelloeater@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Your browser does not support playing HTML5 video. You can download a copy of the video file instead.

  • pooberbee (they/she)@lemmy.ml
    link
    fedilink
    arrow-up
    42
    ·
    2 years 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
      12
      arrow-down
      1
      ·
      2 years 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

    • Techognito@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      I have also heard some say “school”

      • inspxtr@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        i’m leaning towards “skull” tho

        • Techognito@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          “I dropped a table with skull”

          it has a nice ring to it

  • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
    link
    fedilink
    arrow-up
    29
    ·
    2 years 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!

  • flashgnash@lemm.ee
    link
    fedilink
    arrow-up
    20
    ·
    2 years ago

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

  • Seasm0ke@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    2 years ago

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

  • froh42@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    2 years ago

    Is this chatGPT generated?

  • RagingNerdoholic@lemmy.ca
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 years ago

    Filing cabinets or oil paints? Which is better?

    • Dr Cog@mander.xyz
      link
      fedilink
      arrow-up
      4
      ·
      2 years 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

  • MasterBlaster@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    O.o

  • Yer Ma@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    C

    Ss

    Of cour

    Se

  • Renacles@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    What in the actual fuck

  • MashedTech@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Obviously CSS

  • froh42@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    deleted by creator

  • ShaunaTheDead@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

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

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 129 users / day
  • 798 users / week
  • 1.69K users / month
  • 10.1K users / 6 months
  • 132 local subscribers
  • 35.6K subscribers
  • 1.7K Posts
  • 36.5K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org