8

I need to stop treating an OO language as if it were a procedural language.

I have the tendency to turn my code into GOTO spaghetti even though I'm semi-aware that objects exist and that they are distinct.
I still have to get used to this paradigm.

My Java professor always swore by the Plato paradigm, i.e.:
""Platonism" and its theory of Forms (or theory of Ideas) denies the reality of the material world, considering it only an image or copy of the real world.
According to this theory of Forms there are at least two worlds: the apparent world of concrete objects, grasped by the senses, which constantly changes, and an unchanging and unseen world of Forms or abstract objects, grasped by pure reason (λογική). which ground what is apparent." (wikipedia)

Thinking in objects, abstractions and metaphysics is not something I haven't done before (I've practiced it during Sociology and Ethics with the whole Pascal Leibniz, Newton and DesCartes approach) but it's certainly not easy.

Then there was my cool Programming 201 professor who said: "Don't worry man, just read those great UML, Program Design and GOF books and it will all become easy, like a story. It'll all make sense.
I mean, I've graduated, I've passed my Software Engineering I, II and III (hard as hell) but since I haven't focused on those theories and practices anymore, I've lost my touch.

It's definitely not easy for a novice programmer to transition between paradigms..

Comments
  • 2
    Have you tried functional paradigm yet?

    Whatever you try, it will take quite some time and practice to gel
  • 4
    Booooooooo he uses goto in 2020.
    *throws popcorn*
  • 0
    Time to learn FP 🦹😉

    Remember, when in doubt, prefer composition to inheritance.
  • 1
    Where are you even learning to use goto in (current year)?
  • 2
    Hey, you've realised there's an issue, and that's usually half the battle.

    From that point onwards you can force yourself to take a second look at things and check if that's really the correct way, conceptually, to design your code if adhering to an OO style. Eventually it'll then just click - it's just practice.
  • 0
    @SortOfTested Yes, I've heard of that one. It tells me that should provide decoupling.
  • 1
    @SortOfTested We had FP and F# at uni but I had enough credits to skip it. Regrets.. :P
  • 0
    @CaptainRant
    Provided you had a good professor, you definitely missed out. The paradigms are all worth knowing.
  • 0
    @SortOfTested Well, that reminds me: I still have 100 credits left to take whatever courses I wish, so I could go back one day and attend some classes, but I can't because I work, so the solution would be to enroll in their mixed distance learning program, although that would be a lot of self-study and I'd miss out on valuable instructor lessons.

    Something to think about.
  • 1
    @neriald bitch try to write assembly without goto or similar stuff.
Add Comment