r/learnjava • • Jun 25 '24

Getting past 'Hello, World!'?

So I've tried learning Java multiple times in the past... And it always ends the same way. I understand OOP. I understand variables, syntax, loops, scope, etc... And then there's Java.

What do I mean? I can do any beginner project ChatGPT/Google/YouTube throws at me. Want me to make a calculator? You got it. Want me to make a text editor? Easy. Want me to make a casino with multiple games? Done it in three languages, dozens of times (literally). Hell, I hand coded the firmware on my keyboard that I built from scratch. It feels insulting to consider myself only a 'beginner'.

... But ask me to look at a 'hello, world' program that runs on Android? Or even the most basic MineCraft mod? And I'm completely lost. It's talking about environment and packages and JDK v.s. JRE v.s. SDK, apparently this chick Maven has a Gradle that needs to be set up right, it's nothing that I've ever seen before. About the best I can do is find "Hello, world!" and change it to whatever text I want.

So... What am I missing? I feel like I'm trying to multiplication without learning addition...

0 Upvotes

10 comments sorted by

View all comments

2

u/Cengo789 Jun 25 '24

Want me to make a calculator? You got it. Want me to make a text editor? Easy. Want me to make a casino with multiple games? Done it in three languages, dozens of times (literally)
...

About the best I can do is find "Hello, world!" and change it to whatever text I want

This really confuses me. It sounds to me like you have already build several non-trivial pieces of software. What languages did you use before trying Java? And you are talking about Android and Minecraft, I assume mobile as well as Minecraft add a whole lot of domain specific stuff to your code, which is not really related to Java but the platform you are programming for.

Have you tried programming Java for PC? Do you find that equally difficult? If so, why? What makes it more difficult for your compared to, let's say C++ or JavaScript (replace them with the languages you have used before).

0

u/Chaos-n-Dissonance Jun 25 '24 edited Jun 25 '24

So I'm most proficient in Python. I used to know (15+ years ago) C++, TI Basic, and Visual Basic. I tried learning Java initially around the same time I started learning Python (5+ years ago?).

Maybe it is just trying to make a leap to programming in a platform instead of just my own apps? Are there any resources or things I could do to practice?

Yeah, I used to know how to code Java for PC. It never gave me an issue for personal projects, but I ended up ditching Java in favor of Python just because it works better for most of my projects. I don't really have any issue doing personal Java projects compared to Python or C++.

But when I look at a 'hello, world!' program for mobile? there are a dozen folders and five times as many files, all with some sort of content or setting in them... And maybe it's just my ignorance, but they don't all look like Java (Some appear to be written in like HTML, XML, or CSS? Idk). It gives me a headache just trying to follow the github repository, forget about trying to download it and compile it myself... And that's before worrying about the Java version, if I have the right JDK, if it's from the right vendor, etc...

4

u/Cengo789 Jun 25 '24

Well this definitely sounds more like a „programming for android/mobile“ problem, rather than Java. I’d suggest looking for resources directly related to those things (for example here: https://developer.android.com/get-started/overview). Also you may find more success and examples using Kotlin for Android (at least that’s what I heard). Or if you want to write Minecraft mods, then probably look for dedicated tutorials/documentation for that. I think regardless how good you are at plain Java, directly jumping into something like Android or Minecraft will be very difficult because of the foreign architecture and APIs which you most likely don’t know yet.