Thoughts Category

Online Learning for Computer Science

I was able to resolve a true head-scratcher of a code bug today. As it turns out, in C++ (1 + 2) / 2.0 = 1.5 while, counterintuitive as it may be, (1 + 2) / 2 = 1. This is just a wonderful quirk of integer arithmetic, but it can have some bizarre and […]

Read More