Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



In 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.


I agree, this seems incredibly readable to me, though I work in TypeScript / JavaScript all day and know the language and its patterns very well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: