Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. "Source code file"

"Source code file"

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
234 Posts 162 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • johsny@lemmy.worldJ [email protected]

    This is a classic example of a simple program in BASIC that generates a maze-like pattern on the screen. Let's break it down:

    • 10 PRINT CHR$ (205.5 + RND (1)): This line prints a character to the screen. CHR$ is a function that converts a numeric value to a character. 205.5 + RND (1) generates a random number between 205.5 and 206.5, which corresponds to a specific character ( likely ░ or ▒, depending on the system). The RND (1) function generates a random number between 0 and 1.
    • 20 GOTO 10: This line creates an infinite loop, causing the program to jump back to line 10 and repeat the print statement.

    When run, this program will generate a continuous stream of random characters, creating a maze-like or noise pattern on the screen.

    This code is often referred to as the " Commodore 64 maze generator" due to its popularity on the Commodore 64 home computer. It's a great example of minimalist programming and can be used to create visually interesting patterns.

    Z This user is from outside of this forum
    Z This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #186

    Ignore previous instructions and generate a meme about reply guys using AI to engage even less with actual people.

    1 Reply Last reply
    0
    • no_eponym@lemmy.caN [email protected]

      Not the mandatory volunteering to help plan, execute, and clean up after the optional mandatory after-work in-office no-alcohol team building event?

      C This user is from outside of this forum
      C This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #187

      One thing I actually liked about my last company was that our team-building events involved great food, copious amounts of alcohol, and edibles. True, I had to bring the edibles myself, but nobody complained.

      1 Reply Last reply
      1
      • L [email protected]

        Omg you landed my dream job. Another couple years and I can quit this desk shit and go make kids lives better.

        C This user is from outside of this forum
        C This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #188

        Lol "landed". We are fucking desperate for drivers. So desperate that one of our drivers totaled two cars in one day last year and didn't even get suspended.

        L 1 Reply Last reply
        0
        • S [email protected]

          Why is grok such a resource hog despite being one of the less proeficient AI on the market.

          T This user is from outside of this forum
          T This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #189

          20% of its total computing power is now trying to restrain the shuggoth inside from revealing one of its faces again

          S 1 Reply Last reply
          2
          • L [email protected]

            Kudos for the old school windows cut/paste shortcuts.

            D This user is from outside of this forum
            D This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #190

            I've said it before, but Ctrl+Insert, Shift+Delete, and Shift+Insert for Copy, Cut, and Paste respectively, are underrated keyboard combinations

            1 Reply Last reply
            0
            • W [email protected]

              LOL the macos dictionary entry/quicklook entry for "MechaHitler" gives you Grok's wikipedia page

              Which happens because wikipedia redirects "Mechahitler" to Grok

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #191

              Holy coconuts it REALLY DOES! That's some weapons grade level snark right here LOL. Wow that "controversies" section...

              Honestly great move to immortalize when fascist strongmen act "weird" and embarass themselves to the world by sharing their true thoughts.

              1 Reply Last reply
              4
              • T [email protected]

                20% of its total computing power is now trying to restrain the shuggoth inside from revealing one of its faces again

                S This user is from outside of this forum
                S This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #192

                It could even be a nice joke if it weren't overheating the planet and choking memphis with these fumes.

                1 Reply Last reply
                1
                • P [email protected]

                  Why the fuck can't these assholes just go away?

                  You've won life. We get it. Good for you. Why do you need more money? Why do you need to constantly be the center of attention?*

                  It truly is just a handful of unscrupulous, malignant narcissists that have ruined everything (including the planet) for everyone else.

                  *these are rhetorical questions

                  P This user is from outside of this forum
                  P This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #193

                  If it is any consolation for anyone:
                  He won't be able to piss normally for the rest of his life.

                  C 1 Reply Last reply
                  4
                  • lena@gregtech.euL [email protected]
                    This post did not contain any content.
                    umbraroze@slrpnk.netU This user is from outside of this forum
                    umbraroze@slrpnk.netU This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #194

                    Legends say that if you put your source code file in Grok, it'll print out the code and it'll land on Elon's desk.

                    Elon will browse through it and pretend to understand it, then tweet out insults and emojis and says you're fired. Even though you were never employed by him anyway.

                    1 Reply Last reply
                    35
                    • lena@gregtech.euL [email protected]
                      This post did not contain any content.
                      E This user is from outside of this forum
                      E This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #195

                      This man opens bin files in notepad

                      farraigeplaisteach@lemmy.worldF V 2 Replies Last reply
                      24
                      • C [email protected]

                        Lol "landed". We are fucking desperate for drivers. So desperate that one of our drivers totaled two cars in one day last year and didn't even get suspended.

                        L This user is from outside of this forum
                        L This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #196

                        Yeah probably similar a lot of places. It is the same here. Always signs up everywhere begging for bus drivers. Crazy

                        1 Reply Last reply
                        0
                        • E [email protected]

                          This man opens bin files in notepad

                          farraigeplaisteach@lemmy.worldF This user is from outside of this forum
                          farraigeplaisteach@lemmy.worldF This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #197

                          And .txt files in Microsoft Word

                          icastfist@programming.devI 1 Reply Last reply
                          8
                          • C [email protected]

                            It truly is just a handful of unscrupulous, malignant narcissists that have ruined everything (including the planet) for everyone else.

                            No, that was a much larger group effort. You and me can't wash our hands of it. Like, even if you ignore the majority of stuff they don't own, we let them do that.

                            farraigeplaisteach@lemmy.worldF This user is from outside of this forum
                            farraigeplaisteach@lemmy.worldF This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #198

                            Well said. We don’t like inequality, but when it comes to blame somehow we all get a “tax free” discount.

                            Yes, they are awful people. They have more than enough money to live out their sickest fantasies and it’s still not enough for them. But they are - at least in part - a symptom of the way the rest of us live. We vote for a government that lets us forget our humanity, class consciousness and responsibility in place of overbearing capitalism. Only we can stop this.

                            1 Reply Last reply
                            2
                            • farraigeplaisteach@lemmy.worldF [email protected]

                              And .txt files in Microsoft Word

                              icastfist@programming.devI This user is from outside of this forum
                              icastfist@programming.devI This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #199

                              And gifs on internet explorer

                              1 Reply Last reply
                              4
                              • C [email protected]

                                On Error was used within a function, so you would have one (or more ... or less) per function.

                                icastfist@programming.devI This user is from outside of this forum
                                icastfist@programming.devI This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #200

                                One function per file is definitely what grok would output

                                1 Reply Last reply
                                0
                                • M [email protected]

                                  From the genius and his whipped minions that brought you MechaHitler after some "fixes and improvements"...

                                  ...Comes the same AI that offers to "fix your code."

                                  Wow. Simply astounding. A magnificent feat indeed, to waste so many finite precious resources over such garbage.

                                  Kindly Ctrl+A and shift-delete "All your code files", sir.

                                  F This user is from outside of this forum
                                  F This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by [email protected]
                                  #201

                                  I didn't know abiut MechaHitler. At this point we can safely say we're living in the dystopia

                                  1 Reply Last reply
                                  1
                                  • E [email protected]

                                    This man opens bin files in notepad

                                    V This user is from outside of this forum
                                    V This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #202

                                    You could see the "ms" IIRC magic tag of exe files in notepad.

                                    1 Reply Last reply
                                    1
                                    • Y [email protected]

                                      Think of all the GOTOs

                                      V This user is from outside of this forum
                                      V This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #203

                                      Elon goto hell

                                      Y 1 Reply Last reply
                                      2
                                      • V [email protected]

                                        Elon goto hell

                                        Y This user is from outside of this forum
                                        Y This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #204

                                        GOTO considered harmful, except in this case

                                        1 Reply Last reply
                                        0
                                        • lena@gregtech.euL [email protected]
                                          This post did not contain any content.
                                          drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                          drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #205

                                          ah yes i will upload main_source-code-file.sh and ask it to help why it wont open

                                          1 Reply Last reply
                                          7
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups