2
8lall0
2y

OOP is literally the worst that happened in programming history.

Comments
  • 8
  • 11
    Meh. As opposed to?

    Me thinks either you don't understand what you're bitching about or are a naive evangelicalist of some other paradigm you don't entirely understand.
  • 0
    @atheist everything that allows you to override and extend is doomed to be a clusterf**k.

    A dog and a table both have four legs, but only one can walk and bark.
  • 5
    @8lall0 so... You've read and understood SOLID then?

    You can write confusing code in any language. Any paradigm. However a set and a list implement the same "iterable" abstraction, so why not program against that? Then if elsewhere you need to change one for the other, you still can.
  • 2
  • 0
    @atheist that's literally nice theory that no one applies and that's against inheritance.
    A interface is enough if you need same behavior with different implementations.
  • 5
    @8lall0 some of us write good code.

    Stop being a troll.
  • 5
    That’s because people don’t understand design patterns doesn’t mean OOP is bad, 99% of OOP code is bad cause someone decided to do something better then how it’s done in the book.

    And my last sentence is about everything that people fuck up agile, oop, cars, planes, knives. They fuck it up cause they decide not to do something like book says. Start from fucking doing like book says and when you hit the limit read the book again cause you clearly didn’t understood it.

    If you hit real limit you can write to the author if he lives and if he responds you really hit the limit and if not read the book again you fucking moron.
  • 0
    And still better, by thousands of magnitudes, than anything we humans have come up with.
  • 7
    you misspelled "javascript"
  • 4
    Allow me to introduce you to VBA.
  • 1
    Soap might be a contender and is even related to objects.
  • 1
    Something that helped me with my oop code. Try and reduce side effects in functions. Be explicit about non-modifying calls. Also, try to keep my inheritance shallow. I have also been exploring component systems to reduce specialization. I have been learning a lot from other paradigms.
  • 4
    Poor attempt at trolling.
  • 0
    @-red @Root I Wish, i'm serious.
  • 0
    It depending on what your project is ...if your project is a simple calculator app , why classes , inheritance, etc are required?

    In some cases OOP are required , sometimes not.

    Oop is not bad entirely. It depending what you do. For instance if you would to do a SIP backend service in OOP then I understand why OOP will be super bad.

    Or do you mean you think Oop is bad because language like JavaScript or entirely?
  • 1
    @vane very spot on!
  • 3
    @8lall0 SOLID is applied by people, including myself. A lot of paradigms are applied by people attempting to a do a good job, not just a job. Unfortunately most developers have no interest beyond making something work, and once they can they stop learning. Most bad OOP is not even OOP in my book, it's just random shit slapped together. To call something OOP or functional it actually has to be written trying to follow disciplines.

    But tbh I can't comment on FP Vs OOP as I have not tried to architect a system via FP and wouldn't know where to start.
  • 2
    @Crost I read a book that shows how to write functional oop. It was really interesting.
  • 1
    @johnmelodyme unfortunately that’s learned from experience
  • 0
    @prodigy214 fucking things up at a massive scale is always possible with any paradigm.
  • 1
    you're the worst that happened to programming industry
  • 0
    @prodigy214 well there's no need, but there's no need to not love or hate them either. They are different after all so you may prefer one over the other.
  • 0
    @rEaL-jAsE pretty much everything:
    - bind functions with data is stupid
    - if i need a simple function i have to instantiate a class for that (or having It static, but it introduces a global thing which is bad)
    - extend a class is the recipe for disasters. I can avoid that, but at that point what's the advantage of using classes?
Add Comment