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

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.


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

Search: