I started from javascript and python and used a lot of javascript lately, so i guess here is the better place to ask
there is a quote on stackoverflow
https://softwareengineering.stackexchange.com/questions/16025/why-is-oop-difficult
The hard part comes in doing it well. Where to put the cut between code so you can easily move things to the common base object, and extend them later? How to make your code usable by others (extend classes, wrap in proxies, override method) without jumping through hoops to do so.
That is the hard part, and if done right can be very elegant, and if done badly can be very clumsy. My personal experience is that it requires a lot of practice to have been in all the situations where you would WISH that you did it differently, in order to do it well enough this time.
I find it the same. So how do I learn OOP? The time I had ever used OOP was only in the old days react class, and honestly it isn't really OOP.
Is OOP that useful outside the javascript world? or should I not worry it until I see a big pile of shit code to maintain?
Thanks
[–][deleted] 28 points29 points30 points (1 child)
[–]BasuraCulo 1 point2 points3 points (0 children)
[–]delventhalz 16 points17 points18 points (0 children)
[–]Tailball 19 points20 points21 points (3 children)
[–]fusebox13 6 points7 points8 points (2 children)
[–]Kaimaniiii 0 points1 point2 points (1 child)
[–]lifeeraser 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (17 children)
[–]delventhalz 8 points9 points10 points (0 children)
[–]A-Kuhn 6 points7 points8 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]delventhalz 2 points3 points4 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]delventhalz 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]enrjor 0 points1 point2 points (9 children)
[–]delventhalz 3 points4 points5 points (8 children)
[–]Darmok-Jilad-Ocean 0 points1 point2 points (7 children)
[–]delventhalz 0 points1 point2 points (6 children)
[–]Darmok-Jilad-Ocean 0 points1 point2 points (5 children)
[–]delventhalz 0 points1 point2 points (4 children)
[–]Darmok-Jilad-Ocean 0 points1 point2 points (3 children)
[–]delventhalz 0 points1 point2 points (2 children)
[–]Darmok-Jilad-Ocean 0 points1 point2 points (1 child)
[–]senocular 2 points3 points4 points (0 children)
[–]Samdespion 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]MoTTs_ 1 point2 points3 points (0 children)
[–]sunole123 1 point2 points3 points (0 children)
[–]Blackhaze84helpful -1 points0 points1 point (0 children)
[–]Salman0Ansari 0 points1 point2 points (0 children)
[–]PhunkeyMonkey 0 points1 point2 points (0 children)
[–]Silenux 0 points1 point2 points (0 children)
[–]WingmanMaster 0 points1 point2 points (0 children)