3 ms·
I once wrote a thing that went all over gmail figuring out where all the pending mail was supposed to go and presenting it as an interactive dashboard. It was e
by blendbox 8y ago
I once wrote a thing that went all over gmail figuring out where all the pending mail was supposed to go and presenting it as an interactive dashboard. It was easy to do in Go because baking in the html templates, static assets (like d3) and backend logic is pretty simple with Go’s standard libraries and build system.
I wrote another thing in Go that determined the backend latency of an anti-abuse system within Google. That prober made about ten million requests per second. Again I chose Go (over C++) not for its performance but for the ease of giving that thing a fancy interactive status page.
- djtriptych 8y agoCurious how Go made the interactive dash easier. Maybe something like a direct connection between channels and websockets?
- blendbox 8y agoGo has the html/template package which is a type-safe template language for generating html, with loops and whatnot. It’s awesome. Go also has built-in support for blurting out any structure as JSON so it’s dead simple to write jsonp handlers. https://golang.org/pkg/html/template/ https://golang.org/pkg/html/template/ https://gobyexample.com/json https://gobyexample.com/json
- djtriptych 8y agoGotcha - I thought by interactive you were perhaps referring to realtime capabilities.