3 ms·
Readability over brevity for maintainable code (I know an interview doesn't require this, but I look for it) While this works, it's not exactly intuitive.
by dbetteridge 1y ago
Readability over brevity for maintainable code (I know an interview doesn't require this, but I look for it)
While this works, it's not exactly intuitive.
- gloosx 1y agoIn context of JS this kind of promisified async code is intuitive and this pattern is quite common in various projects and libraries, but the solution in C-like pseudocode of course looks more readable for general programming public.
- no_wizard 1y agoI agree, this seems incredibly readable to me, though I work in TypeScript / JavaScript all day and know the language and its patterns very well.