Java programming layout recommendations?

I've learned to write programs from scratch, but I don't know how to design the layout and implementation of the program More precisely, it's hard for me to find a good way to make an action plan before I dive into the programming part I really want to know what classes, methods and objects I need in advance, rather than adding them on the road

My intuition led me to use some kind of charting software, which gives a hierarchical view of all classes and methods I've been using omnigraffle pro. Although it seems to work, I still can't fully plan the whole program How should I solve this problem? What software can help solve this problem? Are there any good books on this issue?

Thank you.

Editor: Oh, yes, I now use eclipse and I mainly code in Java

Solution

I won't worry about charts I will try and document all the entities you will need and what they will do In the simplest case, each noun will be a class and each verb will be a method

This is a very basic method. What you require is some analytical methods The whole book has been written on it, which is a big topic

You can take an alternative approach and adopt an agile approach Here you solve a particular problem (a subproblem of your ultimate goal) and then refactor (perhaps heavy) because you solve further problems As you write code, you write and maintain unit tests so that your refactoring does not break your existing code You have to be ready to abandon what you do, but it's a powerful technology that means you can start running early rather than relying on the big bang method

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>