Testing in Go: testing floating point numbers

I’ve been working on a library that includes some vector manipulations in Go, trying to follow good development practices and starting with writing my tests first. But early on, I ran into a bit of a problem: floating points. The problem Now, we know that floating points are an issue in programming, by the very nature of how they’re represented in memory. I loved Julia Evans’s brief explanation of how floats work in her Linux Comics Zine (scroll down to the sixth panel), and for a more in-depth explanation, see this piece by Carl Burch....

One Piece of Advice

A couple of weeks ago, Jessica Rose posed this question to the tech crowd: What piece of advice do you wish you had been given when you entered the industry? — Jessica Rose (@jesslynnrose) August 7, 2017 It’s a great question. Previously, I had different answers depending what age range I was addressing – one for middle school students, and another one entirely for college students. While the answers I’ve given have changed throughout my career, I think I can consolidate all the different versions into this one:...

2017-08-25 · 5 min · julia ferraioli · Career