Skip to content

Comment on 21 Nested Callbacks

Comments

This reminds me of some of my earlier excursions into coding. For example, early on I needed to be able to randomly select from a set of 100 numbers. Not knowing about arrays, but knowing about classes and the random module I created a class that had 100 fields, and a method that contained a giant if-else tree to select one. Of course, I did not want to write out all of that, so I ended up creating an excel spreadsheet, and used that to mass produce a bunch of the repeated lines.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.