News for hackers. Stuff that matters.
Re:Ask HN: Why did famous.js fail? by flukus on Monday July 18, 2016 @08:26PM (#12118774)
It seems as though it's entirely code driven. We've largely decided that declarative langues (html, xaml) are better for building user interfaces. This looks more like swing for the web.
Re:Ask HN: Why did famous.js fail? by carterehsmith on Monday July 18, 2016 @11:48PM (#12119460)
>> We've largely decided that declarative langues (html, xaml) are better for building user interfaces.

On the other hand, many of us decided the exact opposite.

Check the history ?. Declarative UIs has been around for, what 30-40 years, and they don't seem to be actually gaining any share.

They invariably look super-useful and productive when you build "my first app". Typically it is a "ToDo list".

Then you start using it to build something larger and then you swear a lot, and eventually realize that the whole premise is flawed, and then you decide never to use declarative UIs again, ever. lol.

Re:Ask HN: Why did famous.js fail? by Kinnard on Tuesday July 19, 2016 @12:02AM (#12119526)
Haha, that sounds like me. Except I more so swear a lot after developing too many apps using technology that was meant for adding hyperlinking to text documents . . .
Re:Ask HN: Why did famous.js fail? by flukus on Tuesday July 19, 2016 @12:15AM (#12119596)
"Check the history ?. Declarative UIs has been around for, what 30-40 years, and they don't seem to be actually gaining any share."

Really? Because HTML seems to be by far the most popular environment these days. many are even trying to push it to the desktop.

"Then you start using it to build something larger and then you swear a lot, and eventually realize that the whole premise is flawed, and then you decide never to use declarative UIs again, ever. lol."

What other abstractions are you using? If it was manipulating things based in jQuery selectors then I'd agree. But I find a combination with an MVVM framework (like knockout) it scales incredibly well.

Re:Ask HN: Why did famous.js fail? by Kinnard on Tuesday July 19, 2016 @12:27AM (#12119652)
I actually hate html+css and other developers I know hate it too. I feel like it's wasting many developer hours. I think one of the reasons its so "popular" is that there's no alternative that is widely supported by browsers. I think it's unlikely that mass end-user adoption can be driven by a substantially better developer experience.

However there may be opportunities elsewhere . . .

Re:Ask HN: Why did famous.js fail? by flukus on Tuesday July 19, 2016 @01:25AM (#12119910)
Sure it's a pain at times. But is there any other tech that makes it so easy to build apps/sites that work on anything from from a widescreen desktop to a smart phone?
Re:Ask HN: Why did famous.js fail? by Kinnard on Tuesday July 19, 2016 @10:11AM (#12121858)
There isn't one yet and that's the problem.
Re:Ask HN: Why did famous.js fail? by flukus on Tuesday July 19, 2016 @07:24PM (#12125713)
When/if there is one I'd expect it to share many of the traits that made html+css so successful.

In reality I'm expecting html+css to keep evolving and removing most of the pain points. Grids for example:

https://www.w3.org/TR/css3-grid-layout/

Re:Ask HN: Why did famous.js fail? by Kinnard on Tuesday July 19, 2016 @07:34PM (#12125750)
I think css+html has evolved and improved a lot. That's a good example.

But I think ultimately everything is being done to extend a legacy technology that was meant to add hyperlinking to texts and nothing more. I think a first-principles re-approach will be so much more powerful and free of the gravity of html+css constraints allowing developers to reach escape velocity.

Re:Ask HN: Why did famous.js fail? by flukus on Tuesday July 19, 2016 @10:39PM (#12126500)
XAML started off from a blank slate and got inferior (IMO) results. There are a lot of not so obvious upsides to html+css that often get thrown out.

Starting from scratch could be better in theory, but I'm doubtful that it will happen in practice anytime soon.

Re:Ask HN: Why did famous.js fail? by kristianp on Tuesday July 19, 2016 @11:07PM (#12126601)
I agree starting from scratch is unlikely to happen. XAML however, wasn't helped by being built in the era when XML was perceived as the solution to every problem.
Re:Ask HN: Why did famous.js fail? by Kinnard on Tuesday July 19, 2016 @12:02AM (#12119529)
Could you recommend some alternative UIs?
Re:Ask HN: Why did famous.js fail? by carterehsmith on Tuesday July 19, 2016 @12:54AM (#12119776)
Any component-based UI toolkit will fit the bill. There are many of them, as this is kind of classic approach, I would recommend React.

10 years ago, it was Sencha, DOJO, etc.

As for native, every OS provides component-based UI toolkit.

Re:Ask HN: Why did famous.js fail? by Kinnard on Monday July 18, 2016 @08:31PM (#12118795)
Why are declarative languages better for UI?
Re:Ask HN: Why did famous.js fail? by flukus on Monday July 18, 2016 @08:48PM (#12118854)
Because it provides I nice separation between the "static" parts of a program, the UI, and the dynamic parts, the data.

The first demo of this on the other hand, has html embedded in javascript strings. A program of any complexity written like this would quickly turn into a big ball of mud.

Re:Ask HN: Why did famous.js fail? by Kinnard on Monday July 18, 2016 @09:18PM (#12118941)
I'm somewhat skeptical of this separation of concerns
Re:Ask HN: Why did famous.js fail? by flukus on Monday July 18, 2016 @11:34PM (#12119397)
I'd encourage you to try it out:

http://jsfiddle.net/rniemeyer/LkqTU/

Re:Ask HN: Why did famous.js fail? by iamleppert on Monday July 18, 2016 @10:24PM (#12119147)
It's possible to turn any codebase into a big ball of mud. Declarative languages are just a tool, like object oriented languages are.

And arguably, if you choose a language based upon its ability to help you define what is "dynamic" vs. "static" you've made some mistakes.

Re:Ask HN: Why did famous.js fail? by Kinnard on Monday July 18, 2016 @10:34PM (#12119178)
>"And arguably, if you choose a language based upon its ability to help you define what is "dynamic" vs. "static" you've made some mistakes."

Please elaborate.

Re:Ask HN: Why did famous.js fail? by yrezgui on Monday July 18, 2016 @08:43PM (#12118839)
They're easier to read and code. Check out XAML for C#, it's dead simple. But one of their main problem is they advertised for too long (I remember waiting for ages) and we didn't get the 60 fps. It wasn't as fast as announced and painful to integrate.
Re:Ask HN: Why did famous.js fail? by flukus on Monday July 18, 2016 @08:49PM (#12118858)
I'd say check out knockoutjs instead, way simpler than xaml.