Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
STRML
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
451.
▲
by
STRML
13y ago
But that's the whole point; it's effectively the same operation, but Om takes 1/5 the time and takes a much more efficient path. Backbone with some simple RequestAnimationFrame deferral somewhat approaches that speed but in s
452.
▲
by
STRML
13y ago
Yes, you're right; I shouldn't have put the "it's pretty simple" statement just a few sentences after "It's complicated" - clearly, depending on the app, undo functionality can get pretty hard to mana
453.
▲
by
STRML
13y ago
It gets complicated; you have to store the inverse of every API call you use in order to back it out in order to have proper Undo support. IMO the UI is the easiest part of it, as you normally just reuse methods you already use in your app.
454.
▲
by
STRML
13y ago
That's great - benchmark 2 is essentially a bunch of useless work, and it appears to really speed things up by making sure we only actually touch the DOM every 16ms, instead of constantly. I'd imagine a Backbone integration with R
455.
▲
by
STRML
13y ago
Thanks for the input. I'll look into it. We've been talking a bit about doing a more general rewrite of LM and I've been looking for ideas that would make it worthwhile (not just cleaner code, but better perf or features). Th
456.
▲
by
STRML
13y ago
I'm not great at reading ClojureScript - but I'd really like to port some of the optimizations from Om, such as the rendering on requestAnimationFrame and usage of shouldComponentUpdate to Backbone.LayoutManager[1]. Swannodett
457.
▲
by
STRML
13y ago
Wasn't connect written by senchalabs in the first place, not bought?
458.
▲
by
STRML
13y ago
As other comments have pointed out, `_.debounce` is the correct answer. Here's the bit from the docs that always reminds me when to use `_.debounce` over throttle: _.debounce: [...] Useful for implementing behavior that should on
459.
▲
by
STRML
13y ago
You're close, but the rub is, every single http request uses the same agent (globalAgent), unless specifically passed an individual http agent or "{agent: false}" in configuration. So it is effectively a global connection poo
460.
▲
by
STRML
13y ago
It's pretty much always safe to set to Infinity or to turn the agent off. This is an anti-feature.
461.
▲
by
STRML
13y ago
This is the "insane default" that substack goes on a rant about in the hyperquest README: https://github.com/substack/hyperquest#rant There is a default connection pool of 5 requests. If you have 5 or
462.
▲
by
STRML
13y ago
Why can't IE be released in a form that is not so tied to the OS, and leave the old IE bits where they lie? In XP, for example, they could leave the rotting old IE8 guts in, and release a standalone IE11 that opens instead of IE8. Of c
463.
▲
by
STRML
13y ago
I would love to see this video. The only link I could find [1], unfortunately, was behind an auth wall restricted only to attendees of the event. Does anyone know where it might be found? 1. http://www.infoq.com/presentation
464.
▲
by
STRML
13y ago
Exactly - with the proliferation of Grunt in most modern webapp builds, it is incredibly simple to pre-compile your templates in your production builds. In fact, it's so fast (and I get useful stacktraces when my tpls have errors) that
465.
▲
by
STRML
13y ago
Except, that's not true - the Angular TodoMVC code is smaller and more expressive, and Angular's JS is actually smaller than Riot + jQuery. I get what you're trying to do here but please don't resort to misleading statem
466.
▲
by
STRML
13y ago
Breaking account locks on Windows is pretty simple, and full-disk encryption is not as easy to pull off as it is on OSX. If someone were to steal the computer, they would have as much time as they needed to break the Windows account and rai
467.
▲
by
STRML
13y ago
I'm working on a proxy / community-run fork[1] of Healthcare.gov. After all the histrionics about the site's performance and bugs, and upon seeing that it was a Backbone.js app (which I develop full-time), and with unminified
468.
▲
by
STRML
13y ago
This points to what is actually quite a large problem with the LastPass vault. A lot of people I know (myself included) keep the password saved on the vault, so that it will offer to AutoFill/AutoLogin when you visit a site you have an
469.
▲
by
STRML
13y ago
This is a great & informative answer. PhantomJS allows an attacker to get past any progressive challenge but it is nice that there is something else to go on. A properly-executed PhantomJS DDoS is a scary thing, it's great that you
470.
▲
by
STRML
13y ago
The Referer header is just one more thing that a sophisticated attacker will spoof. I think the GP is correct - with enough preparation, a concentrated PhantomJS attack will look exactly like users accessing the website en masse, and it c
471.
▲
by
STRML
13y ago
I have a good chunk of the frontend up at https://github.com/STRML/Healthcare.gov-Marketplace . As for the APIs, we will never see that code - Healthcare.gov reuses a large number of critical government systems that wil
472.
▲
by
STRML
13y ago
Yep, this is 100% real code, taken from the current working site. The initial commit is exactly the code that you would download every time you visited the site (and re-download, and re-download, as they failed to set caching headers). My h
473.
▲
by
STRML
13y ago
If anyone's interested, I've been working on an issue tracker & locally runnable version of the marketplace in a new repo[1] that was spawned from the former issue tracker on the removed repository. It has some issues with har
474.
▲
Irresponsible mistakes in Healthcare.gov's live marketplace
(github.com)
5 points
by
STRML
13y ago
|
0 comments
475.
▲
by
STRML
13y ago
That's a great demo - demo #2 was a trip for me, because that's just about what I see out my window right now - there's leftover rain from Usagi on the window, and the IFC2 in the background. This would make a great ambient b
476.
▲
by
STRML
13y ago
Has anyone done a Kinect + Oculus demo yet? Perhaps the last gen Kinect wasn't high enough resolution to get it right, but the next gen may be enough to do a somewhat convincing in-body effect.
477.
▲
by
STRML
13y ago
News used to do that, and sometimes still does. As special segments, they would show curious documentaries that explore interesting corners of the world and culture. But they feel like a dying breed.
478.
▲
by
STRML
13y ago
Referencing the video here: http://video.foxbusiness.com/v/2667694577001/writing-new-dic... I think the part that gets people most fired up about this is the complete lack of attention to detail and the "wow
479.
▲
by
STRML
13y ago
Selective enforcement is the real power government and police wield over the common person. If the laws were fairly enforced, against everyone, equally, citizens and law enforcement would be on more common ground. Instead, the breadth of la
480.
▲
by
STRML
13y ago
Don't forget streams, the more `node.js` way to parse HTML: var http = require('http'); var tr = require('trumpet')(); var request = require('request'); request.get('http://
More ›