You do know that Wechat's chat history stored in Tencent's database in plain text? The authorisation could check/monitor any Chinese citizen who uses Wechat, if they say something bad about the government or spread the rumours of some officials corruptions, they will be in big trouble?!? How do you mean Chinese people are not harmed? Their privacy is absolutely harmed and they have less choices for chatting and that's what the Chinese government wants - they want everyone in China to use Wechat so they could absolutely control/monitor
What's the problem of writing a function with a few lines of code and exports as a module?
I think it's totally fine. Like other people said, it's the mindset we borrow from Unix, do one thing and do one thing well. The function would be well tested, and could be reusable.
I don't understand why so many people just require lodash into their project (when they start project) while they only use one or only minimum set of the functions. I mean lodash is a very great library with clean and well tested code, but it's also quite bulky like a big utility lib, and for me most of the time I only need one or two of the functions I would just go to npm and find a module just do that thing.
https://news.ycombinator.com/item?id=9275041