Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Inheritance is the biggest problem with OOP, I think. It's very difficult to do well.
Encapsulation is fine, but you can do that in many ways. -
If OOP were really so natural as OOP proponents claim, it wouldn't be hard to implement.
And in fact, encapsulation in OOP is usually an illusion anyway. -
@andros705 eeeexactly. That is completely fine and perfect and I am more than familiar with the way that works(even experienced in it)
Sadly the people that worked on these systems were not............;__; -
@andros705 wait, but why strategy? Isnt strategy supposed to replace logic by context?
-
rant1ng44626yNah.
The point of OOP is that it can be anything you want. You want it to be a confusing mess that is a nightmare to maintain.. it can be that.. or it can evolve into near perfect system.. With near English code.... with functionality that causes you to have an orgasm bc it is so sexy how nothing breaks when you add to it...
Or you know.. Maybe stop working and go get laid.
Fuck I need some time off.
Anyway.. Up to you. -
@rant1ng loo I am pretty sure that was not the point of oop from the beginning but I like yo examples
-
OOP is fantastic when implemented right (just like anything in IT). If you want to see what a great architecture looks like in OOP take a look at this: https://tv.ssw.com/7472/...
That's how i structure my code, So swapping and changing stuff is done with min amount of side effects -
rant1ng44626y@AleCx04 yeah.. I'm....kinda drunk right now.
I see, he was complaining about shit oop that he had to fix... K.
Anyway why am I still on devrant. It's party time. See y'all in the morning. -
@MrCSharp appreciate the link bud thank you. I do know what good architectural patterns do look like tho, I am merely remarking upon the structure that people before me at my current workplace did before my time here.
-
@AleCx04 mate, i completely understand you. I am currently maintaining 2 big ecommerce systems that are the true definition of spaghetti code...
-
catadoxa4166yReminds me of this old quote:
"The object-oriented version of spaghetti code is, of course, 'lasagna code'. Too many layers." - Roberto Waltman
Layers can definitely be good, though, if done well (I love a good lasagna). I think the problem is more that it's just as easy to write shitty OOP code as it is to write shitty any-other-paradigm code.
Related Rants
Good oop is hard to implenent and keep track off in my experience.
I have seen projects so hard which have such large hierarchies and reused components that even the most minimal change breaks an entire change. Dependency injection is a pretty cool tool to use, but I have seen more people fuck it up and make something that supposedly removes tightly coupled components be the extreme opposite.
Remember your basics people. Fuck
Ok everything is good now. Happy thoughts...nuthing but happy thoughts
rant
someone save me
java plz
angular plz
c# plz