Also, even in the article it noted to use a library if your language allows.
Reply on news.ycombinator.com