Hacker News new | ask | show | jobs
by arrty88 4424 days ago
So does Google Web Toolkit which is what AWS's admin console uses. Why would I use Dart over Google backed GWT?

I'm also torn between using a pure javascript framework like Google Angular or a hybrid such as GWT or Dart. There are seriously too many options and no one has a clue what the long term support for any of these will be.

1 comments

GWT is ideal for Java developers who prefer to write in Java, but have to deploy in JavaScript.

Pure JavaScript (or a JavaScript framework) are ideal if you either know JavaScript, or are ok learning the language. IMO, learning JavaScript is a good bet since it is the language of the web. Basically, your web apps will either be written in JS or compile to JS, so knowing the language is worth it.

Dart would be selected over GWT if you don't know Java, but like the lang features of Dart.

Of course, there are tons of options in the 'compile to' langs, with CoffeeScript being a popular on.

Learning to program in Javascript is like programming in assembler. That may be unavoidable when there are no high level languages, or when those languages and toolsets are immature. But there are serious experts (and people with a lot of experience with very large js programs) who don't see js as the solution. "Goaded by Meijer as to whether it is possible to write big programs in JavaScript, Hejlsberg replied, €œYes, you can, but you can€™t maintain them," much to the delight of the crowd that featured several prominent language and tools designers. €œI think there are some unmet needs there,€ Hejlsberg added. Bracha immediately piped in saying, €œThat€™s part of why we€™re doing Dart. You can write them [large programs in JavaScript]; it€™s terribly hard and afterward you€™ll be punished.€ - See more at: http://www.eweek.com/c/a/Application-Development/Is-it-Time-...
> Yes, you can, but you can€™t maintain them

Well, i'd say it's more difficult but doable.(And i'm not a fan of javascript).

But tools are being created to help developpers maintain these "large apps".

Code analysis engines are the most important thing to work on in javascript land.I wish more people would work on that instead of framework MVC X or Y.

Something like TernJS ,while not perfect is actually doing interesting thing in term of understanding js code and auto completing it.

Now as I always say,dont like javascript? doesnt matter there are 100 languages you can use instead of it and still write for the web. The only thing that is important imho is wether that language can directly talk to the DOM or not,and invoke third party libraries.

that's why i'm not comfortable with Dart(but maybe it has changed).

I was trying alternative languages the other day and wrote this with one of them,the only thing i had to do to make it run in a browser is eval the transpiled version :

   (define $taskList ($ "#tasks"))
   (define $input ($ "input"))
   (define $form ($ "form"))
   ;; add task
   (define (addTask task)
   	(let ((t ($ "<li>" {"class" "task link"} )))
        (t.on "click" (lambda (event)
                       (t.toggleClass "stroke")))
   	(t.text task)))
   ;;on submit
   ($form.on "submit" (lambda (event)
       ($taskList.append (addTask ($input.val)))
       ($input.val "")
       (event.preventDefault)))
FYI this is the classic todo list with jQuery

There is no shame into writing for the web and not using javascript.At the end of the day,only the product matters.