We came across an interesting situation in our code base recently whereby two coding approaches which I consider important for writing maintainable code seemed to come into conflict with each other. The code we were working on needed to retrieve some customer details from a backend system by making use of the current user's 'customerId' which we can retrieve from the 'LoggedInUser'.
My initial thought was that since we only needed one property of the 'LoggedInUser' we could just pass in the 'customerId...
No comments yet, be the first one to post comment.