News for hackers. Stuff that matters.
Re:Ask HN: Which are the best resources to learn software ar... by veeralpatel979 on Friday January 31, 2020 @07:42PM (#22207572)
Thanks! Are you suggesting business logic depends on persistence or persistence depends on business logic? How is the second option possible?
Re:Ask HN: Which are the best resources to learn software ar... by ellius on Saturday February 01, 2020 @10:50AM (#22211112)
The second option is possible if you declare an abstract dependency (preferably just a contract like an interface) and make your persistence layer implement it. I highly recommend "Clean Architecture" if you'd like to learn more about that approach.