3 ms·
The leadPlayer() and chooseCaptain() example is not so good. My first instinct, as a DYNAMIC programmer, is "Why the hell is chooseCaptain() fed an empty list?
by bjourne 7y ago
The leadPlayer() and chooseCaptain() example is not so good. My first instinct, as a DYNAMIC programmer, is "Why the hell is chooseCaptain() fed an empty list? You can't have a team with no players!" I think the article's proposed fix is painting over the real bug.