r/javahelp • u/mslayaaa Software Engineer • May 30 '19
How do I make a program?
I'm a computer eng student, thus far I've taken two java courses (OOP and DataStructures) and I know enough about Java, from the basics, to making my own implementations of basic DS, AVL Trees, sorting algorithms, custom iterators, functional programming, dependencies management, etc. But, **I don't know how to structure a program for a client, how is a program supposed to be made? **
Is there a basic 'guide' to delegate functions of a program to different classes, etc? I don't know a lot about design patterns, etc.
28
Upvotes
1
u/[deleted] May 30 '19
What do you want to build?
How would that something work in normal every day speech if you were telling someone about it?
Create bullet points of every piece of functionality in your program.
Break every bullet point into individual small tasks.
Now, go and write methods for each small piece of functionality, remembering that each method should do one thing. If it's doing more things, it should be split into multiple methods.
Once you've got a bunch of disconnected methods, begin to couple them together.
Review what you've done so far, you'll no doubt find more functionality is needed.
Go back to the bullet points, add more, rinse and repeat.
That's how you build a project in a nutshell.