go

Adding probability to testing: Golang

In my work as a Software Engineer at Kickback Rewards Systems, I recently wrote an application that essentially reads packets from a TCP stream. It’s amazing to me that writing a concurrent application that reads bytes from a TCP stream is SO EASY with Go, in less than 150 LOC! We’ve had similar applications in C and Python that are much larger than that at my company! Anyway, this application merely needed to mock the functionality of the production system, so that we could test the transmission of a new packet type from our client code.