Currently building viwo-cli: https://github.com/OverseedAI/viwo
- The next reader has no clue why a number is that number.
- It's super hard to find in the codebase / update in all places
Instead:
- Assign to a variable and give it a meaningful name.
- Hoisting to the top of the file or refactor to a config file.
#programming
- The next reader has no clue why a number is that number.
- It's super hard to find in the codebase / update in all places
Instead:
- Assign to a variable and give it a meaningful name.
- Hoisting to the top of the file or refactor to a config file.
#programming
I use these methods all the time:
- console.time() - easy way to time function calls
- console.table() - easy way to view a list of objects
- console.error() - easy way to view errors
I use these methods all the time:
- console.time() - easy way to time function calls
- console.table() - easy way to view a list of objects
- console.error() - easy way to view errors