Ask HN: What tricks have made you a better programmer?

https://news.ycombinator.com/item?id=34831747
by newsoul • 3 years ago
9 11 3 years ago

For me it was:

1. Writing out input output relations for a function with quite a few examples before actually starting to write the function. Basically writing tests. It makes you realise what the function is actually supposed to do. I learnt this from How to Design Programs (htdp) book. It was a game changer.

2. Working on Fermi Problems aka Street Fighting Mathematics. I learnt from the books of Sanjoy Mahajan. They made me much better at estimating how the output to some input may be like.

What about you?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com