r/learnjava • • Apr 24 '21

Transitioning from minecraft development to general java, where should I start?

I have been developing minecraft plugins / mods for the past 1,5 years but now want to move away from minecraft and more towards general Java if that makes sense. Due to my previous experiences using java while making minecraft plugins I would not consider myself a beginner but I am not completely sure where I do fall in the spectrum since most of my experience was while using an api. I do know my way around enums, (abstract) classes, interfaces, variables, methods and most 'intermidate' stuff. Are there any tips on where I should start? And maybe some handy stuff to check out?

Thanks in advance!

47 Upvotes

27 comments sorted by

10

u/thevernabean Apr 24 '21

Here are a few projects I learned a lot from in the past. Feel free to pick something you like or do something different. As always, the best way to learn Java is to code a Java application you are interested in:

  • A TCP/IP server that parses incoming data and does something with it like send an HTTP request.

  • Spring Boot applications

  • A CLI application using Apache Commons CLI

  • A Swing based UI application

  • A password manager that uses PBKDF2, Bcrypt, Scrypt or some other hashing function and AES to encrypt a password store.

  • An HTTPS server using your own Certificate Authority.

  • Build your own search indexer using Lucene

  • Implement your own tree based indexing

  • Build a database client that uses JDBC similar to Squirrel or DBeaver

  • Build a Reactive Java application using Mutiny or Spring Reactor

  • Build a simulation for stuff like falling objects and springs using approximate differential equations. (Runge-Kutta, Euler method, etc...)

  • Implement your own Cipher algorithm or re-implement a well know one like Galois Counter Mode, Rijndael and AES.

  • Build an XML or JSON parser/serializer

Really I just find anything that seems like magic and try to figure it out. In the end I learn a ton and it makes me a better coder. Never stop coding.

1

u/javadeveloper42069 Apr 25 '21

Thank you very much, some of these seem like a great start!

2

u/renman8854 Apr 24 '21

Thank you for this

7

u/Nemo_64 Apr 24 '21

When I wanted to transition from minecraft plugin development to general java first thing was learning how to make a user interface (Swing for me) and learn more poo.

Right now I develop full java applications without any framework, just swing. Most people when making an application use things like spring without thought but I think for the size of my projects it's too much.

So i'd recommend: learn more poo, generics, functional interfaces, the stream API, something to do ui like swing or JavaFX and then maybe frameworks like spring

15

u/KingHarri Apr 24 '21

With Poo you mean Object Oriented Programming?

1

u/javadeveloper42069 Apr 25 '21

Was very confused about this as well haha

2

u/Nemo_64 Apr 24 '21

Yes

6

u/cojerk Apr 24 '21

"OOP"

3

u/Nemo_64 Apr 24 '21

My bad

2

u/cojerk Apr 28 '21

Don't be. I might be adopting the use of "poo" like some of the others in this thread. I think it works, too. I could be looking at some code and wonder "what the hell is this poo?". :)

1

u/Nemo_64 Apr 28 '21

I didnt excpect that omg

2

u/javadeveloper42069 Apr 25 '21

Almost thought about starting off with Spring haha, thanks for the tip!

0

u/[deleted] Apr 24 '21

[deleted]

11

u/Nemo_64 Apr 24 '21

Oh nonono, my bad. Its "Object Oriented Programming" or "OOP". POO is in Spanish, Programación Orientada a Objetos, I tent to use POO instead of OOP in English and Spanish.

0

u/[deleted] Apr 24 '21

[deleted]

7

u/Kuusai Apr 24 '21

Count me in too lol

3

u/Nemo_64 Apr 24 '21

For me it's easyer to say and write poo instead of oop, that's why I always say poo, even when I want to say oop

20

u/xRageNugget Apr 24 '21

Think about a project you would like to do and start. You will encounter problemes really quick. Google how to solve em. Cant figure it out? Cone back here!

1

u/Jerome_Eugene_Morrow Apr 24 '21

I feel like for beginner programs it's often a good idea to start with a broad outlook that's interesting to you.

  1. Programs that talk to other computers

  2. Programs that display something

  3. Programs that simulate something

  4. Programs that create insights from data

If you can focus on one of those broad categories, I think you can get better recommendations from folks on here. You seem to be at the level of competence that you're moving into general problem solving with code, which is motivated more by what is interesting to you to do and what specific tools are used in that are, and has to do less with needing to get experience with the tools that all java developers need to have a general grasp of.

1

u/javadeveloper42069 Apr 25 '21

Haha I'll try it, although knowing myself I'll probably get impatient after the first 10 minutes :P

1

u/renman8854 Apr 24 '21

Thanks for this insight:)

1

u/-dashRepeat Apr 24 '21

How did they get here?

1

u/javadeveloper42069 Apr 25 '21

I am sorry, what do you mean?

1

u/-dashRepeat Apr 25 '21

Oh sorry I was making a dumb reference to Rick and morty

1

u/hey-im-root Apr 24 '21

once you know the general syntax of java you are pretty much just filling in the blanks. what i do is start by making an app (android development is a very good place to start, but also VERY different). I started by googling how to work with certain UI elements and how to interact/control their unique attributes (make a button create a Toast, change RGB colors with a slider, etc etc). You don’t necessarily NEED to have a project idea to start, but that’s probably the best way because i often will think of something i wanna do but have no clue how, and i’ll end up finding a bunch of interesting code to mess with and learn as well. It can be a never ending cycle and eventually lead to an idea or two for future projects. Everyone works differently though so remember to follow your own intuition. Creative freedom is great 😁

1

u/Willy988 Apr 24 '21

Other responses are good. Just a quick nitpick, treat yourself as a beginner. I was in your shoes, I was making complex plugins without knowing what was going on. Although you may feel very knowledgeable just sit down, learn. Do that and I promise you’ll be up and running in no time.

1

u/[deleted] Apr 24 '21

[removed] — view removed comment

2

u/javadeveloper42069 Apr 25 '21

Thanks for the tip, I'll check him out