Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
marcuswestin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
marcuswestin
16y ago
There's a javascript library under the hood that does just that: http://github.com/marcuswestin/fin
92.
▲
by
marcuswestin
16y ago
Fun is MIT licensed :) http://github.com/marcuswestin/fun/commit/05870f3f54fda43090...
93.
▲
by
marcuswestin
16y ago
The difference is the realtime synchronization across all clients. Fun comes with a complete network stack, ensuring that the state you're viewing is always up to date. Does that make sense? I actually do think that's a new value propositio
94.
▲
by
marcuswestin
16y ago
Sorry about that - fixed in http://github.com/marcuswestin/fun/commit/05870f3f54fda43090...
95.
▲
by
marcuswestin
16y ago
Totally - remains to be seen! Someone should take the underlying realtime datastore ( http://github.com/marcuswestin/fin ) and bundle it with mustache or <angular/>!
96.
▲
by
marcuswestin
16y ago
Absolutely! You can declare something akin to a function, which takes arguments and emits HTML. Imagine e.g. let taskTemplate = template(task) { <div class="task"> <span class="title">task.title&
97.
▲
by
marcuswestin
16y ago
The bottleneck with Fun is going to be the network latency. Any piece of UI that needs extra care, e.g. a very long list of items, is implemented in javascript with appropriate lazy rendering.
98.
▲
Fun - a new programming language for the realtime web
(marcuswest.in)
122 points
by
marcuswestin
16y ago
|
51 comments
99.
▲
by
marcuswestin
16y ago
Oh - the original question actually had intense debate in the title. It was removed - perhaps because they have lost mindshare? :)
100.
▲
by
marcuswestin
16y ago
intensedebate seems to have lost mindshare. I'd go with either jskit echo or disqus.
101.
▲
by
marcuswestin
16y ago
This will throw if console is not defined. Try if (!window.console) Or if (typeof console == 'undefined') Or if !('console' in window)) N
102.
▲
by
marcuswestin
16y ago
I use semicolons when they're needed (for loops, multiple statements per line), and don't use them when they're not. The code becomes cleaner to my eyes.
103.
▲
by
marcuswestin
16y ago
erlanger: you can consider the API stable now.
104.
▲
by
marcuswestin
16y ago
PersistJS is 12kb minified. store.js is 4kb unminified PersistJS falls back on flash and cookies, which is bad (flash slows down browser during page loading, cookies fatten your network requests). Store.js uses localStorage, globalStorage a
105.
▲
by
marcuswestin
16y ago
I'm not convinced that IETester changes the underlying APIs correctly. Because of bad experience with "Multiple IE" simulators in the past I don't test on anything but the real install.