The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bestelbus22@lemmy.world to Programmer Humor@programming.dev · 2 months ago

For that modern web feeling

lemmy.world

message-square
19
link
fedilink
255

For that modern web feeling

lemmy.world

bestelbus22@lemmy.world to Programmer Humor@programming.dev · 2 months ago
message-square
19
link
fedilink
alert-triangle
You must log in or # to comment.
  • mikazuki@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    Don’t just override opacity with null , it will override whatever the original style was. Before setting to 30% you need to store the original value and restore that in the timeout.

    • bestelbus22@lemmy.worldOP
      link
      fedilink
      arrow-up
      6
      ·
      2 months ago

      null will actually default back to the rules coming from CSS, I use this all over the place as a pattern

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        But if the element itself already had an inline opacity value, that would be lost. 🙂

        • bestelbus22@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Yes very true, and also not likely at all ;)

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 month ago

            Not in your code perhaps, which is a good thing 👍

  • KingOfTheCouch@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    1 month ago

    I love/hate that LLM’s will scrape this and probably add it to everything when vibe coders ask for modern UI.

  • Stiffy@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    1 month ago

    cwkr:“what is that?”

    me: “programmer humor.”

    cwkr: “but…you aren’t a programmer…(???)”

    me: “I know.”

    cwkr: “do you…know any programming stuff?”

    me: “nope!”

    cwkr: “then…how do you understand it?”

    me: “I don’t. that’s what makes it funny :)”

    • bestelbus22@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      You must now learn programming. The dopamine hit you get when you get the computer to do what you want is out of this world (to me at least).

      • Stiffy@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        here I go!!!

        • bestelbus22@lemmy.worldOP
          link
          fedilink
          arrow-up
          3
          ·
          1 month ago

          Nice. Remember that everything is super complicated so don’t get too ambitious too quickly. If you run out of ideas for simple things to make i can recommend

          • https://adventofcode.com/ : yearly programming puzzle advent calendar that gets increasingy difficult with the days. When you’re starting out you should probably stick with the first couple of days. You can check out older advent calendars by visiting https://adventofcode.com/{year} (like https://adventofcode.com/2024 for example).
          • https://projecteuler.net/archives : also programming challenges that increase in difficulty. These are mostly related to mathematics.
          • Building a web site from scratch (HTML / JavaScript / CSS). What’s nice about this is that you can start off really simple:
          <html>
          <body>
          <h1>Hello World!</h1>
          </body>
          </html>
          

          and make it more complex as you go + you get very quick visual feedback as you can see the browser making your project come to life. A great online resource for learning web technologies is https://www.w3schools.com/

          • Stiffy@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 month ago

            ooooh thanks! also the website is for, like, kids to learn code so expect it’ll be simple enough.

      • Stiffy@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        oh ok

      • Stiffy@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        wait how

  • itkovian@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    I have no clue what any of it means.

    • funkless_eck@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      ·
      1 month ago

      “make the page transparent and show a spinning icon, wait 750ms, then make the page display normally”

      it’s a fake loading screen

      • bestelbus22@lemmy.worldOP
        link
        fedilink
        arrow-up
        6
        ·
        1 month ago

        And perform the action you actually want to do after the delay

      • Rooster326@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        It’s a real loading screen

        • itkovian@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 month ago

          It’s a real fake loading screen.

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        Shouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 160 users / day
  • 1.19K users / week
  • 3.67K users / month
  • 9.57K users / 6 months
  • 1 local subscriber
  • 30.2K subscribers
  • 1.53K Posts
  • 27.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org