Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best Practices Guide #237

Open
abrthel opened this issue Jan 15, 2018 · 0 comments
Open

Best Practices Guide #237

abrthel opened this issue Jan 15, 2018 · 0 comments
Labels

Comments

@abrthel
Copy link
Collaborator

abrthel commented Jan 15, 2018

Especially helpful for new comers, a best practices guide would collect random mind dumps from
Solnic & company from various sources, and compose them into several examples featuring the best and worst ways to use ROM.

It is my intention for this issue to remain open as to collect examples via comments until such time there is a sufficient number of examples to create the guide.

If you have found a pattern that you think works well PLEASE SHARE IT

Best Practices

Skinny Repos, Fat Relations

ROM repository methods should be as small as possible, instead move customization and queries into relation views.

Invalid Object Anti-Pattern

Objects should not be allowed to be created in an invalid state - Solnic notes

@solnic solnic added the guide label Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants