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

Guide improvements #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Guide improvements #6

wants to merge 1 commit into from

Conversation

aleks-tpom6oh
Copy link
Contributor

No description provided.

Copy link
Contributor

@hugihlynsson hugihlynsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise LGTM!

@@ -40,6 +42,7 @@ At [Avo](https://www.avo.app/) we use [Rescript](https://rescript-lang.org/) as
1. Prefer `Belt.Result` over throwing exceptions. This would make the execution flow more homogeneous. Exceptions are generally considered to be avoided nowadays.
1. Don't put more than 3 React components in a single file. Use separate files for big components or components that are used in multiple places.
1. Use [`rescript-promise`](https://github.com/ryyppy/rescript-promise#usage)(`Promise.then(…)`) over `Js.Promise`. The bindings are nicer, have stricter error handling and are recommended as of Rescript 10.1.
1. If you want to use `open` locally, use it inside a function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this one!

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

Successfully merging this pull request may close these issues.

2 participants