New answers tagged coding-standards
-1
votes
Is Exception caught in the Service class a matter of preference?
It is particularly relevant to code management and the way you want to act when an exception occurred.
I'm working on a project and recently encountered this exact thought and discussed with team to ...
-1
votes
Is Exception caught in the Service class a matter of preference?
When an exception/problem occurs, you basically have three choices:
Suppress it.
Handle it.
Transform/Pass it.
If you catch an exception and do nothing, most people would say you suppressed it. ...
0
votes
Is Exception caught in the Service class a matter of preference?
The code above can work since the code has been in production for more than ten years, but [..]
Anything that you do beyond getting the code to work is a matter of preference, if getting the code to ...
5
votes
Is Exception caught in the Service class a matter of preference?
Is this a matter of preference to handle errors on the DAO or service level?
No, it is not a matter of preference, because the DAO level will probably not even know about the service's LOG, so it ...
2
votes
Is Exception caught in the Service class a matter of preference?
Everything is a matter of preference.
But the code you've shown is pretty much a perfect example of how not to use exceptions - other than in extreme cases (e.g. a top-level handler just before the ...
Top 50 recent answers are included
Related Tags
coding-standards × 554coding-style × 150
naming × 58
java × 53
c# × 46
programming-practices × 42
conventions × 39
code-quality × 32
c++ × 30
php × 29
clean-code × 24
naming-standards × 23
.net × 20
python × 19
architecture × 18
c × 18
object-oriented × 15
comments × 15
variables × 14
design × 13
javascript × 13
language-agnostic × 12
code-reviews × 11
readability × 11
standards × 11