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

I never understood why every language has a plethora of fibonnaci tutorials. "DO THE FIBONNACI IN X USING Z PROGRAMMING PARADIGM" ok thanks, no more please.


Because you already:

1. Know what the Fibonnaci numbers are.

2. How to compute them.

3. Said computation is straight-forward, but it requires some form of looping (either recursion or iteration) and some form of arithmetic.

The combination of those traits means that if I present code to compute the Fibonnaci number for an arbitrary number in some random programming language, you can infer a lot about that programming language. In other words, the only variable in that situation is the programming language itself, which allows you to use the other information you already know to learn about that language relatively quickly.




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

Search: