What do I know about NaN?
I’ve been trying to level-up on my programming in the last year, and one of the areas I’m trying to grow in is algorithms. Algorithms are like magic, once you know the secret, it’s obvious, but until you crack one, they seem almost impossible.
Sometimes you just want to create something beautiful and you don’t care who gets credit as long as it gets made. With that in mind you may steal a few elements in an effort to move faster. To be clear, I’m not referring to immoral/clandestine stealing. I’m talking about something you could be 100% honest about, but pride prevents you from doing.
For example, I needed to code something today for a project. I started by recreating something that was already done on the internet. The problem was already solved. I just wanted to “feel” like the one that did it. But then I thought, “What am I learning?”, “What am I adding mankind’s collective knowledge?”
Not a damn thing.
As you begin your journey into Computer Science, you’ll realize that there a myriad of concepts designed to, for lack of a better phrase, rape your brain. As a general rule of thumb, I believe that brain rape should be assiduously avoided. Therefore, in an effort to do my part to lower the crime rate amongst in our community, I figured I’d explain an idea that hurt my brain when I first came across it. Namely, how are floats able to represent more values than ints can with the same space?