Skip to main content

All Questions

8 votes
3 answers
1k views

Avoiding side effects in immutable class constructor

I rewrote a very long method in which some data is queried from a database, based on info about a particular account, which is queried first. I split out the account info into an immutable inner ...
jbruenker's user avatar