-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Answer about Active Record reformulated as series of additional quest…
…ions
- Loading branch information
1 parent
0c96e51
commit b612fae
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Active Record | ||
|
||
## [Krzysztof Grzybek](https://github.com/krzysztof-grzybek) | ||
Topics suggested by [Krzysztof Grzybek](https://github.com/krzysztof-grzybek) | ||
|
||
1. Those objects are hard to test - they are tied to the data layer. | ||
2. This design violates SRP, so it might lead us to huge classes with lots of responsibilities. | ||
4. It's easy to hit the database multiple times (e.g. in foreach loop) because of the leaking abstraction. | ||
- How hard is to test code that uses Active Record? How is domain model tied or independent from data layer? | ||
- What's the relation between objects implementing Active Record and the Single Responsibility Principle? | ||
- How easy is to hit the database multiple times (e.g. in foreach loop) because of the leaking abstraction? |