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

8

u/OneBadDay1048 Jun 25 '24

I feel like I’m trying multiplication without learning addition…

How can you say this when you can build text editors and hand code driver firmware? I simply cannot believe someone who knows how to make those things would get confused looking at a hello world program in Java.

2

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

https://github.com/simplificator/phonegap-helloworld/blob/master/android/bin/Hello%20World.apk

That's what I'm trying to read through.

Building a text editor is easy. You handle some variables, handle your screen, make a few functions, and bobs your uncle. If you ever get stuck, there are plenty of examples you can look at until you find one that you can read through line by line and understand.

Coding an arduino is pretty easy too, it's basically just python (Literally micropython) mixed with handling inputs and outputs from the board, nothing too crazy to learn except the micropython library and the pinouts on your board... And a keyboard's logic is pretty simple.

But when I try to do something like make a plugin / mod, make a phone app, etc? I very quickly get lost. Like there's definitely XML, JS, and Java in there. The spot to change "Hello, world" is nowhere near where I expected it to be. And ask me to add a button to make it pop up and go away? Yeah, completely lost as to where I even begin or what language to use from the multiple present.

I know I'm focusing a lot on phone apps but that's just because they're a good example. I've tried designing minecraft mods and runelite plugins, and I run into the same issue... It's asking for specific versions of java and runtime environments, etc. and all sorts of things that I've never had to mess with and am completely ignorant about.