News for hackers. Stuff that matters.
Re:Skills Poor Programmers Lack by rounce on Sunday July 21, 2019 @02:55PM (#20493009)
Was trying to think of exceptions to this when I read and and could only think of one: When you need to wrap a callback API with unusual callback arguments, where a `promisify` like helper won't work. Then again, I still feel the wrapping function should be defined outside of the `then`, as it feels like this is a separate utility to the work being done in the Promise chain.
Re:Skills Poor Programmers Lack by r4mbini on Sunday July 21, 2019 @03:05PM (#20493062)
This is the context I’ve used it in