Test seeders representation #914
stalniy
started this conversation in
Contribution RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This RFC proposes to replace class based seeders with function based one
Motivation
Function is a simpler primitive for data generation than a class, so it's just less to write and easier to use. Having a class with static methods doesn't give us any benefits in comparison to a simple function.
Example
Class based approach
Function based approach
Main benefits
Drawbacks
Additional notes
In reality this change doesn't bring much value and just pure optimization of used primitives.
Beta Was this translation helpful? Give feedback.
All reactions