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

If anyone's interested (I am because I found myself to be a 'Lazier programmer') -

Timeit's time for three functions:

Lazy Programmer - 0.907521744301

Lazier Programmer - 1.0473810545812512

Using math.factorial - 0.12187403971609001




A 'lazier programmer' who actually checked the optimization of various factorial methods?

There's a joke in there somewhere...


Well, he only bothered to check three of them.


a lazy programmer is one who will write a shell script in an hour to generate three lines of boilerplate...


It's worth it, if you have to type the boilerplate code hundreds of times. Consider the time wasted in debugging errors due to typos etc. It's even more worth if that shell script (or, in my case an emacs yasnippet) is parameterized.




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: