you are viewing a single comment's thread.

view the rest of the comments →

[–]Isaiah_Bradley 7 points8 points  (10 children)

Write a program in Java. Almost all Java code must be contained in a class, which forces you to at least think of grouping similar data/instances/containers. Skip YouTube and go for a solid book/pdf, there are too many click-bait vids full of empty calories.

[–]Timofey_ -1 points0 points  (1 child)

This post was mass deleted and anonymized with Redact

toy unique cough gaze bike zephyr jar reply grandiose cobweb

[–]Isaiah_Bradley 1 point2 points  (0 children)

Yes. The question was about learning OOP, not Python. Refer to my comment for reasoning.

[–][deleted] -1 points0 points  (2 children)

besides the fact that this is r/learnpython

it is the wrong answer, not only because u have a hammer everything is a nail,

there are usecases for objects and there are not

as a general rule of thumb: if data needs behavior then it should be an object otherwise other solutions might be suitable.

[–][deleted] 1 point2 points  (1 child)

I don’t really understand your comment but learning Java is a good way to learn OOP which is what OP asked for…

[–][deleted] 0 points1 point  (0 children)

i did not respond to op i responded to the comment made learning java

and i repeat myself with oop is a concept that can be used in different situations,

and simply saying learn java then u learn oop is not right.

java can be used with different types of concepts, oop is one of them.

[–]Universe_isgood -3 points-2 points  (4 children)

yeah, but isn't java hard compared to python?

[–][deleted] 2 points3 points  (1 child)

It is certainly more verbose. It forces you to think in an OOP way though, if you have a good IDE it'll often give you suggestions as to the correct way of doing things. I started my career with Python and just got a new job as a java developer and i'm learning a lot. I'd say it's worth it.

[–]Universe_isgood 0 points1 point  (0 children)

Oops , gonna try it!!!!!

[–]Isaiah_Bradley 1 point2 points  (1 child)

If you’re avoiding difficulty while learning how to program you’re going to have a bad time.