Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yashap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
yashap
2y ago
For sure, if I’m writing a short script, no more than ~200 LOC, Python (without type hints) is my favourite language. But for a sizeable codebase, worked on by multiple devs or even just me over time, I’ve got an extremely strong preference
32.
▲
by
yashap
2y ago
Yeah, my personal experience is that easily 95% of devs I work with/have met in person, if not closer to 99%, prefer statically typed languages. Maybe that’s a biased sample, but I do think the overall preference among devs is very str
33.
▲
by
yashap
2y ago
There's mostly two reasons companies invest in bullshit patents: 1) If you're a big company with lots of resources, and you're losing business to a smaller but faster moving competitor, you sue them for infringing on your bul
34.
▲
by
yashap
2y ago
Agreed, especially given the other info: - The severance package is apparently very generous - The relocation package is just $4K, not at all generous - They’re giving ppl just 3 days to accept the relocation option, too little time for mos
35.
▲
by
yashap
2y ago
They do cover that in the article: > Although they reduced the number of operations, the researchers were able to maintain the performance of the neural network by introducing time-based computation in the training of the model. This ena
36.
▲
by
yashap
2y ago
Haven’t read this one, but have read a few - “Domain Driven Design” (by Eric Evans) was the most influential for me.
37.
▲
by
yashap
2y ago
Sure, if all data is in a single DB. But in the real world you’ve generally got some/all of: - 1 or more data warehouses - Other services storing said data (e.g. the user id will live in many databases in a service oriented architectur
38.
▲
by
yashap
2y ago
This is bad advice. Say I have a user table, and the email is unique and required, and we don’t let users update their email, and we don’t have user deletion. If I’m going natural PK, I make email the primary key. But … then we add the abil
39.
▲
by
yashap
2y ago
Ah I see. If you mean you’re using 401 for “couldn’t authenticate this request”, and 403 for “you lack permissions to be allowed to do this”, then yeah, that’s standard, spec compliant usage.
40.
▲
by
yashap
2y ago
Yeah, I think if they were renaming these response codes today, they’d name them something more like “401 Not Authenticated” and “403 Not Authorized”, but it’s too late for that. And I personally think you can say that either an actor or an
41.
▲
by
yashap
2y ago
If you’re looking to reduce confusion, I’d avoid using HTTP status codes in non-standard ways. Yeah it’s unfortunate that HTTP calls 401 “unauthorized”, but it has the meaning of “unauthenticated” everywhere else (e.g. “you have failed to p
42.
▲
by
yashap
2y ago
For a company that is actively pursuing AGI (and probably the #1 contender to get there), this type of behaviour is extremely concerning. There’s a very real/significant risk that AGI either literally destroys the human race, or makes
43.
▲
by
yashap
2y ago
Not sure why you’re being downvoted, it’s true. If you want to display items (normally images) with different dimensions, while respecting their natural height/width ratios, you really have 2 options: 1) Fixed height rows: lower inform
44.
▲
by
yashap
2y ago
By “single source” do you mean “single stream”? With “single stream recycling” meaning consumers put all recyclable products into a single bin, vs. multi stream, where consumers are expected to separate recycled goods into multiple categori
45.
▲
by
yashap
2y ago
This will be a more controversial one, but I do find Amazon’s CodeWhisperer tool (the command line version, formerly Fig) very useful. It provides really, really good suggestions - for example I type ‘yarn s’ and it shows all the yarn comma
46.
▲
by
yashap
2y ago
I wonder if “universality” is also a difference? For example, a medical doctor’s code of ethics might say something like “AS A DOCTOR, always consider the patient’s wellbeing first.” But this is specific to doctors. While a religious person
47.
▲
by
yashap
2y ago
Total clickbait title, obviously being able to make an HTTP request to an endpoint, and get a CSV back, is an API. Respecting the “accept” header to return different data formats, based on what the client requests, is totally fine/reas
48.
▲
by
yashap
2y ago
Probably more lacking automated test coverage than bad luck? For security critical RNG code, seems to me you’d really want to have a test where it generates a tonne of random numbers and asserts that they’re all unique.
49.
▲
by
yashap
2y ago
It’s worth noting that the main online “startup school” course doesn’t have this limitation, neither does the core YC program. I’m guessing this specific event is just very targeted at a particular market - Boston area student startup found
50.
▲
by
yashap
3y ago
I completely agree as a general design principle, but I still think there’s a place for the above tool. Example: I used to work at a place that had a massive PHP monolith, developed by hundreds of devs over the course of a decade, and it wa
51.
▲
by
yashap
3y ago
They want pretty full SQL support, so FoundationDB would be out. I’d think “buy” options for them would be more like Citus, Yugabyte, Cockroach or Spanner.
52.
▲
by
yashap
3y ago
Interesting, the commenter is from California, is there nothing like this in the US? https://www.canada.ca/en/employment-social-development/servi... In Canada my understanding is that, if a company files for bankr
53.
▲
by
yashap
3y ago
It sounds like you already know, but that company is almost certainly in its final throes before bankruptcy. Do not take stock, get as much of your back pay as you can, and get out.
54.
▲
by
yashap
3y ago
That initial statement may have been a bit too strong, but I did clarify it later in the same comment: > While we have some proactive screening for some types of cancer, the status quo for many types of cancer/patients is “wait unti
55.
▲
by
yashap
3y ago
Sure, but my understanding is that for many types of cancer, detecting that specific cancer early does make a big difference. It can be the difference between a single, minimally invasive surgery to remove a tiny rumour that hasn’t spread,
56.
▲
by
yashap
3y ago
Yeah that’s wild! I do think proactive medical screening is something most medical systems have mostly given up on, other than in very targeted ways, for very specific diseases in very specific high risk populations. But I don’t think this
57.
▲
by
yashap
3y ago
Sure, of course you would make practical decisions about what kinds of tests to administer, and not proactively administer the tests that have significant negative side effects. For the other point, personally I don’t really buy the argumen
58.
▲
by
yashap
3y ago
I do think AI has a chance to make healthcare, for cancer and other diseases, a lot more proactive. Even though we know prognosis is much better for cancer, and many other diseases, if you catch it early, we do essentially nothing to catch
59.
▲
by
yashap
3y ago
Pretty interesting! signa11, are you the author of the language? If so, is it fair to say the “closest competitors” for this language would be Kotlin and Scala? If so, what do you see as the pros/cons of Claro vs. these two languages?
60.
▲
by
yashap
3y ago
> Have you noticed that you're way more into brussels sprouts now than you were when you were a kid? If you're a GenX-er or a Millenial, that's because today's (delicious) sprouts aren't the same plant as the (gr
More ›