Go Programming Language
I have spent some time to learn and practice Go Programming Language.
The staring point is this article, How We Moved Our API From Ruby to Go and Saved Our Sanity. Project changed from Ruby to other language is not fresh. But this time, I would like to try, too. Because in my experience, by using Sinatra/Ruby for my small website, I am not quite happy about the performance either. In the meantime, I want to try concurrent feature in Go. So I learn.
I try to implement some script in Go, and then try to establish web server using go-martini with mgo. Here’s the demo and Github
The first surprising is that, the code is quite simple and clean. I must admit that I am quite satisfied with Ruby syntax. I like block and many syntax sugar it provided. At begin I complain about all the error-handling idiom in Go. But after some script, I found it provided a good idiom to user. If I am in...