Improve Code Quality #5779
maxpatiiuk
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some of these are pretty big, so feel free to create separate issues for them when you start working on them
Entrypoint/main function first
All other functions below it in order they are called
This way, code is ordered in the direction it is executed - easier to read and reason about
Use just "undefined" wherever possible for consistency and to avoid the need to constantly check for both ===undefined and ===null
- [ ] Add social media optimization https://socialsharepreview.com/ (i.e, when a link to specify is shared with someone in slack)
npm outdatedor https://www.npmjs.com/package/npm-check-updatesObject.fromEntries(Object.entries().map(([key,value])=>[key, remap(key,value)] as const))is used (i.e, values in an object are changed, but keys remain the same)while (true) {...}orfor (;;){...}as they cause optimizer to bail out thus bad for performance.finally()instead of long.then().catch()chains{ id__in: ids.join(',') }instead of separate request for each IDnpm installon dependency changesBeta Was this translation helpful? Give feedback.
All reactions