Hacker Newsnew | past | comments | ask | show | jobs | submit | saltcookie's commentslogin


its just javascript, its so error prone, it can take hella long to write simple algorithms, because of some undefined error.

compare that to golang, even though u make errors, the compiler is so awesome at pointing those out. And u can get so much done


I get that you like Go, but you can't run Go in a web browser. Ultimately, whatever you write will have to be evaluated in a web browser, which means it will be JavaScript at some point. Just like you've observed with CoffeeScript, writing in a different language is just a layer of abstraction on top of JavaScript.

Web apps have a back-end and a front-end. You can definitely write the back-end without touching JavaScript. You can even write it in Go. Square did a nice writeup comparing several:

http://corner.squareup.com/2014/05/evaluating-go-frameworks....

When it comes to browser side, you're stuck with JavaScript though. Trying to avoid it will only bring more pain and frustration than attacking the problem head-on.

I would point out that programming languages don't make errors, programmers do. I'm no fan of JavaScript. I too avoid it when I can. It's absolutely necessary if you want to write web apps though. As you become more familiar with JavaScript, your error rate will go down.

If JavaScript really puts you off, maybe consider going another direction, like mobile app development. Both iOS and Android applications are developed using compiled languages. You may find them more suitable to your programming style.


It is a poor workman who blames his tools.


works both ways : a good workman choose good tools.


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...


i read about a project that converts llvm byte code to javascript, do any of u know about it


Yes, Emscripten, basically takes C or C++ and compiles to JavaScript using LLVM.



http://readwrite.com/2011/06/06/cpp-go-java-scala-performanc...

this is the real artical, which just points to the pdf


That is true, i don't understand y some one changed the tittle



u guys should check out http://sumodrop.com


U all should check out http://sumodrop.com


it works on mobile browsers also


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

Search: