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

Use compositional model pattern in semesterpage.models #36

Open
JakobGM opened this issue Jun 15, 2017 · 2 comments
Open

Use compositional model pattern in semesterpage.models #36

JakobGM opened this issue Jun 15, 2017 · 2 comments

Comments

@JakobGM
Copy link
Owner

JakobGM commented Jun 15, 2017

A very good blogpost to follow along, and if another example is required; read this.

The final result should reflect the file structure represented in the former blog post.

@JakobGM JakobGM changed the title Use fompositional model pattern in semesterpage.models Use compositional model pattern in semesterpage.models Jun 15, 2017
@JakobGM
Copy link
Owner Author

JakobGM commented Jun 15, 2017

Where state is not too complicated, use stateless helper functions in a utils module.

@JakobGM
Copy link
Owner Author

JakobGM commented Jun 19, 2017

Utility functions should only take in a HTTPRequest-argument if possible. See chapter 9.2 of 2SoD. Such functions should also return the request object again (and possibly mutate it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant