• Stiffy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    5 months 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
      1
      ·
      5 months 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).

        • bestelbus22@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          ·
          5 months 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/

  • sunbeam60@feddit.uk
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    5 months ago

    It drives me bonkers! The browser already has a way to display loading and it’s even respectful of back buttons.

    I get that in a select few cases, for real time content, it makes sense to handle the loading inside the page. But if all you’re doing is displaying an article, I don’t need you to load a framework page that then loads the content. Just load the content.

    • bestelbus22@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      You mean like when an HTP request is not completely fulfilled? Is there an API for this “native” loading display of the browser?

      • 3abas@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        They mean the browsers page loading status. They’re saying if your content is static, it should be static or loaded in the page document through a CMS, not through an asynchronous call to an api after the page and js framework and load.

      • cally [he/they]@pawb.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        perhaps i too will post code on the internet

        here is a shell script i wrote for automating filenames for markdown files (blog posts):

        code
        #!/bin/sh
        set -e
        
        datecmd="date +%Y-%m-%d"
        
        if [ -z "$1" ]; then
          printf "Post title: " >&2
          read -r title
        else
          title="$1"
        fi
        
        file="$($datecmd)_$title.md"
        
        if [ -f "$file" ]; then
          printf "Error: post '$file' already exists.\n" >&2
          exit 1
        fi
        
        ${EDITOR:-nano} "$file"
        

        im not sure why i made it since i could just look at what date it is and write it down manually in the file name, but i felt like doing that as a quick hack