Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gcommer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
gcommer
8y ago
https://github.com/laverdet/node-fibers Is a project that enables writing code this way. It's used, for example, in webdriver.io so that you can write synchronous test code that transparently (ie, without `await`)
62.
▲
by
gcommer
8y ago
> Burn all of your markup down to the ground and replace what you had with <div id="app" /> This isn't totally true -- if you really only wanted to implement a single toggle and leave the rest of the page alone,
63.
▲
by
gcommer
8y ago
This is a great write up. It's also why the DNS root servers have a policy of surviving DDoS through massively over-provisioned, multi-org, anycasted redundancy rather this sort of smart DDoS mitigation that drops traffic: DNS is so cr
64.
▲
by
gcommer
8y ago
> 1) what happens when evaluating is going to take a lot longer that usual? There's a 500ms timeout (but only when it thinks there may be side effects? https://github.com/ChromeDevTools/devtools-frontend/bl
65.
▲
by
gcommer
8y ago
I was curious how they implemented the side-effect checking, so I dug my way from the dev tools frontend eventually into v8, where it turns out to basically be a bunch of whitelist checks over bytecode and builtin javascript methods https:
66.
▲
by
gcommer
8y ago
All but maybe a few small % of the TIOBE index would fail all or some of those requirements... So while the enthusiast side of me heartily agrees with you, the professional programmer side of me has seen plenty of good code despite a lack o
67.
▲
by
gcommer
8y ago
> Yeah, arguing that language features that have caused untold pain, constant confusion, and an shameful level of strictness aren't an issue because third-party linters and typed DSLs give you warnings is... weak. The point the auth
68.
▲
by
gcommer
8y ago
> new CartID(productID.toString()); With good data modeling and safety checks, this should fail: a product id and cart id should have some sort of distinguishing syntax (eg "P1234" vs "C1234") and so `new CartID("
69.
▲
by
gcommer
8y ago
In no way does that article claim there is a backdoor. It claims CIA and others have heavily invested in finding 0day exploits to gain access to the iphone; this news item is about apple closing some of those.
70.
▲
by
gcommer
8y ago
Zone.js is an existing library to try and provide CLS in javascript. async_hooks is an experimental API being built in to node to allow this. The OP is a project implementing a zone.js-style API using async_hooks. Also see this PR on the or
71.
▲
by
gcommer
8y ago
The problem is that all CLS systems in JS are inherently leaky, due to the many games JS libraries/apps can (and do) play with resource pooling. Implementors basically have to play a plug-the-holes game getting all the popular librarie
72.
▲
by
gcommer
8y ago
I tested it out with some fairly dependency-heavy node JS projects and it worked great (albeit with a human-noticeable perf difference vs node). R projects suffer the usual R-on-JVM issues, see eg https://github.com/oracle&#
73.
▲
by
gcommer
8y ago
That analogy assumes a lot about how hard/hidden obvious id numbers in URLs are. I'd counter that this situation is more like "putting your stuff on the curb and being mad when people take it". Rather than scapegoat the
74.
▲
by
gcommer
8y ago
I've heard rumors of such prepackaged systems being sold on the high-end (for people willing to spend ~$1000 just to cheat in a video game...). But VAC and similar anticheat aren't even at the level of being able to worry about su
75.
▲
by
gcommer
8y ago
The author arbitrarily decides on "number of failures" as their measure of reliability, as opposed to a much more reasonable "number of failures" * "mean cost of failure". There is also no attempt to correct fo
76.
▲
by
gcommer
9y ago
Gradual programming certainly strikes me as the future of programming. I see the end goal as being able to use a single, unified language for every application. Certain sections of a large codebase might need their own special jargon or abs
77.
▲
by
gcommer
9y ago
I was convinced about CSS in JS after using http://www.material-ui.com/ , which remains the easiest-to-integrate JS component library I've ever used. Previous to CSS in JS, component libraries had to incude additional i
78.
▲
by
gcommer
9y ago
Functional components are clearly the superior style -- the readability advantage alone overrides pretty much everything else (compare reading an almost-declarative function vs having to grok a mini state machine). People always get dragge
79.
▲
by
gcommer
9y ago
For context, choosing names for new javascript features always takes this web-compatibility into consideration. Most famously in the naming of String/Array.prototype.includes, which was originally going to be .contains before it was re
80.
▲
by
gcommer
9y ago
This is one of the better javascript FP books that ramps into fairly advanced concepts: https://mostly-adequate.gitbooks.io/mostly-adequate-guide/ A simpler, gentler introduction is available from https://ww
81.
▲
by
gcommer
9y ago
> It's hard to believe that Patreon didn't ask for feedback on this model initially. From their initial blog post announcing this change: > In preparation for this change, we ran experiments and months and months of research
82.
▲
by
gcommer
9y ago
Love it. Saved 600MB... and test cases still passed :) I ported it to bash really quick, as thats probably easier for people to drop into their dotfiles if they don't have a Golang env setup. https://gist.github.com/gpi
83.
▲
by
gcommer
9y ago
Most of the "Alice" types I know come from a background in academia, which strongly selects for these types of people who can leave their emotions at the door and iterate on ideas quickly and rationally. None of the complaints rai
84.
▲
by
gcommer
9y ago
> Although we still believe our BSD + Patents license provides some benefits to users of our projects I'm probably missing something, but: If their BSD+Patents was actually strictly "better" for the user, could they not ju
85.
▲
by
gcommer
9y ago
A much more typical experience is to do those 2 steps, and then spend a bunch of time digging through github issues to find the right ignore/suppression incantations to add to your .flowconfig so that your dependencies (including all t
86.
▲
by
gcommer
10y ago
That sounds like an awesome idea (given that display is totally separated from the format-on-save anyways). I got a quick feel for it with this in a terminal: watch -n 0.1 'prettier --print-width $COLUMNS index.js' ... an
87.
▲
by
gcommer
10y ago
I view the use of try-catch as actually strictly an improvement... Before you had either 2-argument promise.then(...) or promise.catch(...), which were effectively the same as a try-catch (and in most promise libraries .then and .catch DID
88.
▲
by
gcommer
10y ago
Depends how you look at it. The straightforward answer would be "no" because await lets you assign the result of a promise to a variable without calling `.then(...)` with a callback and then accessing the variable inside the callb
89.
▲
by
gcommer
10y ago
The paper linked in the article: "Phonotactic Reconstruction of Encrypted VoIP Conversations"[1] specifically works in a situation without padding because the compression scheme affects the length of packets in a semantic way. [1]
90.
▲
by
gcommer
10y ago
I agree passive is a bit odd phrasing. Though, with how many 3rd party assets websites load nowadays, I suspect this could be done without introducing any additional requests by passively monitoring the already-existing 3rd party requests.
More ›