New answers tagged


Not exposing things is fundamentally preferable because it avoids commitment to an implementation. Once you've added something to a public interface, you cannot easily remove it ever again without possibly breaking clients. Someone, somewhere might be using it and complain if you later have to rename or remove it. You should view publishing things as a ...

Top 50 recent answers are included