The rules for building Java are recommendations rather than rules.
Nomination principles Java Setup are often part of project standards; these are designed to ensure that code is written consistently across parts of the project and within the same stage of the process.
After a while, a piece of code is written and saved by a few different people. If everyone else writes differently, this code becomes even harder to read.
Think of it as a book written by different people with different styles, you are not sure who wrote the next sentence. It can be very difficult to learn as any style will hinder your movement.
Java code is the same, you only write it once, but it will be read many times by you and your partner. It always pays to take extra steps to make it readable.
If the rules are broken, the system will not be covered; the Java compiler will complain. If conferences are canceled, the system Java Setup will still work, but it will be left to your supervisor and colleague to file a complaint.
This is a very important point to learn as a new engineer. It’s one of the simplest things that you can easily ignore, but if you follow the rules closely, you can help everyone around you and become a recognizable engineer.
It’s one of those hidden rules that will eventually affect your bank balance. By writing code that is easy to read because it adheres to agreements, you identify yourself as a person who cares about you and someone who is trustworthy. It is most beneficial for you to follow the best practices and follow the principles of sensible coding.
The style of the house will change from project to project. If you’re joining a new project, it’s very easy to get into your style, usually, the one you used in your final project. Be sure to read the code and pay close attention to areas where you are different from what you are used to. Keep this in mind so that you can refer to them if necessary.
Make sure you use a new house style, not your own. If there are no coding rules, be diligent: suggest another creation. It will help everyone in the long run and mark you as an active person, which is not a bad thing at all.
Sun has an excellent set of coding agreements. This is a good start to your coding principles if you need them. You can use them “as is” or write down where you want to deviate from these levels or use the Sun version.