by vivin · 10y ago · 0 comments
You can't do that easily in Java. You need to spend some time understanding the language, the ecosystem, how to bundle your code into an artifact, and then how to release and publish it; the barrier of entry is much higher because there is a lot more to learn and understand.
The article mentions Android - I haven't worked much with Android and so I'm not familiar with the libraries there. Is there the same sort of problem in the Android ecosystem that you see in Node? I wonder if he is talking about the fragmentation of Android implementations (flavors from different providers), which is a different thing entirely. Seeing as Android uses Java, I'm thinking the ecosystem is not like Node.
JavaScript on the other side is a language that only its conceptor could love. All these frameworks are sort of required to be barely productive. Which is why you end up with these big frameworks to abstract the various browsers, introduce databinding, or add static typing.
For instance why can't we just add a URL attribute to an input to provide autocomplete and validation. It is such a common scenario there shouldn't be a need for a javascript framework to provide that.
Same thing with responsive design.
But these technologies are stuck in the 90s and barely evolve anymore.
You can. <input type="url" /> is part of HTML5[0].
Of course, support may not be universal[1], which is why you will probably always have to use javascript if cross-compatibility matters.
Of course, its not exhaustive by any means. But your general everyday stuff is covered.
[0] http://stackoverflow.com/questions/4716503/reading-a-plain-t... [1] http://stackoverflow.com/questions/326390/how-do-i-create-a-... [2] http://stackoverflow.com/questions/3402735/what-is-simplest-...
I don't mean to bucket all java devs as bad, many are great and it's a credit to the language that it is easier to start using than c++.
Plus the open source community includes some Apache kind sub communities in which developers are really persistent and proud to commit to what they are building.
Source: I spent years developing with GWT
IMO transpilers are a Faustian deal. That's what my experience has taught me, your mileage may vary of course.