It’s funny, how it goes back to node style (which they copied from Go, probably) of (error, result).
Also don’t understand how did you get try/catch hell — exceptions propagate through as much nesting as needed—one just need to compose Promises properly.
We have interviewed some people and we think *they* are doing it wrong. Let’s try explaining to them that we are going to ask them to guess that arrays-only solution is actually “guess that you need to implement your own hashmap”. And ask a lot of computer science stuff because we heard that google uses it.
Apart from that a decent article for some aspects of interview preparations.
I’ve heard about the following cheap and dirty solution against spammers not targetting a specific site:
Add visible checkbox: “I’m not a robot” and a hidden one.
Bots will either check both or none.
I don’t understand what’s the problem with creating an instance of a component manually (just with `new`) and calling methods in a regular way. If calling `componentDidMount` in a “detached” way (BTW you can call it with `.call`) is OK.