Hacker News new | past | comments | ask | show | jobs | submit login

After a year or so writing "async" code it has become natural. I now think of the real world as async. For example during Christmas I do not "poll" the door every 10 minute to see Santa clause. I simply wait until he knocks on the door and then I run the knockOnDoor callback function.

So in my mind functions did not have colors. They where "first class functions" that you could pass into another function that later called it. Now however we do have normal functions (before ES6-7), as well as async/await promise returning functions, and *function yealding generator functions.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: