r/learnjava • u/cafties • Nov 29 '25
What after OOP?
Hi, sorry for the newbie question but I'm on my journey to become a solo dev and after learning basic programming concepts I was told to learn OOP. Now that I'm finished but I'm baffled on what to do next. Should I just start a project, or learn databases or head to another language?
22
Upvotes
View all comments
Show parent comment
1
u/josephblade Nov 30 '25
I would recommend starting off with something simple like tic tac toe.
a tic tac toe game consists of: asking the player for a move. checking if the move is legal. updating the gameboard if legal. printing the gameboard. getting the computer player to make a move. deciding if the game is won by any party or if it is a tie.
you can write code for each subpart of your game separately. write the code and then create a dummy main method in a separate class somewhere where you set up the board with a pre-defined position and you can test if your methods work as intended
that way you don't have to run the entire program but you're just testing smaller steps. it helps to keep things clear.
learn to identify when a bunch of lines all do 1 job as a group. that will be a good candidate for a separate method. it helps organize and clarify your code if you do it that way.