Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nawitus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
100 ms
·
481.
▲
by
nawitus
12y ago
Exactly. And even when you receive data from your "own" services that you have type definitions automatically generated for, maybe there's a version mismatch in a deployment somewhere and so on.
482.
▲
by
nawitus
12y ago
You want both. Compile-time checking is necessary but not sufficient. Applications are not monoliths anymore, and web applications especially will interact with multiple other processes and services. For these you really need dynamic type c
483.
▲
by
nawitus
12y ago
Correlation means correlation, not that something is impossible. In other words, just because, for example, a poor person can afford to go to sauna 4-7 times a week it doesn't mean that there's no correlation between income level
484.
▲
by
nawitus
12y ago
I would think it's very uncommon for people living in apartment buildings to go to a sauna 4-7 times a week (I believe that's often not even possible due to various rules). When you add in that there's some correlation betwee
485.
▲
by
nawitus
12y ago
This reminded me of the AngularJS team deciding to go with (optional) runtime type checking over compile-time checking (which is what TypeScript has done to JavaScript). Their reasoning was that you can use runtime checking for REST respons
486.
▲
by
nawitus
12y ago
A few questions: a) How do you prevent technical debt? It seems to be more difficult due to APIs which shouldn't have breaking changes. In theory you could always version up the APIs and serve both versions or just add a new API for a
487.
▲
by
nawitus
12y ago
>Of course while you're developing a new feature you might want to use it from another module on your dev machine, but "npm link" is what you want to use for that. Yeah, but that's the manual way. It works okay when y
488.
▲
by
nawitus
12y ago
Why is the current standard of living the ideal? Why not 10 years ago, or 10 years into the future? How about 20? 30?
489.
▲
by
nawitus
12y ago
The drawback is that things like feature branches are more difficult to use. For example, with npm you need to resort to various scripts or handle them by yourself manually.
490.
▲
by
nawitus
12y ago
That seems like a lot of work just to make code review easier. Of course, you can clean up the branch history by squashing commits, but that's the same as reviewing the complete merge diff..
491.
▲
by
nawitus
12y ago
What does "private branch" mean? All branches are "private" until I publish them. If I create a branch which tracks a remote branch and make a commit to it, my local branch is "private" and the commit is "
492.
▲
by
nawitus
12y ago
But how often that ideal is true? It assumes that developers don't make mistakes in any of the commits, or never add "temporary" code which is removed in later commits of the feature branch. This is the reason that I tend to
493.
▲
by
nawitus
12y ago
In C at least. Anyway, that's probably due to the significant amount of discussion about goto. Perhaps "ironically" goto is a good feature only because it's criticized enough so that it's typically used correctly?
494.
▲
by
nawitus
12y ago
>If we follow this to its extreme, everyone should switch to Brainfuck. Yeah, we shouldn't.
495.
▲
by
nawitus
12y ago
I wouldn't implement goto in a new programming language. Not because it's never useful, but because it's only very rarely needed, and it's very existence means that it's easy to misuse it. Programming languages shou
496.
▲
by
nawitus
12y ago
There should be plenty of room for "theoretical" CS courses and practical software engineering courses.
497.
▲
by
nawitus
12y ago
Here's an interesting bug/technique in HL2 called 'Accelerated Back Hopping' https://www.youtube.com/watch?v=NV-AWxqYAgc&t=41m43s It's used in speedruns, but I believe is fixed these days. Appre
498.
▲
by
nawitus
12y ago
>So it uses parens if there are no params, but not otherwise? Params are only optional if there is a single parameter.
499.
▲
by
nawitus
12y ago
And the promise version for comparison: app.get('/thing', function (req, res) { db.get({user: req.user}).done(user => { res.send({user:user}); }, error => { res.send(400); });
500.
▲
by
nawitus
12y ago
What is the better alternative Go is using? "Can only view diffs on a single page" You don't need to use GitHub to view diffs. "To create a patch one must fork the repository publicly (weird and unnecessary)." I don
501.
▲
by
nawitus
12y ago
>My explanation is that this is simply what happens in a low-growth, zero-sum environment. Or perhaps it's due to globalization. There are other cultures in the world that don't value working very hard at the expense of other t
502.
▲
by
nawitus
12y ago
>Knowing the etymology helps, but is not necessary. Well, often it's necessary to either memorize a pronunciation or know the etymology, because often people pronounce English incorrectly.
503.
▲
by
nawitus
12y ago
>With just a handful of heuristics and a modicum of rote memorization, children can figure out most English words with 0 background in any other languages. Most doesn't equal all. >Besides this, pattern recognition is strong &
504.
▲
by
nawitus
12y ago
>You really only need to learn rules derived from four dissimilar languages to spell and pronounce almost everything in English without having a word-specific association. Don't you also need to learn the language from which every w
505.
▲
by
nawitus
12y ago
Yup: https://twitter.com/ebidel/status/565251578647838722
506.
▲
by
nawitus
12y ago
Doesn't seem to work in Firefox for me.. EDIT: The reason was that I had web components enabled.
507.
▲
by
nawitus
12y ago
That might have been true in the past, but I don't see it being true these days. Lots of companies are only now figuring out the benefits of free software. Just look at Microsoft for one example.
508.
▲
by
nawitus
12y ago
It seems to be a stretch to call this a "digital currency", since it is "directly tied" to the local currency. Besides, digital currencies are not really interesting, as one can make digital transactions of traditional,
509.
▲
by
nawitus
12y ago
Why is thought process relevant? Different people have different thought processes. I would estimate that recruiters would bias to hire candidates that have similar thought processes to themselves, even if that doesn't correlate well w
510.
▲
by
nawitus
12y ago
Note that most hi-fi setups use an analog audio cable to transport the signal to the speakers.
More ›