The Enchanted Tavern
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago

Always try sudo

programming.dev

message-square
126
fedilink
1.09K

Always try sudo

programming.dev

@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago
message-square
126
fedilink
alert-triangle
You must log in or register to comment.
  • dactylotheca
    link
    fedilink
    English
    198•1 year ago

    Doctor of Computer Science

    stringly-typed "100%"

    yeah that tracks.

    • @vala@lemmy.world
      link
      fedilink
      128•1 year ago

      Calls a static method on the OldMan class instead of the instance of oldMan that is actually dying.

      • David From Space
        link
        fedilink
        English
        63•
        edit-2
        1 year ago

        Tonight's story: Every man older than OldMan.getMinimumAge() has been in perfect *unchanging* health for the last few months‽ To find out why, stay tuned! Our experts chime in to help you understand....

        • @OldManBOMBIN@lemmy.world
          link
          fedilink
          17•
          edit-2
          1 year ago

          If only I’d been born %YEARS% later :'-(

        • @nilloc@discuss.tchncs.de
          link
          fedilink
          English
          8•1 year ago

          But then they really have no idea and try to convince you it’s from some stupid diet trick fed to them by a sponsor.

      • Kogasa
        link
        fedilink
        3•1 year ago

        That’s an instance property

        • @jaybone@lemmy.world
          link
          fedilink
          2•1 year ago

          Is this some .NET convention that references to instances start with capital letters?

          • Kogasa
            link
            fedilink
            3•1 year ago

            Yeah, properties (like a field but with a getter and/or setter method, may or may not be backed by a field) are PascalCase

            • robotica
              link
              fedilink
              3•1 year ago

              How is OldMan a property here? It’s clearly the name of a class

              • Kogasa
                link
                fedilink
                1•1 year ago

                Instance properties are PascalCase.

                • robotica
                  link
                  fedilink
                  1•1 year ago

                  Yes I know, I’ve coded in .NET before, but so are class names.

                  • Kogasa
                    link
                    fedilink
                    1•1 year ago

                    Okay, but this makes more sense as an instance method rather than a static one

    • @Emotet@slrpnk.net
      link
      fedilink
      27•1 year ago

      str(float("100.0")) + "%"

      • dactylotheca
        link
        fedilink
        English
        34•1 year ago

        • @WanakaTree@lemm.ee
          link
          fedilink
          9•1 year ago

          Haha I’m saving this image

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 150 users / day
  • 337 users / week
  • 1.31K users / month
  • 4.45K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org