0
I don’t know why but python seems to be harder than java to me does any body else fell like this?
5 Respuestas
+ 3
From my perspective, you just said that tricycling was harder than unicycling to you, but maybe it’s just how we’re wired. Python is very easy to me, and Java seems a lot more demanding: You have to tell it a whole bunch of stuff, whereas Python just naturally assumes all of that for you. Not only that, but to run a Java program, you have to run a compiler on it first, whereas with Python, you can even run unfiled code in the interpreter live and figure out stuff.
+ 3
I learned Python before Java, and I feel Python is easier.
With Python, you can concentrate on the problem itself. However, with Java you need to take care of almost every infrastructure before solving the problem.
For example, you need to import the Scanner class, initiate a Scanner object before accepting user input. And before using it, you need to think about what kind of date type you are going to accept. In Python, you just need user_input = input() to get the job done, and you can cast the input received into integer, Boolean or other data type as you see fit.
To make a joke, it is like being a human before solving any problem, we need to import the Human class, initiate a Brain object before actually solving a problem. It is just too verbose for me.
Unless you like the idea of "every method belongs to an object", I don't see how Java is "easier" than Python.
+ 1
You're not alone! Many beginners find Python easier to learn than Java, but some might encounter the opposite feeling.
Python's dynamic typing (variable types are determined at runtime) can be less familiar for those coming from statically typed languages (like Java) where types are declared upfront. This can lead to debugging challenges if you're not used to it.
Python's flexibility (multiple ways to achieve the same task) can be overwhelming for beginners. While powerful, it might require more exploration to find the "correct" approach.
Python relies on indentation for code blocks, which can be a new concept for programmers used to curly braces in Java. Strict adherence to indentation is crucial for Python code to function, adding another layer to learn.
Master the core concepts of programming (variables, loops, functions) before diving into complex topics. This strong foundation will make learning Python syntax and libraries smoother.
Consistent practice is key. Work on small coding exercises or projects to solidify your understanding and build confidence.
There's a wealth of free Python tutorials, documentation, and online communities. Take advantage of these resources for explanations, code examples, and troubleshooting help.
https://www-kynect.com
0
As you familiarize yourself with different syntaxes they'll slowly blend together into a single internal representation that you'll inevitably coerce into being its own language as you become old and cranky enough to want to program in a single IDE with a single compiler tool chain.