Horwood Cloud
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
egeres@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 years ago

You can't understand my pain

lemmy.world

message-square
15
link
fedilink
144

You can't understand my pain

lemmy.world

egeres@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
15
link
fedilink
alert-triangle
You must log in or # to comment.
  • graphite@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    3 years ago

    wym just

    def piss(): pass

    substitute accordingly 🤙

    • egeres@lemmy.worldOP
      link
      fedilink
      arrow-up
      22
      ·
      3 years ago

      Now that I think about it, you can just write piss and it counts as writing a variable but not assigning it 🙃 (after having assigned piss at the beginning of the code!)

      • GitProphet@lemmy.sdfeu.org
        link
        fedilink
        arrow-up
        19
        ·
        3 years ago

        So you’re saying we just have to piss at the very beginning of the code?

        • egeres@lemmy.worldOP
          link
          fedilink
          arrow-up
          10
          ·
          3 years ago

          I bet this was in the original draft of the PEP-8 hahah

  • asudox (only for mod, alt)@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    3 years ago

    def piss(): pass; piss = piss()

    Here you go.

    • egeres@lemmy.worldOP
      link
      fedilink
      arrow-up
      8
      ·
      3 years ago

      But actually, You can just replace that line with piss = None, assigning piss = piss() does not invoke the former method when writing the new variable “standalone”

      • asudox (only for mod, alt)@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Oh well.

  • Rikudou_Sage@lemmings.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    3 years ago

    You can use the C preprocessor on any source code.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Or m4 if you are into it.

      M4 + python would make for a great combo.

      • muzzle@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        3 years ago

        Please don’t.

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          But…

          What is more pythonic than semantic whitespace?

          • muzzle@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 years ago

            Preprocessing source code is an awful idea and I wish it never became widespread.

            I used to hate semantic whitespace, but I came around when I was using it anyway.

            • marcos@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              3 years ago

              Oh bummer… I was so glad believing somebody understood the m4 joke.

              Text preprocessors for code are awful. But the m4 + python combo is so full of landmines that I’m wondering if I should try it.

              • muzzle@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                3 years ago

                I can only defend myself with the good old “it is impossible to write a Y̶o̶u̶T̶u̶b̶e̶ Lemmy comment stupid enough that everyone will realise it is ment to be sarcastic”

                • marcos@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  3 years ago

                  I would say that one should expect a high probability of comments on “Programmer Humor” being sarcastic. But deep down I know you are right.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 120 users / day
  • 516 users / week
  • 1.52K users / month
  • 6.13K users / 6 months
  • 1 local subscriber
  • 42.6K subscribers
  • 1.98K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.mldeleted by creator
  • cat_programmer@lemmy.ml
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org