News for hackers. Stuff that matters.
Re:No more JavaScript frameworks by dasil003 on Wednesday December 24, 2014 @12:02AM (#8791615)
Don't throw the baby out with the bathwater. Sure JS frameworks are often unnecessary, that doesn't mean they aren't solving real problems.

The scope of applications and interactivity found in today's browser-based apps today dwarfs what we were doing even 10 years ago. The amount of experience and expertise that is being codified in (for example) Ember.js is fantastic and will allow you write much richer web apps in far less code than trying to achieve the same functionality with it.

Saying just use JS directly is sort of like saying don't bother with Rails, CGI.pm has everything you could ever need.

Re:No more JavaScript frameworks by joesmo on Wednesday December 24, 2014 @03:12PM (#8794366)
> Saying just use JS directly is sort of like saying don't bother with Rails, CGI.pm has everything you could ever need.

That pretty much sums up the article's stance on frameworks. Even with reusable components, there will be a need for frameworks because just using JS/CSS/HTML directly, one would essentially be creating a framework with each application. There are standard things that a framework encapsulates in any language or target environment which will be unnecessarily repeated and sub-optimally created if one decided to start from scratch on every application. I think the author misses this part completely. While learning a framework enough to start making things in it may take a day or two, creating a new framework because one hate using frameworks will take days to weeks and still likely leave desiring functionality they had not thought of or had implemented badly.

Re:No more JavaScript frameworks by chipsy on Wednesday December 24, 2014 @06:03PM (#8794822)
This is also going to vary depending on the domain problem. If you're aiming to make something large and comprehensive, it helps to start "a bit too crude" so that every assumption you make at the start is grounded in the understanding of where you want to go later. But if you're pumping out microsites, a framework automates the process and makes it easier to maintain a large body of them.
Re:No more JavaScript frameworks by abnormalbrains on Wednesday December 24, 2014 @04:02AM (#8792181)
> The scope of applications and interactivity found in today's browser-based apps today dwarfs what we were doing even 10 years ago.

I'd dispute that. 10 years ago we had pretty brilliant browser based apps. They just happened to be using flash or Java applets whereas now they're using javascript.

Re:No more JavaScript frameworks by BerislavLopac on Wednesday December 24, 2014 @05:43AM (#8792383)
Actually, I wrote a pretty complex browser-based app in 2002. It ran on Microsoft Explorer as it was the only capable browser at the time, and it used Javascript, XML and XSLT to construct a Windows-like UI environment within the browser -- you may check the code at https://bitbucket.org/BerislavLopac/waexplorer
Re:No more JavaScript frameworks by sanderjd on Wednesday December 24, 2014 @12:56PM (#8793746)
I used the web 10 years ago, along with a lot of those flash and java applets, and I use the web now, along with a lot of these richly interactive javascript applications, and comparing then with now strikes me as truly ridiculous. The web is hugely more usable now.
Re:No more JavaScript frameworks by agumonkey on Wednesday December 24, 2014 @07:39AM (#8792618)
There were but probably in-house non public ones. I had a course where the teacher explained how its company was building portable asynchronous desktop-like applications in JS since early 2Ks. Maybe the exception though.
Re:No more JavaScript frameworks by reitanqild on Wednesday December 24, 2014 @05:20AM (#8792353)
A few examples would come in handy. The only place I can remember using flash and enjoying it was youtube. (And then only because there wasn't a better/standard way of playing videos.)
Re:No more JavaScript frameworks by abnormalbrains on Wednesday December 24, 2014 @05:41AM (#8792378)
There were some pretty good multi-user flash games around 1999/2000, when things were just getting going. I can't remember the names though at the moment.

It's only recently that graphics / audio / video / networking in javascript is almost as good as flash/java was 15 years ago!

Sometimes it's easy to think we're on the cutting edge. But we're really not.

Re:No more JavaScript frameworks by dasil003 on Wednesday December 24, 2014 @12:07PM (#8793515)
I'm sorry but the UX on Flash and Java plugin-based apps was horseshit. They were sluggish and encapsulated clumsily within the plugin sandbox so the integration to the browser was terrible.

Yeah people did some amazing work on those proprietary platform when they were the only game in town, but it really doesn't hold a candle to what we have today in terms of a fully open and native web tech stack. If you want to be reductionist why not just say we haven't been on the bleeding edge since Lisp was invented and declare everything else derivative tripe.

Re:No more JavaScript frameworks by mike_hearn on Wednesday December 24, 2014 @01:23PM (#8793878)
They were faster than browsers were at the time, that's for sure. Especially Flash. At one point no serious design-focussed website worth its salt bothered with HTML because Flash was so much better and easier to author. Heck it's probably still easier to author.

The "open and native web tech stack" is something that evolved messily over a long period of time in a piecemeal fashion with little overall design vision. It's hardly something to be proud of.

Re:No more JavaScript frameworks by Turing_Machine on Thursday December 25, 2014 @02:49PM (#8797004)
And yet the sites that succeeded long-term (Google, Amazon, etc.) didn't use it, while all the sites that consisted of a zillion MB of Flash and Java all went by the wayside.

Maybe design snobbery isn't as important as designers think it is.

And yes, the web is definitely something to be proud of.

Re:No more JavaScript frameworks by dasil003 on Wednesday December 24, 2014 @11:23PM (#8795395)
There has never been a cross-platform, cross-media, accessible platform like the web in the history of computing or humanity for that matter. It is very much indeed something to be proud of.
Re:No more JavaScript frameworks by forrestthewoods on Wednesday December 24, 2014 @03:26AM (#8792096)
I've been seeing the term "web app" a lot lately. Not exactly sure why. Is a web app different from a website? I guess so probably maybe? I'm not really sure.
Re:No more JavaScript frameworks by jfaucett on Wednesday December 24, 2014 @03:50AM (#8792153)
In my understanding, a webapp is essentially a "desktop-like" application for the browser, i.e. something like gmail or an online paint program, something that is interaction driven, will probably use websockets for giving a realtime feeling, etc. A website is the traditional static content, like a blog or a news site. Obviously, these are just relative and its a scale so there cross-over and sometimes its hard to define in exactly which category an app/site falls.
Re:No more JavaScript frameworks by gsands on Wednesday December 24, 2014 @03:51AM (#8792156)
quite different-- Web app, think Google Docs/Sheets.

Web site, think blog, information landing page, or even web store product page(s).

Web app is highly interactive (may or may not be an SPA single page app), relying heavily on javascript for UI events, saving/fetching application state, remote datasets, and sometimes making use of modern HTML5 browser features.

Web site is displaying information and is just augmented with some javascript mostly for improving the UX or attaching analytics/social plugins etc.

Re:No more JavaScript frameworks by growse on Wednesday December 24, 2014 @04:41AM (#8792259)
Given that this distinction is entirely subjective (no-one will be able agree on what a test that pigeonholes pages as a 'site' or 'app'), how is it a useful distinction?
Re:No more JavaScript frameworks by sanderjd on Wednesday December 24, 2014 @01:01PM (#8793775)
It may not be a useful distinction, but it's useful to have a sense for where on the continuum the thing you're building sits, in order to make technology and architecture decisions. If you're building something more "website-y", it should probably have an architecture that optimizes for search-ability and static caching, whereas if you're building something more "webapp-y", the architecture should probably optimize interactivity and dynamic updates. Most things end up somewhere in the middle, but leaning one way or the other.
Re:No more JavaScript frameworks by acjohnson55 on Wednesday December 24, 2014 @10:41AM (#8793173)
I don't think anyone is trying to partition projects into disjunct sets. It's more of a continuum. I think the idea of "app-iness" just captures the interactivity and statefullness of an experience. Incidentally, that additional complexity is exactly what the Web technologies were initially ill-suited for and what frameworks were built to help manage.
Re:No more JavaScript frameworks by JanezStupar on Wednesday December 24, 2014 @05:23AM (#8792360)
Is a "simple website" and a "complex website" a better distinction in your opinion?

Thus I am a complex website engineer. It sounds ridiculous. The webapp developer is domain knowledge wise closer to traditional "application development" than to traditional "website development".

Re:No more JavaScript frameworks by forrestthewoods on Wednesday December 24, 2014 @03:01PM (#8794318)
Are sites like vox or gawker considered websites or web apps? Their custom CMS is quite expansive. How bout NYTimes? Is YouTube a web app or a web site? I'd be curious to know some examples on either side. Preferably several closer to the line but on one side or the other rather than far away.
Re:No more JavaScript frameworks by JanezStupar on Wednesday December 24, 2014 @06:14PM (#8794851)
I think you answered your own questions.
Re:No more JavaScript frameworks by gsands on Wednesday December 24, 2014 @04:57AM (#8792303)
I totally agree web site and web app are used interchangeably sometimes -- I was just answering the op as to how I and many people I know classify them and their differences as they relate to the topic of the article, javascript.
Re:No more JavaScript frameworks by fithisux on Wednesday December 24, 2014 @06:30AM (#8792469)
For me a web app is an HTML5 web page, that has its interaction logic coded in JS and presentation is done by altering HTML5 DOM and where JS uses REST to send/receive data.

In other words as someone else noted, it is a sandboxed application with

sandbox execution environment == browser IO == REST UI = HTML5 DOM manipulation of the same page

A website (or server app) is a series of HTML5 web apps or HTML5 static pages (JS-less web apps) with navigation logic and inter-app state living in a server app.

Re:No more JavaScript frameworks by woah on Wednesday December 24, 2014 @07:22AM (#8792584)
Why the emphasis on REST? Websockets tend to be easier for complex applications.
Re:No more JavaScript frameworks by nawitus on Wednesday December 24, 2014 @09:11AM (#8792872)
It's not entirely subjective.
Re:No more JavaScript frameworks by k__ on Wednesday December 24, 2014 @08:57AM (#8792841)
I'd say

web sites are content centric and made for consuming it.

web apps are interaction centric and made to "do" something.

Re:No more JavaScript frameworks by Turing_Machine on Thursday December 25, 2014 @08:29AM (#8796215)
I agree. Consumption v. production is a good way of looking at it.

Note that this definition means that certain pieces of software could be considered either "sites" or "apps", depending on how they're being used.

For instance, blog software like Wordpress would be a "site" for the readers, but an "app" for the person who writes the posts.

Re:No more JavaScript frameworks by k__ on Saturday December 27, 2014 @02:43PM (#8803670)
A "product" can consist of different parts.

One part is an editing software/gui and one part is a reading software/gui. Both working on the same data.

Since both are used by different kind of users, I would design them as different programs (one a site and one an app).

Re:No more JavaScript frameworks by digitalzombie on Wednesday December 24, 2014 @06:48AM (#8792508)
It's been around for a long time now actually.

Web App are application like website.

So instead of traditional application/program such as Quicken we got Mint.com now. It makes application OS agnostic now too.

Web sites are bunch of pages that are hot link or connected via URL. Think of the old days of geocities, xoom, tripod, etc..

Re:No more JavaScript frameworks by arethuza on Wednesday December 24, 2014 @04:28AM (#8792237)
A while back there was a lot of chat about "single page web applications" - I suspect people have simply condensed that mouthful into "web app".