Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmull
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
912 ms
·
3121.
▲
by
jmull
9y ago
I hadn't heard of protobufs before now. But if I understand it correctly, I don't think it addresses (what I think is) the fundamental problem with static typing in a distributed system. It's that the your static types that e
3122.
▲
by
jmull
9y ago
Yes, that's what I found. (I too had trouble with that instruction.)
3123.
▲
by
jmull
9y ago
I've done this for Sudoku, cross sums and similar. Generally, I used a backtracking algorithm to fill an empty grid until a valid grid was found. Assuming you want to control the level of difficulty of the puzzle generated, you want to
3124.
▲
by
jmull
9y ago
More flexible static type systems can help, but they don't address the fundamental problem that they are trying to make a strong statement at development time about something that isn't known until runtime. This pushes dealing wit
3125.
▲
by
jmull
9y ago
(just going' down this rabbit hole with you all) The problem I have with static typing (as widely implemented) is it solves little problems at the cost of arbitrary inflexibility which ends up rippling through a code base. And the litt
3126.
▲
by
jmull
9y ago
I think the goal is to have a browser that renders web pages and is fully interactive, but just doesn't render to screen and is interactive through an API rather than input devices. So it's going to need a UI rendering and interac
3127.
▲
by
jmull
9y ago
Hm... I guess I would have a lot more respect for this author's claim about the predictability of the rise of populism if she(?) has predicted it. Perhaps she did, but this paper is dated this month. Not to mention, prediction by itsel
3128.
▲
by
jmull
9y ago
Ok: static analysis of a language where most fundamental relationships are resolved at runtime. I guess this is one way to express the futility. The lesson learned is hook console.log -- or whatever function you are interested in -- meaning
3129.
▲
by
jmull
9y ago
Yes, you have a good point about eval and anything else that boils down to invoking a string as a function.
3130.
▲
by
jmull
9y ago
bind is a way to create a function, not invoke one. Here you're invoking the function (that bind returned) in the normal way, using parenthesis.
3131.
▲
by
jmull
9y ago
A bunch of these are cheating... just wrapping () in various ways or accessing call and apply in various ways. For general functions, I think the commenter who says there are three ways to invoke a function is correct: (), call, apply. Ther
3132.
▲
by
jmull
9y ago
On your second paragraph... I don't think you can generally state that REST APIs don't need to be developable, supportable, teachable/learnable. Ad hoc requests support these things in useful ways that scripted requests do no
3133.
▲
by
jmull
9y ago
Exactly. It's not due to some Google-fu though. People ask questions (on SO) in the terms they think about problems. But documentation is written according to the structure of the thing being documented. So SO ends up being a more dire
3134.
▲
by
jmull
9y ago
Heh, heh. My favorite bit is toward the end: ...we do Agile. Everything is in a flat structure, except when it comes to salary and responsibilities. If only this were an exaggeration.
3135.
▲
by
jmull
9y ago
I don't mean to pick on you at all, and I hope this doesn't come off that way... but this is a very interesting statement. You start off with a statement of ideals which you then directly contradict with a real, practical concern.
3136.
▲
by
jmull
9y ago
It doesn't have to be done in a bad/incompatible/new way. Here's what I did for an API I worked on recently supports JSON and XML: The general route for a resource is an endpoint that can serve both application/json
3137.
▲
by
jmull
9y ago
There's a large and thriving open market of franchise opportunities. McDonalds isn't somehow forcing potential franchisees to buy McDonalds franchises or preventing them from choosing a better opportunity should they find one.
3138.
▲
by
jmull
9y ago
Very interesting. I like how this seems to let application logic live as close to the UI as makes sense. That is, there's no barrier, intermediary or anything else that might drive them apart. Of course, applications have a higher-leve
3139.
▲
by
jmull
9y ago
I guess I get it (maybe ?): There are already many, many marketplaces for tech development of all shapes and forms. For this one I guess it's: Hey, people who want some tech developed: If you can formulate your problem as an interestin
3140.
▲
by
jmull
9y ago
> teaches us anything useful... Maybe the useful thing here is that Sudoku is a problem space a lot of people understand pretty well even though it's not trivial. That makes a nice domain for thinking about and understanding NN. I g
3141.
▲
by
jmull
9y ago
Is't this is an argument for a better walled garden, not an argument against them?
3142.
▲
by
jmull
9y ago
I don't know about SafetyNet specifically, but it could be that it has to authenticate itself to the apps that call its APIs. E.g., I guess it could be code-signed and that the apps that use it have to check the signature. That uses a