Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
taffer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
331.
▲
by
taffer
7y ago
Some interesting posts/articles on the topic: https://www.vertabelo.com/blog/business-logic-in-the-databas... https://sivers.org/pg https://www.martinfowler.com/articles/dblog
332.
▲
by
taffer
7y ago
What the blog probably means by "SQL as a source of truth" is that you first design your database and then generate the domain classes from it and not vice versa. This is for example what myBatis and JOOQ do.
333.
▲
by
taffer
7y ago
It seems that what you want is not an imperative API, but a more explicit one. I'm afraid the problem is that specifying the access methods or optimizations to use in the database is very product- or even version-specific, on the other
334.
▲
by
taffer
7y ago
The postgres wire protocol sends queries and parameters separately, the variables are bound on the server side.
335.
▲
by
taffer
7y ago
> I'm saying SQL is a bad API. You can probably make some api language that's more explicit and imperative on top of something like postgres. Change the API itself don't write something on top of it. Something like VSAM or
336.
▲
by
taffer
7y ago
> SQL should be the source of truth There are frameworks like JOOQ or MyBatis that work this way.
337.
▲
by
taffer
7y ago
Without defining what you mean by corruption and how to measure it, your comment is useless. If you cannot somehow show that Brazil, Russia, the UK and Denmark have the same level of corruption, I call your argument bullshit.
338.
▲
by
taffer
7y ago
Just because something is not determined by genes does not automatically mean it is not innate. Some traits are determined by hormones and there might be many other mechanisms that determine our physical and behavioral traits.
339.
▲
by
taffer
7y ago
I am from Europe and and I remember that robocalls were a problem in the past. Until like 10 years ago I received multiple spam calls per week, but then it suddently ended. Now I cannot even remember when I got the last spam call, but it
340.
▲
by
taffer
7y ago
Yes I forgot that exFAT is a whole new thing from 2008.
341.
▲
by
taffer
7y ago
You said: > it seems to me that it is less ideal from the perspective of the animal for their entire bloodline to be terminated I think if you compare the utility that livestock farming provides, with all the externalties and all the suf
342.
▲
by
taffer
7y ago
Aren't the FAT patents about to expire anyway?
343.
▲
by
taffer
7y ago
So why do we inseminate animals artificially when there is no ethical imperative to produce life? And if you think life is so valuable by nature, why do we kill them then?
344.
▲
by
taffer
7y ago
One could argue that billions of children have no chance to exist because of contraceptives, just as you argue that billions of animals have no chance to exist if we stopped breeding them.
345.
▲
by
taffer
7y ago
In many developing countries, you can buy a policeman with a $10 bill. Try that in the UK.
346.
▲
by
taffer
7y ago
> The question really comes down to whether or not you consider the opportunity to experience life, even a particularly difficult life, as a blessing. This seems to be an extreme pro-life point of view. You could ask exactly the same que
347.
▲
by
taffer
7y ago
And if not, does that mean we should ban contraceptives?
348.
▲
by
taffer
7y ago
> we have as much corruption as you That's bullshit. There is corruption in Western countries too, but not at the same level: https://en.wikipedia.org/wiki/Corruption_Perceptions_Index
349.
▲
by
taffer
7y ago
If anything, your HN karma reflects that your comments are largely political: > Please don't use Hacker News for political or ideological battle. That destroys intellectual curiosity, which is what the site exists for. Note that Ani
350.
▲
by
taffer
7y ago
There are many existing alternatives like 401(k).
351.
▲
by
taffer
7y ago
That is why Prop 13 will not go away in a foreseeable future, but the whole idea of tying all your savings to your house is flawed. Apart from putting all your eggs in one basket, it also creates all sorts of bad incentives like Prop 13.
352.
▲
by
taffer
7y ago
That's probably more of an effect than a cause. In European cities it is often advertised how close an apartment is to a train station.
353.
▲
by
taffer
7y ago
> Sure the government could do it. But any city council that tried to do this would likely find themselves voted out. Who votes them out and with what arguments?
354.
▲
by
taffer
7y ago
The only thing that could drive up the land prices is that some landowners try to hold out to demand unreasonably high prices. So what you need is a kind of squeeze-out mechanism like "If 2/3 of the landowners are willing to sell
355.
▲
by
taffer
7y ago
Is there no way that the government can buy large plots of land around planned stations, build the railroad and then sell back the land?
356.
▲
by
taffer
7y ago
> The user facing layers high up, like the shell, are technically not OS facilities Even directories, file metadata and caching are too high level and not part of an operating system if you want to go that far.
357.
▲
by
taffer
7y ago
I would argue that dropping and creating indexes is much less work than refactoring large parts of your codebase just to change a data structure. Also, you can have multiple indexes on a table and the RDBMS ensures that they are always sync
358.
▲
by
taffer
7y ago
I would make a distinction between querying and mutating the operating system state. For querying information, I think the idea of representing everything as the same data structure really makes sense. The Unix philosophy or a relational vi
359.
▲
by
taffer
7y ago
> I don't believe in the 10X engineer, but I may believe in the -10X engineer. I think you mean a X/10 Engineer. A -10X engineer would have to work backwards.
360.
▲
by
taffer
7y ago
I found this: > No significant differences were found in the footprint of vegetable and chromium leather processes https://onlinelibrary.wiley.com/doi/abs/10.1111/jiec.12504
More ›