« first day (4935 days earlier)      last day (11 days later) » 

12:00 AM
There are two ways to write error-free programs; only the third one works. (source)
 
 
3 hours later…
2:57 AM
Hey. I suppose there are many Java code formatters, but is there a de-facto standard/recommended one? If not, what are the most used ones? For example, in Python, nowadays, most people use black. The IDE can call black, or you can just have a pipeline that checks the code format before merging. I suppose people in the Java community do something similar with some tool that can be called from the command-line.
In Python, people also use linters, which detect potential problems, like wrong method name's style, potential bugs, etc. pylint is the most common. Is there something similar in Java too? Java is statically typed and the compiler can catch most problems, which in Python would go unnoticed until runtime, but, still, are there linters in the Java community and do professionals use them?
I know that IntelliJ, VSCode or even the Eclipse can offer code formatting, to some extent, and maybe they can also be configured to use specific styles, but this doesn't ensure that the style will be uniform across team members, so that's why I think it's would be useful to have command-line tools to do this job in a pipeline (e.g. GitHub Action or Jenkins)
 
 
12 hours later…
3:02 PM
In the Java community, there isn't a single de-facto standard formatter like 'black' for Python, but there are several well-respected tools that are widely used. For code formatting, the most common ones probably include:

1. **Google Java Format:** It provides a standardized code format that follows Google's Java style guide. It can be easily integrated into build tools like Gradle and Maven, as well as used as a plugin for various IDEs or from the command line.

2. **Checkstyle:** It doesn't format code directly but checks if your Java code adheres to a coding standard. This tool is highl
 

« first day (4935 days earlier)      last day (11 days later) »