-
Notifications
You must be signed in to change notification settings - Fork 1
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
Promise patterns #4
Comments
Code folding is fot n00bs, but I like @podviaznikov's suggestion. I think name methods work well. I do like keep the linear structure of it. Also, I think we could add some JSDoc between these methods:
|
haha, code folding is workaround in order to achieve same feature as Method 2 provides. I'd rather have Method 2, but code folding with Method 3 would work for me too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let us discuss our new coding patterns now that we moved everything to promises:
Method 1 Linear program w/ comments
Pro: looks linear
Cons: unit testing is harder, requires more setup
Method 2 Functional
Pro: functions are broken up into smaller components. Each function can have proper unit tests and docs
Con: have to look at different areas on the page to understand full function.
Any other methods people prefer & which do you like the most?
The text was updated successfully, but these errors were encountered: