Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

just a week ago, i made a test for myself, i decided to write merge sort in golang and javascript.

My golang program was complete in like 10min, but javascript program took 2 hrs. I dont know if its just me, but i tend to make small errors while programing, like making sure a variable is not undefined and stuff. Even though my logic was perfect its just very difficult to debug algorithms in javascript, let alone any lint for ide thats reliable.

the golang compiler is really good at catching errors, and makes programing more fun for me atleaset



'use strict'; will help you a little with javascript.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: