4 ms·
The correct way is: 1. Use comments to split visual awkward part into chunks. # a lot of code... ## === # more a lot of code... 2. Use inner functions if t
by raincole 3y ago
The correct way is:
1. Use comments to split visual awkward part into chunks.
# a lot of code...
## ===
# more a lot of code...
2. Use inner functions if that chunk need to be reused
3. Only move the chunk to top-level function if you think it's worth to take time to make its required state into parameters/return value