|
|
|
|
|
by recursive
3996 days ago
|
|
Lack of understanding of floating point numbers is one of the most persistent and pervasive problems in programming. Just look at Stack Overflow on any given day. I've also helped co-workers more times than I can count on problems that stem from not understanding how floats work. |
|
They were more experienced, convinced me I was being pedantic, and I myself wasn't coding on that project anyway. Months later, we had to do a panic refactor as real-world usage immediately made the app fall over.
These are the kinds of bugs I discovered as a kid writing crappy computer games for my friends and I: "floats for everyone! This is way easier!", followed later with: "floats are slow, and I don't understand half my bugs!".
Actually, on this project I found myself explaining several things I'd learnt from recreational games programming. Things that you apparently don't learn in CS (I did EE, so I wouldn't know), or a decade of doing the J2EE business middleware dance.