News for hackers. Stuff that matters.
Re:Show HN: Sapper.js – towards a better web app framework by QGmLe on Tuesday January 02, 2018 @11:41AM (#16053011)
An ideal web app framework would not be in JavaScript...
Re:Show HN: Sapper.js – towards a better web app framework by wcarron on Tuesday January 02, 2018 @11:59AM (#16053195)
Do you have any other frameworks in mind? Ones that easily and concisely hook into the DOM APIs provided by browsers? One that hot reloads in dev? Or maybe just accomplishes even a handful of the 11 targets listed at the beginning of the article?

Because I don't know of any. Except maybe the new Rust framework, Yew. Which seems very interesting.

Re:Show HN: Sapper.js – towards a better web app framework by dsego on Tuesday January 02, 2018 @02:48PM (#16054905)
This ideal framework would probably work in an ideal browser, without the DOM. Doug Crockford put it nicely, today's browsers are a "vast source of incompatibility, pain and misery".
Re:Show HN: Sapper.js – towards a better web app framework by innocentoldguy on Tuesday January 02, 2018 @02:54PM (#16054958)
Perhaps you're right, there may not be one. However, I think the point the OP is trying to make is that JavaScript is a shitty language and it would be better to invest some effort in replacing it with something better than to continuously try to "fix" all its inherent shitty-ness over and over again to little avail. Sure, JavaScript isn't as shitty today as it was 10 years ago, but it still isn't a well-thought-out, well-designed, or consistent language.

For examples of JavaScript's shitty-ness, I'd point to its various function declaration styles and their disparate effects on the code you write, its wishy-washy scoping, namespacing, the number type's precision problem, NaN being a number type, the ambiguity of this, just to name a few.

Re:Show HN: Sapper.js – towards a better web app framework by QGmLe on Wednesday January 03, 2018 @11:02AM (#16062070)
yes. well put
Re:Show HN: Sapper.js – towards a better web app framework by brett40324 on Tuesday January 02, 2018 @11:08PM (#16058295)
FWIW, there's Dart, but at the end of the day it's still just JS. This isnt to argue your point either, but one possible answer to the question(s) you bring up.
Re:Show HN: Sapper.js – towards a better web app framework by meathook on Tuesday January 02, 2018 @11:44AM (#16053050)
It's fine to hold that opinion, but in order to usefully contribute to this conversation you need to give a concrete reason why.
Re:Show HN: Sapper.js – towards a better web app framework by mwcampbell on Tuesday January 02, 2018 @11:54AM (#16053146)
Here's my reason, rooted in practicality and not taste: For me, an ideal app framework would cover both web and native apps. All the major native app platforms rely at least partly on AOT compilation. Android, in particular, is based on a runtime that resembles the JVM at the API level and takes JVM bytecode as input at build time. So for me, the ideal app framework would be in a language that's amenable to compiling ahead of time to efficient JVM bytecode, as well as efficient JavaScript and, for good measure, efficient native code for iOS and Windows.

I think Kotlin is becoming a good choice for these criteria. If you want to follow Mr. Harris's framework as compiler approach, Scala may also be a good choice, because of all the compile-time metaprogramming facilities it has. I don't know how Scala Native stacks up beside Kotlin Native, though, and I've read that Scala 2.12 requires Java 8, so that's probably not a good choice for downlevel Android support.

Re:Show HN: Sapper.js – towards a better web app framework by ricardobeat on Tuesday January 02, 2018 @01:19PM (#16053913)
Have you looked at HaXe?