I wonder how many people program in Java with statements. I think this can be very useful on large projects without sufficient written contracts or outdated contracts. Partly when using web services, components ...
But I have never seen a single project using assertions (except for junit / testng tests ...).
I noticed that an abandoned class is a mistake, not an exception. Can someone tell me why they choose the mistake? Could this be due to the fact that the exception could be caught unexpectedly, and not the logger / reorganized?
If you are creating an application with components, I wonder where you put the statements: - On the component side, just before the data is returned via the public api? - On the client component side? And if api is called everywhere, are you customizing the facade template that will trigger the approval mechanism? (Then, I suppose, you put your statements and facade on some external project, and your client projects will depend on this approval project?)
I understand how to use statements and use them, but it's just interesting if some people have recommendations based on the actual experience of the statement.
thanks
Sebastien lorber
source share