18

*Senior Dev:* Ah yes, we need to put try-catch in every function to handle errors and Logger.Log() at the beginning.
*Me:* Is not better to define a global error handler and use the stacktrace instead of doing all that?
*Senior Dev*: ...
*Senior Dev*: Is a rule here, do what I'm telling you.

Comments
  • 6
    "Senior".

    He is just older maybe
  • 8
    Or Mexican
  • 5
    Better to creat a decorator for the class that specifically performs the logging operation that way you can log inputs and outputs easily any further logging should be an injectable dependency
Add Comment