Depending on how you look at things, integrated development environments (IDEs) are evil because they make it possible to write software without knowing what you're doing. With the IDE's help, it's very easy to auto-import and control-spacebar yourself into a pickle, all without reading documentation, looking at source code, or otherwise paying your dues for reusing code.
Changing your IDE to create classes that are either private or at least package-private by default (as opposed to public) is a good ten-second hit of preventative medicine for ensuring that visibility helps to enforce architectural constraints. In fact, package-private is what you get by default in Java unless you type public or private on purpose (i.e., for some reason), but most IDEs ship with configurations that make decisions for you.
Add a comment.









