6 ms·
1. Absolutely my experience. NPM is pain. 2. Whether you go positional or use an options hash, you still need to carefully unpack your args at the top of th
by daotoad 7y ago
1. Absolutely my experience. NPM is pain.
2. Whether you go positional or use an options hash, you still need to carefully unpack your args at the top of the subroutine. And do it consistently. There are a ton of libraries to help with this, too.
The most important thing is to pick a house style and do it everywhere that doesn't need to be different.