3 ms·
I would reject PR that introduce code like this. I disagree with the article. You should not introduce "safeguards" as described in the article. In few years ti
by Chyzwar 8y ago
I would reject PR that introduce code like this. I disagree with the article. You should not introduce "safeguards" as described in the article. In few years time, someone will make bug assuming that users id starts from 1.
Instead, you can write this as (js):
banSendersOfMessages(messages) {
messages
.forEach(({senders}) => senders.forEach(banAccount));
}
In the ruby community, there is the principle of least surprise. Your design you should not introduce astonishing things.