95% of all code makes me cry. The other 5% are white space.
/** * @param salary salary to set */ public void setSalary(float salary); /** * @return the salary */ public float getSalary();
After around 20 years of JavaBeans, we want to be sure that those having missed this standard also grasp what's going on. After all, we're paid by the number of lines of code. And yes. When we refactor, we swear to update that Javadoc. Incredibly, this was the accepted answer by sleske on Stack Overflowcomments powered by Disqus
Send us your own example of code that made you cry! Please include:
Note that we may choose not to publish some submissions if we feel they're not appropriate. We hope you understand.
Use jOOQ, instead of JDBC.
jOOQ generates Java code from your database and lets you build typesafe SQL queries through its fluent API.