Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aboodman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
451.
▲
by
aboodman
11y ago
That is by design. React native isn't intended to be write-once, run-anywhere. iOS and Android UIs are just too different for that to work well. Instead, React Natives gives you a place (javascript) where logic can be shared between iO
452.
▲
by
aboodman
11y ago
I've done this in a few applications. It's really great. You of course want to build up abstractions within your codebase to keep things DRY, but you get to use the normal tools for that (variables, functions, objects, classes) et
453.
▲
by
aboodman
11y ago
CSP does help, but it is document-specific, not js-context specific. At least in Chrome, tracing the js context that was responsible for some network request would be significantly more difficult to implement.
454.
▲
by
aboodman
11y ago
Sorry for the slow reply. I think part of what you are proposing Chrome already implements and calls "isolated worlds". Chrome extensions don't operate directly on the page's DOM, they have an isolated version of it ( ht
455.
▲
by
aboodman
11y ago
It's a good idea, and one we thought of and tried to make work when I worked on extensions. Unfortunately, the DOM itself is so flexible and powerful, that it can be used to exfiltrate information through a variety of mechanisms. For e
456.
▲
by
aboodman
11y ago
People have been building multiple applications from a single codebase for a very long time. Put all the targets on a continuous build, add tests, and you're set. The only sense in which versioning matters at all is that if the protoco
457.
▲
by
aboodman
11y ago
> avoid code sharing wherever possible Err, wut? It sounds like you are saying that pretty much the one reliable guideline in the history of software has become a bad idea. (I have come across places in my career where code sharing was n
458.
▲
by
aboodman
11y ago
I think you are misunderstanding how this works. Google isn't "handling" any events at all, your webpage is. Google is instead the source of those events - it is simulating the role of a user. So the bot loads your webpage in
459.
▲
by
aboodman
11y ago
Did you watch the video? This project replaces everything about ui and layout within your app.
460.
▲
by
aboodman
12y ago
It would be possible to generate basic API documentation from the IDL the browsers actually use internally. It would not necessarily be completely accurate because sometimes browsers don't use IDL for their features, but it would be an
461.
▲
by
aboodman
12y ago
"Component-based file structure. Handling styles, view hierarchy, and business logic all in one file is a step backwards. Poor style reusability is one direct consequence of this approach." If only there was some way to pull out a
462.
▲
by
aboodman
12y ago
Man, Facebook is just crushing it with the open source UI libraries recently.
463.
▲
by
aboodman
12y ago
It depends on the browser. In Chrome, extensions are sandboxed using similar technique as web pages are. However, just because they are sandboxed doesn't mean they are safe. It just means they won't be able to get privileges beyon
464.
▲
by
aboodman
12y ago
err, WebForms is the exact opposite. WebForms is about taking something stateless (HTML) and making is stateful. React takes something stateful (the DOM) and makes it stateless.
465.
▲
by
aboodman
12y ago
I think that the reason people started calling React 'declarative' was because 'functional' was interpreted to mean (purely) functional, with no side effects. But yes, exactly. React is similar to an immediate mode graph
466.
▲
by
aboodman
12y ago
That isn't declarative in the same way... that's markup. The kind of declarative that is used in React is more like functional programs. You write programs, using actual code, that compute ("declare") exactly what the UI
467.
▲
by
aboodman
12y ago
That is absolutely not what would happen. Some organization that relies on it would fork it and maintain the fork. It would be highly likely they would even ask him to consult.
468.
▲
by
aboodman
12y ago
It is common to repurpose words this way. I think it is called 'metaphor'. See also: half the names in technology and all nearly every apple product name. Anyway, I find the term useful.
469.
▲
by
aboodman
12y ago
When you want to refer to the same concept over and over, it helps to give it a name. Other examples: ajax, lamp, nosql, soa ... they may be buzzwords, but they are helpful. I don't see the problem here.
470.
▲
by
aboodman
12y ago
I don't particularly care for them either, but sadly, the market has spoken.
471.
▲
by
aboodman
12y ago
iframes are the only unit of isolation on the web. Unless you want the like button you're hosting to have complete unrestricted access to your application's private data, then yeah, the like button needs to be in an iframe.
472.
▲
by
aboodman
12y ago
I expect people will try different things with SW, but that the pattern for offline will end up being basically what appcache implemented. That's because there's really only one way to do it: you split your app into a client/
473.
▲
by
aboodman
12y ago
The opposing viewpoint: http://fishbowl.pastiche.org/2002/02/12/xslt_is_the_spawn_of...
474.
▲
by
aboodman
12y ago
Saving the query in localStorage won't make it any faster. If anything it will make it slower. The performance issue the article mentions is that deciding which format to use in JavaScript breaks preload scanning and essentially serial
475.
▲
by
aboodman
12y ago
heh, no: http://i.imgur.com/ohETHFD.png
476.
▲
by
aboodman
12y ago
Not that it's well-known or anything, but the Gin library that's part of Chromium uses C++ meta-programming to generate structure-specific code to 'parse' JavaScript types into C++ types: https://code.google.
477.
▲
by
aboodman
12y ago
Market street is not a very vibrant part of the city. Nevertheless: http://www.yelp.com/search?find_desc=coffee&find_loc=San+Fra...
478.
▲
by
aboodman
12y ago
It's missing my favorite one: http://www.cantonese.sheik.co.uk/dictionary/words/45161/
479.
▲
by
aboodman
12y ago
More information in breaking changes would definitely be appreciated. I can't decode what "Composite Component functions can no longer be called directly" means exactly in terms of code that will no longer work. I definitely
480.
▲
by
aboodman
12y ago
All tabs are on the same thread in Firefox. Tabs appear to load concurrently only because io is async.
More ›