Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnaritas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
541.
▲
by
gnaritas
10y ago
That is the correct solution, a surrogate key.
542.
▲
by
gnaritas
10y ago
There are no proper natural keys, natural keys are a bad solution to the real world problem of running and managing an application. The correct solution is to use a constraint to enforce the uniqueness of your supposedly "natural key&
543.
▲
by
gnaritas
10y ago
> I use OOP to construct good gateways into my tables. That's all an ORM is, a good default gateway to the tables that you don't have to write by hand.
544.
▲
by
gnaritas
10y ago
1) Natural keys suck in the real world, artificial keys have come to dominate for a real reason that you either understand or suffer for ignoring. Natural keys are bad practice. 2) ORM's are good practice, they reduce massive amounts o
545.
▲
by
gnaritas
10y ago
Never heard of anything like that, interesting. Sounds like some sort of synesthesia.
546.
▲
by
gnaritas
10y ago
I don't know if that's at all true, but I sure like that idea.
547.
▲
by
gnaritas
10y ago
I have Aphantasia, nice to see people suddenly becoming aware of this. I'm hoping to see a lot more research in this area in the next few years, but anecdotally I'll say spacial cognition and visual memory are different things, I
548.
▲
by
gnaritas
10y ago
Seems to me you simply fail to grasp the nature of science. You think science doesn't question it's assumptions and biases, you don't understand science. Science is a process for validating the validity of ideas, any ideas
549.
▲
by
gnaritas
10y ago
Because science; believe it or not, scientists aren't that stupid, they've thought of all of that and tested for it to ensure their conclusions are correct. Your two seconds of thought on the subject don't come close to how m
550.
▲
by
gnaritas
10y ago
Besides severance, there's unemployment which you can't claim if you quit.
551.
▲
by
gnaritas
10y ago
> Maybe I cannot express this clear enough but the advantage natural evolution has over artificial evolution is the huge number of "experiments" - meaning it had time enough to do a lot of small changes until something worked.
552.
▲
by
gnaritas
10y ago
You can start here https://www.washingtonpost.com/news/monkey-cage/wp/2017/04/1... and if you really care, google a bit and you'll have no issue finding plenty of evidence that racism was the k
553.
▲
by
gnaritas
10y ago
Try reading more carefully, I said it was a partisan rant, and it was. I don't have to know your political leanings to know what you said was clearly a partisan rant. Talking to people who behave like racists, doesn't make them no
554.
▲
by
gnaritas
10y ago
You're welcome to think otherwise, you're wrong, but I really don't care; I've seen the numbers, racism was the major factor in the election, it's not a matter of opinion, it's a fact. Ignore facts if you if li
555.
▲
by
gnaritas
10y ago
Not compared to anyone, you don't need to compare to someone to make a statement that outside of tech, Zuck isn't that well known. It would surprise me to see millennials vote in swarms at all, that fact that young people generall
556.
▲
by
gnaritas
10y ago
I think you drastically overestimate his name recognition; he's famous in the tech bubble, outside of that few would know his name. Everyone knows facebook, that doesn't translate to everyone knows Zuck. Beyond that, he's o
557.
▲
by
gnaritas
10y ago
If any of your queries are locking tables find a better database; what a senior would do is look at the query log and say hey, you've got an N+1 cascade load issue causing this to be so slow, optimize the query to prefetch the sub data
558.
▲
by
gnaritas
10y ago
If there were no tangible technical benefit ORM's wouldn't be popular. The debate rages on because ORM haters like Climate Change deniers, rarely understand that which they critique. The debate exists because one side is ignoran
559.
▲
by
gnaritas
10y ago
> While this is technically true, many ORMs force you into database access patterns such a multiple synchronous roundtrips to the database that do not perform well and cannot be resolved simply by dropping to raw SQL. A highly performant
560.
▲
by
gnaritas
10y ago
That doesn't solve the ORM problem at all. Using a non relational database in no way solves the relational object impedance mismatch; it's frankly unrelated.
561.
▲
by
gnaritas
10y ago
> ORMs are essentially abstracting relational data structures to fit an OOP development style. It allows OOP engineers to access a DB without straying far from their comfort zone. Not remotely correct; the purpose of an ORM is to map res
562.
▲
by
gnaritas
10y ago
It used to be much higher than 12%, so it is actually a dying browser.
563.
▲
by
gnaritas
10y ago
> I haven't seen someone use anything other than git in a long time, and those that do are ancient projects. Then you live in a very small bubble.
564.
▲
by
gnaritas
10y ago
> Sure, it's bewildering right now, but in the future, this will all be knit together in a cohesive way. You'll get over that optimism when 20 years passes and it's a worse mess than it is now; that's what going to ha
565.
▲
by
gnaritas
10y ago
No, I'm defending the Chinese room thought experiment. It's cheating to look at the implementation and then claim it isn't AI; you can't look at the human implementation which could very well also be based on simple math
566.
▲
by
gnaritas
10y ago
You're conflating human level intelligence with artificial intelligence for one, AI doesn't have to be human level to be AI. Secondly "statistical smoke and mirrors" is the Chinese room fallacy; it doesn't matter w
567.
▲
by
gnaritas
10y ago
> I disagree. Machine Learning is just super-charged linear regression. Machine learning is neural nets, which started out as an approach to AI and which yes boil down to linear regression, but that's about as useful as saying brain
568.
▲
by
gnaritas
10y ago
The timeless problem of AI, anything that starts out AI ends up being rebranded as not AI once it's understood. It's the no true Scotsman fallacy. Machine learning is AI, it's just not human level AI.
569.
▲
by
gnaritas
10y ago
HN has no database, it's all just a bunch of files on the file system.
570.
▲
by
gnaritas
10y ago
Which is what I was referring to by some practical output; however it's possible and common to acquire knowledge without there being immediate things to do with it. Certainly the knowledge is progress, but you called it the most signif
More ›