ShinyLemmy
  • 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
215
fedilink
780

"Source code file"

gregtech.eu

Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 2 days ago
message-square
215
fedilink
  • YtA4QCam2A9j7EfTgHrH@infosec.pub
    link
    fedilink
    arrow-up
    26
    ·
    23 hours ago

    Think of all the GOTOs

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      28 minutes ago

      Elon goto hell

      • YtA4QCam2A9j7EfTgHrH@infosec.pub
        link
        fedilink
        arrow-up
        2
        ·
        19 minutes ago

        GOTO considered harmful, except in this case

    • ChickenLadyLovesLife@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      1
      ·
      21 hours 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
        ·
        20 hours ago

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

        • ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          20 hours 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
            ·
            1 hour ago

            One function per file is definitely what grok would output

          • locuester@lemmy.zip
            link
            fedilink
            English
            arrow-up
            4
            ·
            20 hours ago

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

            • ChickenLadyLovesLife@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              19 hours 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
                ·
                19 hours ago

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

                • voodooattack@lemmy.world
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  18 hours 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
                  17 hours 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
                    ·
                    12 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: !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.

  • 2.03K users / day
  • 4.19K users / week
  • 8.06K users / month
  • 20.1K users / 6 months
  • 1 local subscriber
  • 25K subscribers
  • 1.53K Posts
  • 53K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org