Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thedufer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
96 ms
·
901.
▲
by
thedufer
13y ago
> Sure, but what if the error is thrown at you as an exception in the first place—which happens a fair amount, because that's how the JS runtime tells you when something is wrong? How do you get from there to the callback way? Its o
902.
▲
by
thedufer
13y ago
I guess I don't see the problem. You got your answer from the "duplicate", right? And marking as duplicate gives google the search terms without creating duplicate answers. It sounds like this was exactly the outcome that
903.
▲
by
thedufer
13y ago
It doesn't do anything about thrown exceptions. The correct way to deal with an error in asynchronous code is to pass an object describing the error as the first argument to the callback. Any code that takes a callback is expected to
904.
▲
by
thedufer
13y ago
How? An untrusted computer can just steal your session token.
905.
▲
by
thedufer
13y ago
> all of the problems you mentioned around needing your phone are common to nearly all two-factor auth solutions. Not true. From his list of problems, TOTP does not require the Clef servers (or any third-party server), nor does it requi
906.
▲
by
thedufer
13y ago
I write JavaScript all day and the first step is to download XCode. I don't know if this is his reason, but installing XCode is the best way to get all the developer tools installed (clang, for example).
907.
▲
by
thedufer
13y ago
Right, I get that. My point was that there is a legitimate way to weed people out of a major, and that lumping all weedout classes together as evil isn't really fair.
908.
▲
by
thedufer
13y ago
> The problem is that weed out classes substitute the easier task of deciding who is prepared for the harder task of preparing students. I don't think this is the intent, at least in some disciplines. For example, I minored in math
909.
▲
by
thedufer
13y ago
I don't think NYC is that different. Starting salaries here are pretty similar ($100k+ for people fresh out of college is becoming fairly normal outside of startups). Maybe the spread is bigger in Silicon Valley? If so, I wonder why.
910.
▲
by
thedufer
13y ago
The multiverse theory, in case you're unfamiliar, says that each time there are different ways a quantum event could go, the universe splits into multiple universes, one in which it went each way. There is an extension to this in whic
911.
▲
by
thedufer
13y ago
In what world are 2-3 years of experience going to double your salary? And $400k is not what your average senior dev is making. I don't know where your 2x/5x numbers came from, but I've never seen anything close to that.
912.
▲
by
thedufer
13y ago
Most long-term remote workers have solved most of these problems. You have to have an office (a separate room, with a door), and use it only for work. The just chatting part is more difficult.
913.
▲
by
thedufer
13y ago
You actually said "you", and extending that to "average person" is in no way a strange interpretation.
914.
▲
by
thedufer
13y ago
> But the thing about randomness is: Nobody has any control over it. Again, you're stating things as facts that there's no reason to believe are actually true. There are models in which quantum randomness does allow for free w
915.
▲
by
thedufer
13y ago
> I just googlemapsed Newark to Manhattan (mid-town). It's 17 miles, 30 minutes best case, 45 in 10:00am weekday traffic. Its also $140/month, which is on top of the MTA fare unless you work within walking distance of Penn Stat
916.
▲
by
thedufer
13y ago
> Legislators simply responding to the most organized group is really no better than legislators responding to lobbyists. I don't think that's true at all. Lobbyists require nothing but money. An organized group requires orga
917.
▲
by
thedufer
13y ago
Thats specifically only income tax. At under $117k, people are paying 12-13% in social security; at the high end it approaches 0% thanks to the hard ceiling. Its kind of disingenuous to compare taxation on high earners vs average but ignor
918.
▲
by
thedufer
13y ago
The "standard modulo" is actually a remainder operator, and is a js-specific thing. Most languages implement the "true mathematical modulo", aka modulo. One reason this is useful is if you want an array to wrap around.
919.
▲
by
thedufer
13y ago
A doom dependent on full adoption of ES6 could easily be a decade out, to be fair. There aren't, as far as I know, any browsers that expose ES6 without non-standard compile/runtime flags, and we have to wait until there's en
920.
▲
by
thedufer
13y ago
Its not unheard of. There's another niche language called "Python" that does exactly the same thing. Comments are `#`, as anyone using a unix shell would expect.
921.
▲
by
thedufer
13y ago
"delivered over the channel of your choosing" is the key phrase, where that channel is usually email. Essentially, they've defined "User A" as "people with access to email address B" instead of the more s
922.
▲
by
thedufer
13y ago
"dredging"? It sounds like you aren't very familiar with your tools. Commit, delete the code, commit. Now you're a rollback/backout away from getting it back.
923.
▲
by
thedufer
13y ago
> Have you ever tried searching a version history with thousands of commits to find a piece of code that you think you might have written awhile back, but you can't remember enough details about to come up with a good search term? I
924.
▲
by
thedufer
13y ago
> It almost makes me feel sick to think that Javascript stores all numbers as doubles. That's not actually true. JS engines are highly optimized. For example, anything that fits in a 32-bit int (and is an integer, of course) is st
925.
▲
There Are Only Four Billion Floats – So Test Them All
(randomascii.wordpress.com)
235 points
by
thedufer
13y ago
|
118 comments
926.
▲
by
thedufer
13y ago
I believe it is time until the visible area is rendered. Neither domready nor load time are very meaningful since all of the interesting rendering happens in javascript, triggered by the onready event.
927.
▲
by
thedufer
13y ago
Most times this comes up on HN, the SE team points to http://www.slant.co/
928.
▲
by
thedufer
13y ago
No, its because people who are home schooled are more likely than the average student to be in classes (white, rich) that already do well in school, yet they still compare their scores to the general population.
929.
▲
by
thedufer
13y ago
> Here is where the science side gets things wrong. Creationism is a NON-scientific belief, not an ANTI-scientific belief. Creationism isn't fundamentally anti-scientific, but it teaching it as science is definitely anti-scientific.
930.
▲
by
thedufer
13y ago
> Every study I've seen contradicts this common sense argument. Can you provide some of these studies? I've never seen one that was written by someone who understood why its important to control for race/financial status&
More ›