Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
541.
▲
by
DougBTX
8y ago
> secretly uploading your pictures What if instead of it being a secret, it was a big button with “upload photo to Facebook” on it? If Facebook outsourced the implementation of that button for each different type of camera to the respect
542.
▲
by
DougBTX
8y ago
If it is never going to be exposed to the public internet, you might as well use .com, then at least when it does get connected to the public internet you’ll get feedback that it is broken pretty quickly.
543.
▲
by
DougBTX
8y ago
From the imported projects graph, looks like there was a spike, then it settled back to normal.
544.
▲
by
DougBTX
8y ago
> not an apple to apple comparison. Hm, what if you’re a reader looking for journalistic text articles, is the same content available on both?
545.
▲
by
DougBTX
8y ago
The newly official Context API might change things here, since it will be much easier to pass state down to grandchildren. I’ve not been keeping up to date with the plans for what react-redux will do with the new API yet, could be interesti
546.
▲
by
DougBTX
8y ago
Yes, I have to agree about `instanceof` and friends being tricky. Often they seem to come up as a quick fix for some larger architectural problem, resulting in long-term debt. The idea of inferring the set of possible implementations of a f
547.
▲
by
DougBTX
8y ago
> If types are not erased then `foo` can behave differently when given, say, a `String` or an `Int` Perhaps worth pointing out that this doesn't apply to languages like Java and C# though (which I think is the most common comparison
548.
▲
by
DougBTX
8y ago
Reminds me of eg: https://gafferongames.com/post/deterministic_lockstep/
549.
▲
by
DougBTX
8y ago
> Maybe it's okay to just throw code out without knowing what it does. I think at time pressure increases, the grey area between right and wrong grows. Here the hypothetical user did read the fine manual, and they thought they k
550.
▲
by
DougBTX
9y ago
Random idea: replace the terminology of "duplicate" questions with "similar" questions. Add a mechanism where, if an answer could apply to two very similar questions, show the answer in both places. Rather than closing a
551.
▲
by
DougBTX
9y ago
You'd already updated the link above when I first looked at the site, but having a look at the home page, I didn't immediately notice that the Individual / Educational / Partners text were links, so I'd have probabl
552.
▲
by
DougBTX
9y ago
> (again downvoted by 4 :D :D What a coincidence :D :D guys, you are seriously having a problem :D :D :D) Minus four is the minimum points, it doesn’t indicate exactly how many downvotes a comment has. My guess is to discourage people fr
553.
▲
by
DougBTX
9y ago
Is there a book you'd recommend for casual adult reading?
554.
▲
by
DougBTX
9y ago
Well, the article is suggesting to put the major version number in the name, so that “change the name” and “bump the major version number” are equivelant actions, which is a little more subtle than just a plain rename.
555.
▲
by
DougBTX
9y ago
The goto fail snippet doesn't conform to the "one logical statement per line" guideline in the article though, so the author would advise against this style too.
556.
▲
by
DougBTX
9y ago
> That's not how you do test driven development via unit testing Unit tests test concrete implementation "units", so this is completely compatible with writing unit tests.
557.
▲
by
DougBTX
9y ago
You're right that it is an example of a case that matches the "basic" description of the conditions to hit the bug, but it probably won't satisfy any of the three conditions when they are considered in detail: * The file
558.
▲
by
DougBTX
9y ago
The parent uses weasel words https://en.wikipedia.org/wiki/Weasel_word that, while technically correct, imply something false. The comment is refuting the implication. Here the implication is that there is a fundamenta
559.
▲
by
DougBTX
9y ago
Yea, support isn't first class. When I was learning to use union types in TypeScript, initially I wrote custom type guards to distinguish them, using any property that was unique to a particular constituent type to differentiate them.
560.
▲
by
DougBTX
9y ago
I didn't think to call it that at the time, but I think that I came across a division type in react-redux the other day: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/8f8f... Playing with that
561.
▲
by
DougBTX
9y ago
Probably yes, through at least by default on iOS custom keyboards don't have network access.
562.
▲
by
DougBTX
9y ago
Chrome's development tools actually allow saving changes to the JS files AFAIK, or going the other way around, it is possible to debug JS running in the browser from VS Code using the devtools-protocol: https://github.com&#x
563.
▲
by
DougBTX
9y ago
With the --noImplicitThis flag set, then the first line will fail to compile, with an error: 'this' implicitly has type 'any' because it does not have a type annotation. That error can be fixed by specifying an
564.
▲
by
DougBTX
9y ago
Ah, thanks for the clarification, my mistake. If that hasn't been answered elsewhere, then the important part is that the hash code for a particular object is always constant, every call to getHashCode for that object returns the same
565.
▲
by
DougBTX
9y ago
> assigning a position I think what you're asking is "this getHashCode function always returns a random number within a large range, but a hash table has a small set of positions, so isn't this more like a sparse array rat
566.
▲
by
DougBTX
9y ago
And how it relates to programming: > Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? - Brian Kernighan
567.
▲
by
DougBTX
9y ago
There is rustfmt https://github.com/rust-lang-nursery/rustfmt though it is a work in progress: https://github.com/rust-lang-nursery/fmt-rfcs
568.
▲
by
DougBTX
9y ago
Yes you can, if your programming language supports dependent types: https://bluishcoder.co.nz/2013/05/07/ranged-integer-types-an...
569.
▲
by
DougBTX
9y ago
I remember trying to do merges in SVN years ago, it was so hard my team agreed to just never make new branches. Git it so much easier to use, it seems hard to compare.
570.
▲
by
DougBTX
9y ago
Classic RPC functions would never be async, since the idea behind RPC is to replace a sync local function with a sync remote function, without having to make any changes to the calling code. "Async RPC" is a more recent idea, but
More ›