Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
GuB-42
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
331.
▲
by
GuB-42
8mo ago
I didn't notice any link with the iPhone, except maybe a vague coincidence in timing. Online banking existed before the iPhone, it worked using websites, on personal computers. And it took some time before smartphones were taken seriou
332.
▲
by
GuB-42
8mo ago
I think it will become interesting when AI will be able to decompile binaries.
333.
▲
by
GuB-42
8mo ago
I wonder about the total energy cost of apps like Teams, Slack, Discord, etc... Hundreds of millions of users, an app running constantly in the background. I wouldn't be surprised if the global power consumption on the clients side rea
334.
▲
by
GuB-42
8mo ago
> if Wikipedia vanished what would it mean … That someone would need to restore some backups, and in the meantime, use mirrors. Seriously, not that big of a deal. I don't know how many copies of Wikipedia are lying around but consid
335.
▲
by
GuB-42
8mo ago
Thank you, I wasn't aware of this, this is the kind of thing I wish people were more aware of, kind of like fuzzing, but for tests. About fuzzing, I have about 20 years of experience in development and I have never seen fuzzing being
336.
▲
by
GuB-42
8mo ago
Did you try charging an e-bike with your contraption? I don't know what you can take of this, maybe you can see it as advance pedaling, or to get a feel for energy conversion losses. Anyways, it is the kind of harmlessly stupid idea th
337.
▲
by
GuB-42
8mo ago
> The much more likely scenario is that the code is right, but a mistake in the test leads it to not test anything. What I usually do to prevent this situation is to write a passing test, then modify the code to make it fail, then revert
338.
▲
by
GuB-42
8mo ago
I think the correct answer would be to ask "why are they doing that and not using Google Sheets?". There are a lot of good reasons for not using Google Sheets. Maybe the spreadsheet is using features that Google Sheet doesn't
339.
▲
by
GuB-42
8mo ago
Tests are not any more or any less of a spec than the code. If you are implementing a HTTP server for instance, RFC 7231 are your specs, not your tests, not your code. I would say that which come first between specs and code depend on the c
340.
▲
by
GuB-42
8mo ago
I don't think it addresses the problem. Writing the tests first and then writing code to pass the tests is no better than writing the code first then writing tests that pass. What matter is that both the code and the tests are written
341.
▲
by
GuB-42
8mo ago
It would be ironic if it turned out to improve the situation. Driving slower can make things more predictable and reduce wear, making breakdowns less likely. Trains being on time is all about consistency.
342.
▲
by
GuB-42
8mo ago
If Microsoft wanted to be monopolistic, and it wouldn't be the first time, then why are they abandoning their strongest exclusives (Windows, Office) and instead enter a more competitive market, where Google, Amazon, etc... are well est
343.
▲
by
GuB-42
8mo ago
About 50% of people want permanent standard time, 50% want permanent DST, 50% want to keep time changes. Doesn't add up? That's the point. Everyone finds arguments that suits them. Some will quote "sleep experts", others
344.
▲
by
GuB-42
8mo ago
The answer is in the article: "Everything else is just efficiency" Another example is a raytracer. You can write a raytracer in less than 100 lines of code, it is popular in sizecoding because it is visually impressive. So why are
345.
▲
by
GuB-42
8mo ago
The thing is that programming is not an end goal, it is a means to a end. No one is paying you to "write code", they are paying you to make a website shat serves as a storefront, to make a video game, something for accounting,...
346.
▲
by
GuB-42
8mo ago
What is a command and what is shell syntax is not always obvious, especially to a beginner, which I assume most people asking this question are. Take the command "ls -l ~/.. ; fg" for instance. What is interpreted by the shel
347.
▲
by
GuB-42
8mo ago
Others say we underestimated the importance of a small quantity of eggs and proposed a modified theory that doesn't need dark breakfast.
348.
▲
by
GuB-42
8mo ago
Great if you know where to look, but most people who ask themselves the question don't know they have to look up the bash manual in the "redirection" section. The usual thing (before LLMs) is to Google the question, but for t
349.
▲
by
GuB-42
8mo ago
Ironic how Notepad used to be too simple, making it useless as a text editor in many cases. In particular, it didn't support UNIX line endings and files larger than a few MB. The there was a brief moment where it became decent. Still a
350.
▲
by
GuB-42
8mo ago
I think they have been steadily losing their years of goodwill and trust over time. Their client is becoming worse and worse every release, introduced ads, etc... Typical enshittification, it could be worse, but Discord already went from be
351.
▲
by
GuB-42
8mo ago
When I visited the Warner Bros studios, they had a huge pile of paper in a corner, representing all the unsolicited ideas they receive. They told us they took care to not even read the manuscripts. I don't remember if they return them
352.
▲
by
GuB-42
8mo ago
That's one theory. Another one I can think of is that sharp edges are scary, and most distress calls are high pitched. Also, the thing about high frequencies and sharp edges lead to a contradiction: babies are more round than adults an
353.
▲
by
GuB-42
8mo ago
We didn't "moved from", both points of view exist. Depending on the news, attention may shifts from one to another. Anyways, I don't expect Skynet to happen. AI-augmented stupidity may be a problem though.
354.
▲
by
GuB-42
8mo ago
Because it is not how computers work. It doesn't matter much for high level languages like LUA, you rarely manipulate raw bytes and pointers, but in system programming languages like Zig, it matters. To use the terminology from the art
355.
▲
by
GuB-42
8mo ago
Sounds like a catch 22 to me. All of what you describe besides environmental stressors are symptoms of depression. So, to solve depression, you must first solve depression. And even the environmental stressors are something we could work
356.
▲
by
GuB-42
8mo ago
> In the end it will be the users sculpting formal systems like playdoh. And unless the user is a competent programmer, at least in spirit, it will look like the creation of the 3-year-old next door, not like Wallace and Gromit. It may b
357.
▲
by
GuB-42
8mo ago
It is more of a cultural thing. Package managers encourage lots of dependencies while programmers using language with no package managers will often pride themselves in having as few dependencies as possible. when you consider the complete
358.
▲
by
GuB-42
8mo ago
The only thing that you seem to argue about is the naming of the branches. If you call the git-flow "develop" branch "master" and the "master" branch "release-tags" it will be exactly as you describe.
359.
▲
by
GuB-42
8mo ago
Hash tables are indeed O(1) in theory while binary search is O(log(N)) in theory, no problem with that. But in practice, accessing a physical memory cell is not O(1), it is O(cuberoot(N)). For a binary search, you need O(log(N)) operation,
360.
▲
by
GuB-42
8mo ago
And what's wrong with not wanting to write functions yourself? It is a perfectly reasonable thing, and in some cases (ex: crypto), rolling your own is strongly discouraged. That's the reason why libraries exist, you don't wan
More ›