Julia Jacobs recently asked a question in the WatchMeCode community slack, about some asynchronous code she wanted to clean up. In this question, she wanted to know of good options for restructuring deeply nested promises without introducing any new libraries. Would it be possible to clean up the code and only use ES6 features? It’s a common […]
In my RabbitMQ Patterns For Applications (email course / ebook), I talk about how you should limit the amount of time allowed for a Request/Reply scenario: The typical use case for a request/response scenario is to retrieve data that a user needs to see, from some external system. When the request is made, a reasonable […]
Someone on twitter asked me a question about promises a while back. It was a good question about the general use of reject and resolve to manage a yes/no dialog box. The short answer is always resolve with a status indicator – but I think they wanted more of the “why” than just this one specific answer. To understand why, there is some background to dig in to, first: modal dialog results and reject vs resolve.