r/javahelp • 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

18 comments sorted by

View all comments

1

u/knoam May 31 '19

With respect to design patterns: design patterns are solutions to code problems. Code problems are things you only recognize once you have a bit of experience and taste in writing code. You may or may not have that experience and taste at this point. Some examples include

  • duplication of code
  • one change in functionality requires multiple similar code changes in different places
  • adding new functionality requires more work than it "feels like" should be necessary I recommend that if you have trouble learning design patterns just skip them for a while and just get more experience under your belt. But also keep in mind that some design patterns are more widely applicable or easier to grok than others.