Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Object oriented programming in Python be like:

Object oriented programming in Python be like:

Scheduled Pinned Locked Moved Programmer Humor
49 Posts 28 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A This user is from outside of this forum
    A This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1
    This post did not contain any content.
    L L eager_eagle@lemmy.worldE M I 5 Replies Last reply
    469
    • A [email protected]
      This post did not contain any content.
      L This user is from outside of this forum
      L This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      Kinda' looks like how a psychotic break feels:-?

      A G 2 Replies Last reply
      3
      • A [email protected]
        This post did not contain any content.
        L This user is from outside of this forum
        L This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        Sorry, I'm too Rust-pilled for this OOP nonsense

        
        pub fn new() -> Self {
            Self::self().self.unwrap()
        }
        
        
        P P S 3 Replies Last reply
        39
        • L [email protected]

          Kinda' looks like how a psychotic break feels:-?

          A This user is from outside of this forum
          A This user is from outside of this forum
          [email protected]
          wrote on last edited by [email protected]
          #4

          Write a new method, make sure to reference self first. Write a new method, make sure to reference self first. Call the method, make sure to reference self first.

          Yeah, I can see it.

          A 1 Reply Last reply
          3
          • L [email protected]

            Kinda' looks like how a psychotic break feels:-?

            G This user is from outside of this forum
            G This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            that's because anyone who develops oop in Python is mentally ill.

            Python is a scripting language, not to be confused with an actual programming language. Like everything else in development over the last decade, newbs are just shoehorning whatever is hot into the language because nobody is stopping them.

            kayohtie@pawb.socialK lime@feddit.nuL A F D 5 Replies Last reply
            6
            • L [email protected]

              Sorry, I'm too Rust-pilled for this OOP nonsense

              
              pub fn new() -> Self {
                  Self::self().self.unwrap()
              }
              
              
              P This user is from outside of this forum
              P This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              Having a field called r#self is malicious madness

              1 Reply Last reply
              10
              • A [email protected]
                This post did not contain any content.
                eager_eagle@lemmy.worldE This user is from outside of this forum
                eager_eagle@lemmy.worldE This user is from outside of this forum
                [email protected]
                wrote on last edited by [email protected]
                #7

                nah, I'm never complaining about self in Python after having tried the this and that nonsense in JS.

                oh, you're using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

                M kayohtie@pawb.socialK D J 4 Replies Last reply
                75
                • A [email protected]
                  This post did not contain any content.
                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  Explicit vs implicit. Ive always liked it being explicit like that. It's better than magic keywords in say ruby.

                  Personally the "spaces are code" gets on my nerves for the same reason. It's implicit to the language so you just have to remember.

                  L 1 Reply Last reply
                  25
                  • eager_eagle@lemmy.worldE [email protected]

                    nah, I'm never complaining about self in Python after having tried the this and that nonsense in JS.

                    oh, you're using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

                    M This user is from outside of this forum
                    M This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    Yeah totally agree.

                    1 Reply Last reply
                    3
                    • L [email protected]

                      Sorry, I'm too Rust-pilled for this OOP nonsense

                      
                      pub fn new() -> Self {
                          Self::self().self.unwrap()
                      }
                      
                      
                      P This user is from outside of this forum
                      P This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #10

                      Reminds me of java

                      I have Toolkit toolkit = Toolkit.getDefaultToolkit(); seared into my brain. Then there were the bean factories…

                      F M 2 Replies Last reply
                      26
                      • eager_eagle@lemmy.worldE [email protected]

                        nah, I'm never complaining about self in Python after having tried the this and that nonsense in JS.

                        oh, you're using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

                        kayohtie@pawb.socialK This user is from outside of this forum
                        kayohtie@pawb.socialK This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #11

                        Wait there's a "that"???

                        T eager_eagle@lemmy.worldE 2 Replies Last reply
                        25
                        • G [email protected]

                          that's because anyone who develops oop in Python is mentally ill.

                          Python is a scripting language, not to be confused with an actual programming language. Like everything else in development over the last decade, newbs are just shoehorning whatever is hot into the language because nobody is stopping them.

                          kayohtie@pawb.socialK This user is from outside of this forum
                          kayohtie@pawb.socialK This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #12

                          C/C++ are just scripting languages that have to become OS+arch -specific byte-code before execution.

                          G 1 Reply Last reply
                          9
                          • M [email protected]

                            Explicit vs implicit. Ive always liked it being explicit like that. It's better than magic keywords in say ruby.

                            Personally the "spaces are code" gets on my nerves for the same reason. It's implicit to the language so you just have to remember.

                            L This user is from outside of this forum
                            L This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #13

                            Am I not YAMLy enough for your YAML club?

                            M 1 Reply Last reply
                            10
                            • G [email protected]

                              that's because anyone who develops oop in Python is mentally ill.

                              Python is a scripting language, not to be confused with an actual programming language. Like everything else in development over the last decade, newbs are just shoehorning whatever is hot into the language because nobody is stopping them.

                              lime@feddit.nuL This user is from outside of this forum
                              lime@feddit.nuL This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #14

                              oop hasn't been "hot" for 20 years.

                              D 1 Reply Last reply
                              2
                              • kayohtie@pawb.socialK [email protected]

                                Wait there's a "that"???

                                T This user is from outside of this forum
                                T This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #15

                                Only if you define it.

                                const that = this

                                M 1 Reply Last reply
                                35
                                • L [email protected]

                                  Am I not YAMLy enough for your YAML club?

                                  M This user is from outside of this forum
                                  M This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #16

                                  Heh yeah yaml is another one.

                                  1 Reply Last reply
                                  4
                                  • T [email protected]

                                    Only if you define it.

                                    const that = this

                                    M This user is from outside of this forum
                                    M This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #17

                                    I remember that a long time ago. Oh god

                                    A 1 Reply Last reply
                                    11
                                    • kayohtie@pawb.socialK [email protected]

                                      C/C++ are just scripting languages that have to become OS+arch -specific byte-code before execution.

                                      G This user is from outside of this forum
                                      G This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #18

                                      c and c++ require compilation to run though. Python does not. it runs through an interpreter. thus it's a scripting language.

                                      same can be said for node, ruby, and other interpreted languages.

                                      the problem with Python specifically is that it can't define itself as more one than the other. this makes developing in it messy and difficult because it refuses to adopt one over the other and fails to standardize. that's why we get little idiosyncrasies like the self referencing OOP in Python. it's been shoved into the language without any real concern for maintainability or longevity in the language and is only meant to fit into every crack and crevasse, like a putty(or shit).

                                      it took almost two decades for them to implement a switch/case that doesn't even work like 99% of all languages because it was an afterthought. when devs complained through official channels they were told to pound sand.

                                      Python is a hammer in a screw driven world. You can nail those screws in to solve your problems, but you'll never get them back out.

                                      Python doesn't deserve half of the praise it gets because they continue to piss on developers and have the audacity to tell them it's rain. not only that, the corporate interests (google) are pulling financial support of the language for the "new thing".

                                      my hope is that Python gets the same treatment that the Python community gave to devs.

                                      kayohtie@pawb.socialK 1 Reply Last reply
                                      2
                                      • G [email protected]

                                        c and c++ require compilation to run though. Python does not. it runs through an interpreter. thus it's a scripting language.

                                        same can be said for node, ruby, and other interpreted languages.

                                        the problem with Python specifically is that it can't define itself as more one than the other. this makes developing in it messy and difficult because it refuses to adopt one over the other and fails to standardize. that's why we get little idiosyncrasies like the self referencing OOP in Python. it's been shoved into the language without any real concern for maintainability or longevity in the language and is only meant to fit into every crack and crevasse, like a putty(or shit).

                                        it took almost two decades for them to implement a switch/case that doesn't even work like 99% of all languages because it was an afterthought. when devs complained through official channels they were told to pound sand.

                                        Python is a hammer in a screw driven world. You can nail those screws in to solve your problems, but you'll never get them back out.

                                        Python doesn't deserve half of the praise it gets because they continue to piss on developers and have the audacity to tell them it's rain. not only that, the corporate interests (google) are pulling financial support of the language for the "new thing".

                                        my hope is that Python gets the same treatment that the Python community gave to devs.

                                        kayohtie@pawb.socialK This user is from outside of this forum
                                        kayohtie@pawb.socialK This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #19

                                        Python is compiled at "runtime" to a similar OS+arch byte-code minus ELF headers that Linux binaries typically have from gcc.

                                        My point was it's a stupid distinction and worthless when the other points about poor implementations of common language frameworks are plenty on their own is all, and it's needlessly snobbish.

                                        As far as class variable reference however I wish more languages self-referenced. In my eyes it makes it far clearer at a given line of code glance as to where the hell a value came from as opposed to just by name. I feel a keyword like self::variableName, or maybe more aptly &self as a pointer to reference in C++ would be very clear, like Rust does, which is very much, by the original definition, a programming language instead of scripting. Even Java, which is definitely not a scripting language though is still run inside a virtual machine, uses this. I don't personally like the term versus self, but eh.

                                        Though if you want a hammer in a screw-driven world look no further than Electron. I think it puts anyone else's even purposeful attempts at such to shame.

                                        1 Reply Last reply
                                        11
                                        • eager_eagle@lemmy.worldE [email protected]

                                          nah, I'm never complaining about self in Python after having tried the this and that nonsense in JS.

                                          oh, you're using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

                                          D This user is from outside of this forum
                                          D This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #20

                                          As a non-programmer who's occasionally dabbled with wxPython, I've entangled myself with self.parent.parent and their childs/siblings more than once. At that stage I know my project is done.

                                          1 Reply Last reply
                                          4
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups