News for hackers. Stuff that matters.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by oinksoft on Thursday August 22, 2013 @07:44PM (#6260804)
Are you saying that VB6 as a platform is superior to the web in its current state, all things considered? The comparison is silly, there is no competition in terms of distribution, portability, flexibility. Can you not see how it is remarkable that web development tools can rival desktop GUI environments, given that by design, everything on the web is running in a very limited sandbox, one based largely on the work of slow-moving standards bodies?
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by lelandbatey on Thursday August 22, 2013 @08:04PM (#6260898)
Yeah, you're right, that is cool and that is remarkable. But Javascript still really sucks sometimes.

To use an analogy: I'm not saying the plane doesn't fly, but I am saying the plane seats are uncomfortable.

Also, this is a total aside: what if there actually was a way to stuff like C++ on a computer in sandboxed environment that could be loaded automatically by a user in a seamless way? If that happened, if you took away Javascripts monopoly of the highly portable and convenient environment, it'd be dropped so fast you could blink and miss it.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by pcwalton on Thursday August 22, 2013 @08:37PM (#6261017)
> Also, this is a total aside: what if there actually was a way to stuff like C++ on a computer in sandboxed environment that could be loaded automatically by a user in a seamless way? If that happened, if you took away Javascripts monopoly of the highly portable and convenient environment, it'd be dropped so fast you could blink and miss it.

This is what asm.js enables for non-garbage-collected languages, and what Binary Data enables for garbage-collected languages.

But I think you're overestimating how much people want to move away from JavaScript. The overwhelming majority of Web pages never leave the JavaScript interpreter in Firefox, because they just aren't bound on JS execution speed. What is far more important than raw JS speed on most Web pages is ease of development and DOM/CSS performance. I think it'd be hard for C++ to gain much mindshare on the long tail of Web sites, even in a world where asm.js was universal, easy to use, and 100% of native speed.

JS has plenty of faults, but one thing it's never lacked is convenience. Conversely, C++ has many virtues, but one thing it's never had is ease of use. Given that calculus, I expect JS to continue to dominate for a long time.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by catnaroek on Thursday August 22, 2013 @11:11PM (#6261484)
> JS has plenty of faults, but one thing it's never lacked is convenience. Conversely, C++ has many virtues, but one thing it's never had is ease of use.

That is a weird thing to say. Maybe it is just me, but when I use JavaScript, I cannot stop worrying about the possibility that there is yet another corner case I have not contemplated. Admittely, C++ is full of corner cases too; but, in my experience, it can be coerced into being a more or less civilized language by making a list of strictly verboten constructs, including, but not limited to, void pointers, manual resource ownership management and casts other than static_cast. When you leave these out, you actually have a smaller language that is easier to reason about. With JavaScript, no list of bad constructs can do - you need to actively rely on the semantically crazy stuff to do anything useful.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by rybosome on Friday August 23, 2013 @03:36AM (#6262220)
What semantically crazy stuff do you have to rely on? I don't advocate mindlessly buying into the cult of Crockford, but he outlines a pretty reasonable subset of the language in "JavaScript: The Good Parts"

The only thing I can think of that you might mean is function scoping, which I would agree with.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by saurik on Thursday August 22, 2013 @08:15PM (#6260943)
PNaCl
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by lelandbatey on Thursday August 22, 2013 @08:22PM (#6260959)
Which is awesome to actually use, but it doesn't have the interoperability that Javascript does. Maybe one day it will, and that'll be awesome. But till then, we'll never know.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by mistercow on Thursday August 22, 2013 @10:51PM (#6261425)
I wonder if it would be possible to shim PNaCl with emscripten as a fallback.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by PommeDeTerre on Thursday August 22, 2013 @08:12PM (#6260927)
Even today, web apps do not rival the desktop apps of a decade or two ago. Yes, there has been some advancement, but web apps are still inferior in every respect.

The performance of web apps is much worse than that of desktop apps, for example. Complex desktop apps written in C, VB, and PowerBuilder ran just fine on 486 or early Pentium systems that have a very small fraction of the processing power and resources of a modern system. Yet it's still common to see web apps in general perform quite poorly on these modern systems, while doing less than the mid-1990s apps did.

Developers at least have some choices when it comes to desktop apps. They can use a multitude of different languages, along with a variety of different libraries and frameworks. This is a much richer ecosystem than what we get with web development today, where you're basically stuck with JavaScript, or a language that's nothing more than a slight veneer over JavaScript (CoffeeScript, TypeScript, and even Dart). Don't even bother mentioning asm.js or Emscripten. Asm.js is merely a rancid subset of JavaScript, and Emscripten is experimental at best.

The portability argument isn't even valid. Languages like C, C++ and Python offer superb portability today, especially if used with one of the extremely cross-platform GUI toolkits available for making desktop apps. Given that almost every major JavaScript implementation today is written in C and/or C++, the portability of JavaScript is inherently no better than than of C and C++.

The ability to communicate over a network isn't anything special, either. All sorts of desktop apps have been doing this for several decades now.

The distribution argument also isn't valid. The package management systems offered by most Linux distributions, for example, are far nicer to work with. They make it trivial to find and install native apps, and unlike web apps, you get to choose if and when you upgrade, rather than having changes forced upon you time and time again.

The sandbox argument is also irrelevant. Various mainframe and UNIX-like OSes have offered several different ways of jailing or otherwise isolating processes for many, many years now. It's nothing new. But unlike the browser, they give real control over how much access is allowed, and without imposing horrid performance loss.

All of these limitations of web apps come together to make for a user experience that isn't enjoyable.

At best, web apps can imitate desktop apps, usually at a quality and user experience level 10 to 15 years behind desktop apps. It's objectively incorrect to claim that web apps "rival" desktop apps, when all of the evidence shows that they clearly do not.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by oinksoft on Thursday August 22, 2013 @08:19PM (#6260952)
Parent specifically stated that modern frontend development tools pale in comparison to VB6. You couldn't write a VB6 program and run it on Mac, Linux, a random smartphone, tablet, eReader, hell, even video game systems like the Sony PSP have had web browsers and been able to load web apps for a while now.

You throw out "the distribution argument also isn't valid" as though firing up a Linux package manager or going to download some binary program on Windows/Mac is at all comparable to simply clicking a URL in an email. Not to mention the security implications of desktop distribution.

No, the mediums are not comparable. Your rebuttals consist of "your argument isn't valid" but offer no counterpoints, rather, they simply describe the way desktop development is done these days. It's fine and dandy that you think desktop programming is the state of the art, but there are vast differences between web and desktop environments, and it's why things like the Chromebook can exist.

There are many people these days for whom the internet is the computer.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by WayneDB on Thursday August 22, 2013 @10:05PM (#6261299)
Lets say we've reached this plateau where we can run these moderately limited apps almost everywhere, in a browser. Great! We've been here for some time now though, since HTTP/HTML has always run anywhere a browser could be found... All you're saying is that we have browsers in more places now. That is pretty fantastic, no kidding. There's still nothing wrong with saying that the foundation it all runs on mostly sucks for building application front ends.

What's wrong with wanting better? How awesome would it be to have a safe, well engineered browser that wasn't limited to just HTTP, HTML, CSS and Javascript?

Give me a full duplex network stack, native graphics and broader input controls. Give me file access and a multi-language runtime! Sandbox it all, I don't care!! Microsoft has done all of this (exceedingly well, in a very short time) with Silverlight which can run dynamically downloaded C#, F#, VB and Python modules on Windows, OS X and (limitedly) on Linux. It could definitely be done better by a more open group.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by CmonDev on Friday August 23, 2013 @06:19AM (#6262609)
Now Silverlight was _actually_ innovative and modern. As opposed to 20-ish year old broken script and mark-up languages that have to be backwards-compatible.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by roin on Thursday August 22, 2013 @10:06PM (#6261304)
If "web apps are still inferior in every respect," why do we find ourselves using web apps more and more and desktop apps less and less? Should I expect to download the next gen of great applications from a cool shareware site like in the good old days of a decade or two ago? Web apps have won the desktop, at least for now. It's what people want, and it's what people are getting, mostly for the reasons cited above. Mobile, now that's a more interesting story.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by kybernetyk on Friday August 23, 2013 @05:51AM (#6262541)
> why do we find ourselves using web apps more and more and desktop apps less and less?

Do we?

> Web apps have won the desktop

Tell that to my text editor, photoshop or audio editor. Or my email client - or even the native Evernote application. For all of these there's no serious web version.

This comment might sound snarky but I'm honestly trying to think of what web apps I regularly use. And I can't come up with one.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by pjmlp on Friday August 23, 2013 @03:38AM (#6262225)
I don't want them, even though I also consult for web development.

At home the only web applications I use, are the ones I am forced to, like hotel booking systems and forums, because USENET is moribund.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by catnaroek on Thursday August 22, 2013 @07:50PM (#6260831)
I have yet to see any widely used Web development tool that facilitates local reasoning: looking at a piece of code and knowing what it can or cannot do, without having to look at the rest of the program/page/stylesheet/whatever.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by fizx on Thursday August 22, 2013 @07:56PM (#6260854)
Web components/shadow DOM may help sooner or later.

http://www.w3.org/TR/2013/WD-components-intro-20130606/

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by RWeaver on Thursday August 22, 2013 @08:04PM (#6260897)
And Angular directives are pretty self contained, with their own scope, template, functions, etc. You need angular.js obviously, but that's just the generic library.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by wslh on Thursday August 22, 2013 @08:05PM (#6260900)
Surely it remains easier to develop with VB6 than with Javascript. I am talking mainly from the IDE perspective.

One of the core technologies behind VB6 (COM) remains widely used in Microsoft Windows today.

Re:Javascript Frameworks Are Amazing and Nobody Is Happy by solomatov on Friday August 23, 2013 @03:17AM (#6262169)
Try JetBrains, WebStorm, it's a great IDE for JavaScript. It's much more handy than VB6's IDE.
Re:Javascript Frameworks Are Amazing and Nobody Is Happy by wslh on Friday August 23, 2013 @09:04AM (#6263196)
I love JetBrains products but... where is the drag & drop functionality to build Web UIs? VB6 was released on 1998!