• Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      55
      ·
      6 months ago

      Been in mine 25 years. I could probably make more money elsewhere, but then I’d have to get a proper job rather than be the coding equivalent of an unmaintained fire extinguisher.

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        15
        ·
        6 months ago

        oh i just meant because usually tech companies go bust or merge in under five years these days :3 but that’s honestly so amazing and i’m happy that you are that happy where you are!

  • ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    6 months ago

    Not a bug exactly, but about ten years ago I was working as an iOS developer and to get around a major problem introduced by the app designer, I made use of a “private method”, which is something an app supposedly gets rejected for by Apple. I came up with a way of hiding it and had to sweat out the approval period before it went live. Ten years later that shit is still there; I’m sure the developers currently responsible for the app don’t even know it’s there. I normally comment my code with an eye to helping future programmers understand what’s going on and why, but this hack was one where I even obscured the comments.

    • AVincentInSpace@pawb.social
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 months ago

      What does “private method” mean in this context? Did you make use of an undocumented endpoint of the iOS API?

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 months ago

        Objective-C does not enforce method access (e.g. private methods) at the runtime level. If you are sufficiently determined, there are no restrictions on what methods you can call, unlike Java or C# (AFAIK).

        • AVincentInSpace@pawb.social
          link
          fedilink
          English
          arrow-up
          4
          ·
          6 months ago

          Java absolutely lets you do that with Reflections. You’re not supposed to, and it’s painfully slow, but the JVM is only marginally smarter than javac (and that’s saying something) so there’s nothing actually stopping you.

          • Ethan@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 months ago

            I thought there was security code to stop that kind of thing. Granted, it’s been over 10 years since I’ve done anything with Java more than tinkering with Minecraft mods.

            • homura1650@lemm.ee
              link
              fedilink
              arrow-up
              4
              ·
              6 months ago

              Java did have a Security Manager that can be used to prevent this sort of thing. The original thinking was that the Java runtime would essentially be an OS, and you could have different applets running within the runtime. This required a permission system where you could confine the permissions of parts of a Java program without confining the entire thing; which led to the Java security manager.

              Having said that, the Java Security Manager, while an interesting idea, has never been good. The only place it has ever seen significant use was in webapps, where it earned Java the reputation for being insecure. Nowadays, Java webapps are ancient history due to the success of Javascript.

              The security manager was depreciated in Java 17, and I believe removed entirely in Java 21.

  • homura1650@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    6 months ago

    Around 2 years ago, I got an email from a products team asking me for urgent help extending a program in time to make a sale.

    I looked over the program and wrote back sonething along the lines of “this program was written almost a decade ago by an unsupervisered highschool intern. Why TF are we still using it?”.

    Of course, I ended up helping them, because that highschool intern was me, and I ended up helping because no one else could figure out what highschool me was thinking.

    • PrettyFlyForAFatGuy@feddit.uk
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      I sometimes wonder if the spaghetti i wrote when i was still learning to program (on my own, in the corner of the room, ignored by all the “real” devs) is still used by the team i wrote it for.