UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 2 days ago

"Source code file"

gregtech.eu

message-square
235
fedilink
851

"Source code file"

gregtech.eu

Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 2 days ago
message-square
235
fedilink
  • YtA4QCam2A9j7EfTgHrH@infosec.pub
    link
    fedilink
    arrow-up
    28
    ·
    1 day ago

    Think of all the GOTOs

    • JohnnyCanuck@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      Nah it’s just if-then-elses all the way down

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      Elon goto hell

      • YtA4QCam2A9j7EfTgHrH@infosec.pub
        link
        fedilink
        arrow-up
        2
        ·
        10 hours ago

        GOTO considered harmful, except in this case

    • ChickenLadyLovesLife@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 day ago

      More like all the On Error Resume Next statements. Which wasn’t even the worst thing about Visual Basic! VB also had the On Error Resume statement. On Error Resume Next at least moved on to the next line after an error occurred; On Error Resume just re-executed the error-generating line, I guess on the assumption that something would eventually change there.

      • locuester@lemmy.zip
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

        There would just be one of those, at the top of the 1 file…

        • ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

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

          • I Cast Fist@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            11 hours ago

            One function per file is definitely what grok would output

          • locuester@lemmy.zip
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 day ago

            Oof indeed! After 40 years, I forgot it even had fns

            • ChickenLadyLovesLife@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 day ago

              I started with VB3, which didn’t have custom classes. I have no idea how I did anything back then, but at least it was better than TurboBasic.

              • locuester@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 day ago

                I did years of gw-basic, then ms quickbasic, j++, java, c#, now rust.

                • voodooattack@lemmy.world
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  1 day ago

                  Interesting to meet another person that went through the “GW-BASIC to Rust” journey. Mine was through FreeBasic and C++ in the middle but we ended up in the same neighbourhood.

                • ChickenLadyLovesLife@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  1 day ago

                  I did BASIC on the Apple IIe, then TurboBasic, Visual Basic (3, 4, 5 and 6 with some C in there somewhere), VB.Net, C#, Java, Objective-C and finally QT. Now I drive a school bus.

                  • locuester@lemmy.zip
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    22 hours ago

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

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: [email protected]

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.

  • 1.74K users / day
  • 4.31K users / week
  • 7.81K users / month
  • 19.6K users / 6 months
  • 2 local subscribers
  • 25K subscribers
  • 1.43K Posts
  • 46K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org