Skip to content

Instantly share code, notes, and snippets.

@vipul-zambare006
Created July 3, 2020 02:50
Show Gist options
  • Save vipul-zambare006/2771988d44403b1610fb89be68770b92 to your computer and use it in GitHub Desktop.
Save vipul-zambare006/2771988d44403b1610fb89be68770b92 to your computer and use it in GitHub Desktop.
CODE REVIEW CHECKLIST:
1. check file names
2. check class, method and variable names
3. Write Small pure functions
4. Remove unused code and comments
5. Liverage on TypeScript, use interfaces and union types
6. RXJS: USe Pipeable attributes
7. avoid subscribe in component and use async pipes, so that when component destroys it will automatically unsubscribe
8. Avoid memory leaks: use takeUntil in pipe
9. Don’t use nested subscriptions: Use “SwitchMap, forkJoin or combineLatest”
10.
https://itnext.io/clean-code-checklist-in-angular-%EF%B8%8F-10d4db877f74
BEST ARTICLE:
https://www.freecodecamp.org/news/best-practices-for-a-clean-and-performant-angular-application-288e7b39eb6f/
https://github.com/ryanmcdermott/clean-code-javascript
https://code-maze.com/angular-best-practices/
https://blog.angularindepth.com/fastest-way-to-cache-for-lazy-developers-angular-with-rxjs-444a198ed6a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment