5 ms·
I love Rails (though criticism of its magic is fair), but this isn’t a good analogy. Async/await is literally syntactic sugar over the Promises abstraction. The
by CoffeeOnWrite 5y ago
I love Rails (though criticism of its magic is fair), but this isn’t a good analogy. Async/await is literally syntactic sugar over the Promises abstraction. There’s nothing magic about Promises, and certainly nothing magic about async/await. In fact, I’d argue you’re in for a slower learning curve if you believe there to be magic in these areas.
- horsawlarway 5y ago> In fact, I’d argue you’re in for a slower learning curve if you believe there to be magic in these areas. I 110% agree with you. This is Rails striking again! "Don't look at the magic, just memorize it." might as well be Rails' slogan. Convention over configuration really just means "Memorize all my conventions, and don't ask why I picked them". Great for the case where your use-case is in line with the chosen conventions and you don't want to think all that hard (or you just need to pump out content - like a contract agency). Pretty terrible for just about everything else.