by cm2187 · 10y ago · 0 comments
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.
<input type="text" validation="url1" autocomplete="url2" ...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-...
IO.File.ReadAllText(FilePath)
new String(Files.readAllBytes(path));
or new String(Files.readAllBytes(path), StandardCharsets.UTF_8);
?