Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chacham15
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
chacham15
2y ago
Am I the only one who, in response to: "dont use loops" thought of the following: int numDigits(int num){ if (num < 0){ return numDigits(-1 * num); } if (num < 10){ return 1; } if
32.
▲
by
chacham15
2y ago
I think it depends on how you deduplicate your code. Creating a DeadlineSettter as illustrated is definitely too much, but creating a function: def assert_datetime_in_future(datetime): if datetime <= datetime.now(): raise
33.
▲
by
chacham15
2y ago
I dont think "turn the horse's head 90˚" is the right path forward. What I think is more likely and more useful is: here is a start keyframe and here is a stop keyframe (generated by text to image using other things like cont
34.
▲
by
chacham15
3y ago
This logic has a key flaw: just the fact that the size of the space is different doesnt mean that every representable thing in the larger space is a thing we care about. E.g. a person with three hands may not have a representation in the sm
35.
▲
by
chacham15
3y ago
Its not that they arent important when looked at by itself, but it just isnt as important as other things. Nobody cares if a car has poor ui if it doesnt actually work. Get it to run first, then make the ui nice. IIRC theres a phrase for th
36.
▲
by
chacham15
3y ago
In the marketplace it was difficult to quickly discriminate between IIII and III as compared with II and III. When you get to 4, you have to start counting whereas with 3 or fewer, you can tell how many there are at a glance. That being sai
37.
▲
by
chacham15
3y ago
I HATE these arguments. Peter Thiel talked about this in one of his lectures. He said: when you're a small company you define your market as small as possible in order to compete; when youre a large company, you define your market as l
38.
▲
by
chacham15
3y ago
I agree that I disagree with this as a blanket statement, but as a baseline, I would agree. The real issue here is why/how you're relating A lot of people relate poorly. The common mistake is as the author points out: to compare
39.
▲
by
chacham15
3y ago
I disagree with most of the article. The author states that the reason we start at the bottom is because "it feels good". This is false. We start at the bottom because that's what a product spec is. The product spec can impac
40.
▲
by
chacham15
3y ago
> it only talks about access to SDKs, specs of device ports, ability to make the same system calls The Apple App store uses SDKs + system calls to install other apps, right? So, if you're allowed to sideload your own app store it sh
41.
▲
by
chacham15
3y ago
Its an idealistic view which will almost certainly fail. Test suites, as much as we like to hope that they reflect real usage, mostly dont. A simple example: if function a gets changed from o(n) to o(n^2) but otherwise behaves identically,
42.
▲
by
chacham15
3y ago
The main problem that I see in my years of experience is: "how well does what I design hold up to ACTUAL product design changes?" Everything else comes second to that including this authors version of "build extensible system
43.
▲
by
chacham15
3y ago
IMO the point of stopping police from lying shouldnt be to prosecute the police (as perjury is already illegal), but rather, to indemnify the person who was lied to for actions they took under false pretenses. So, if the police lie to you a
44.
▲
by
chacham15
3y ago
The title as written is obviously true. Obviously any project can be "open source" with or without builds. There is no requirement that "open source" even compiles! The real issue here is: "is it better for the proj
45.
▲
by
chacham15
3y ago
The title is clickbait. The actual study[0] reads as follows: > Multi-way parallel, machine generated content not only dominates the translations in lower resource languages; it also constitutes a large fraction of the total web content
46.
▲
by
chacham15
3y ago
There is a lot of talk about who this regulation is supposed to cover, but not a lot about what it actually requires if it covers you. The best I could find after a couple quick searches was that you're supposed to provide information
47.
▲
by
chacham15
3y ago
I like telling dad jokes...he usually laughs
48.
▲
by
chacham15
3y ago
Theres tons of evidence for this. Heres an example of pg furthering conspiracy theories: https://twitter.com/paulg/status/1733146138226614465 (note: Rashida Tlaib has extremist viewpoints and has even been censore
49.
▲
by
chacham15
3y ago
I would disagree with that policy in this case. In most other articles, the reader has a much better ability to understand the quality of the article from reading it. This audience is primarily technical and not political. This topic has su
50.
▲
by
chacham15
3y ago
There are a few reasons. 1. The first is literally the first example of the article: real/important vulnerability disclosures get confused with beg bounties which dont need to be acted on / are not serious (most of the time). That
51.
▲
by
chacham15
3y ago
The n^2 argument the author points at is a red herring. The reason this is an invalid criticism of the benchmark is that both benchmarks are using the same query structure, so theyre both n^2. The author himself admits later on that the rea
52.
▲
by
chacham15
3y ago
IIRC the main point of header files was to make compilation 1 pass instead of 2. I.e. when the compiler is processing a function and sees `int a = foo(bar, baz);` how does it know what code to generate here? How do you call foo (i.e. what c
53.
▲
by
chacham15
3y ago
You're painting with way too broad of a brush. It is not always better and not always worse. E.g. "give me a list of users who made two posts where both posts were created within 1 second of each other" This query would likel
54.
▲
by
chacham15
3y ago
They can be bad for performance. It all depends on your access patterns. A common caching pattern is called "temporal locality" which means that theres a high likelihood that data created at the same time will be accessed at the s
55.
▲
by
chacham15
3y ago
My thought was that 10.2.0.0/16 is part of the 10.0.0.0/8 address range which is by default a private network address range (i.e. not routable by any other machines). I interpreted what the author wrote to say that your machine wo
56.
▲
by
chacham15
3y ago
> Chamberlain explained that parts pairing is used by Apple to confirm whether parts were purchased through their authorized network and have a record of repairs, while console makers may use it to "assume that a disk drive is origi
57.
▲
by
chacham15
3y ago
The simplest retort I've heard to "I have nothing to hide" is "then send me a nude photo of yourself." Theres nothing wrong with nude bodies, but it is definitely private. I.e. privacy has nothing to do with hiding
58.
▲
by
chacham15
3y ago
This still doesnt make sense to me. Imagine a continuous line whose positions map to the real numbers between 0 and 1. If I "move" the line over 0.1 wrapping the end back to the beginning (i.e. x2 = (x1 + 0.1) % 1), there will be
59.
▲
by
chacham15
3y ago
I didnt read that as a technical argument, but as a sociological one. If there are two apps, one which is easy/legal to obtain, but has a backdoor and another which may be harder/illegal to obtain but has no backdoor, which is the
60.
▲
by
chacham15
3y ago
> It would be essentially infinitely valuable as a cyberattack target. While I understand what you mean, there are already keys which are "infinitely valuable": root CA keys. If you have those, you can essentially impersonate a
More ›