Why Go will kick ass in your next project
raygun.io
raygun.io
1. When I realized I could write a http response using anything that accepted an io.Writer (a struct with a compatible Write() method). I can use fmt.Fprint and pass http.ResponseWriter as the first parameter. Need a new line? Don't concat an \n, just use Fprintln.
2. Go has a number of interfaces such as sql.DB (database/sql). Even though Go doesn't provide SQL access directly, it standardizes SQL access and means if a library fizzles out or I write a new one from scratch, I can drop mine into an existing project with almost zero changes -- This meant choosing an SQL driver was very easy, I was reassured that if I picked the wrong one, fixing that would be easy as long as I picked one that built upon sql.DB.
Go seems to be very cleanly designed.
I have yet to have a wow moment with slices. Looking forward to it!