In theory, I think it makes sense to encapsulate the database connection logic to make it more easily reusable, but as the link below argues, our modern frameworks essentially take care of this now.
2 of 2
Add a comma. Fix dead link (404). Reference: https://web.archive.org/web/20240601000000*/https://www.nichesoftware.co.nz/blog/2011-05/494/reconsidering-repository-pattern
Pang
- 335
- 5
- 8
Splendor
- 251
- 1
- 4