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

I talk like that because one of my first assignment in College when learning C was exactly a program to calculate change. And the inherent floating point erro causes the said 0.01 difference. I was fresh into C, third, maybe fourth class. You can be sure that no one had the least idea why that happened. Obviously, we all took the easy way out, used integers multiplied by 100 to work around it, but you couldn't expect me to figure out by myself WHY that was happening. This error, and the explanation of why it happened was the introduction to floating point class that we had after we saw it happen. It is just one of those things that you have to see working to understand (like recursion and pointers).

I am always impressed to see how experienced people take a lot of knowledge for granted from others. It is not like you have never 'left shit behind' in your career. I would even daresay that if you pick the code you made six months ago, you will see that it could be improved in a lot of ways. Not because you wanted but because you didn't know better, mostly. This is pratically an axiom in the life of a coder.

Please don't use "experience" as an excuse to diss the hardships of others. We were all there one day.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: