Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vvillena
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
31.
▲
by
vvillena
1y ago
These kinds of solutions are already deployed in some places. A trusted ID server creates a bunch of anonymous keys for a person, the person uses these keys to identify in pages that accept the ID server keys. The page has no way to identif
32.
▲
by
vvillena
1y ago
Coal in Spain was indeed phased out even before wind+solar was a thing. It was not economically viable against imported energy sources such as oil and gas.
33.
▲
by
vvillena
1y ago
This is not correct. The REE press conference held about two hours after the start of the blackout gave an estimate of 6 to 10 hours, which was about right. Any other estimations were misinformation.
34.
▲
by
vvillena
1y ago
You might be overestimating how hard this is, because it's not hard at all. It takes less than half an hour to create a script that does it.
35.
▲
by
vvillena
1y ago
What do you mean they can't rewrite the commits? They can, they should, and it's really easy to do so. As for the packages, they should be taken offline.
36.
▲
by
vvillena
1y ago
Not good enough. All previous commits still infringe Spegel's copyright, given they are still available and distributed. I would assume the point release also infringes copyright. You are Microsoft. You can do better.
37.
▲
by
vvillena
1y ago
Of course it was a mistake. In fact, as of 20 minutes ago, the mistake appears to be sorted out, with both the main license file and the offending files sporting new copyright headers. But corporations hiding behind their workers is a no-go
38.
▲
by
vvillena
1y ago
Yes, it would be cool, and it's the usual way to do these things. You can license code under a more restrictive license, and clarify licensing by adding an extra section to the main license, adding the license to a subdirectory, or add
39.
▲
by
vvillena
1y ago
It's in the LICENSE file. With a MIT license, you assign a copyright to the project, or to a certain set of files. The Spegel license attributes copyright to "the Spegel authors", while Peerd attributes it to "Microsoft
40.
▲
by
vvillena
2y ago
IIRC they were senior engineers from Google.
41.
▲
by
vvillena
2y ago
I can confirm. It's not a 100% occurrence, but browsing through that section ends up crashing the tab.
42.
▲
by
vvillena
2y ago
It's a convenience method for a specific case where the result is already obvious, because it's called on a string literal that already looks like a regex. Any competent Scala dev reviewer would reject code that uses the "r&q
43.
▲
by
vvillena
2y ago
WhatsApp nailed the onboarding experience. In a time where other services asked you to create an account with an email and password, which is enough of a hurdle already, WhatsApp looked up your phone number and said "I'm sending y
44.
▲
by
vvillena
2y ago
These kinds of shortcuts are part of Apple software as a whole, and apparently have been a thing since at least OSX. These behaviors were supposed to be covered in the documentation, but I don't know how true this is nowadays. Special
45.
▲
by
vvillena
2y ago
The Scala snippet works for all inputs, it's something you would see on a real codebase. It also scopes the regex captures within the match expression. The code also scales better for more complex cases where a string is tested against
46.
▲
by
vvillena
2y ago
It's a method call on a String that returns a Regex type, courtesy of the Scala standard library.
47.
▲
by
vvillena
2y ago
Scala is not just a good functional programming language. It's also possibly the best OOP language around. The magic happens when these two aspects are combined.
48.
▲
by
vvillena
2y ago
The assumption that Cats Effect / FS2 / ZIO is easier than Akka / Pekko is questionable. There's the assumption that the Akka ecosystem requires the entire system to be built using the various features the ecosystem off
49.
▲
by
vvillena
2y ago
My favorite showcase of Scala to this day is pattern matching on regular expressions: val date = raw"(\d{4})-(\d{2})-(\d{2})".r "2004-01-20" match case date(year, month, day) => s"$year was a good
50.
▲
by
vvillena
2y ago
EU didn't give you cookie warnings. Malicious compliance by corporations did.
51.
▲
by
vvillena
2y ago
I have great news for you. The article is also perfectly structured, which means it shows flawlessly on reader mode. Reader mode is a standard feature on all major browsers on both desktop and mobile. Given you're so vocal about how ar
52.
▲
by
vvillena
2y ago
Good thing this is a server app and not an end-user product, then.
53.
▲
by
vvillena
2y ago
This process happened in Madrid a few years ago. It's an incredible quality-of-life improvement for everyone in the city. Diesel buses were phased out a few years ago. The newer hybrid CNG buses are uncannily quiet, and some lines in t
54.
▲
by
vvillena
2y ago
All in all, it's a sentiment, but one that's hard to ignore. As a halo product, the Cybertruck is terrible for the Tesla brand.
55.
▲
by
vvillena
2y ago
You will know because any text editor or IDE worth the name will light up that ".await" in such a way you will immediately know it's not a method call or a struct field. The entire construct, including the dot, is a postfix k
56.
▲
by
vvillena
2y ago
You can make the notch go away with third-party apps. On the Pro laptops the screen has miniLED backlighting, so the dark area stays purely black. Removing the notch this way leaves you with a 16:10 screen, so you still have more screen rea
57.
▲
by
vvillena
2y ago
There are already specialized instructions in the Apple Silicon chips. IIRC there's something tailored for the Objective-C runtime, and something useful for Javascript runtimes.
58.
▲
by
vvillena
2y ago
Hiding parts of the menu hinders discoverability when those options are needed, creates a need for one extra action to show all the available options, and messes with the users' spatial and muscle memory. This particular mistake was al
59.
▲
by
vvillena
2y ago
The one key takeaway from PARA, Johnny Decimal, and such other systems, is that nowadays the system itself doesn't matter much, but replicating the same system across all document and information hubs is still a net advantage.
60.
▲
by
vvillena
2y ago
In today's world, it would be under Ctrl+F -> "insurance". If it were on physical paper, it would be on the folder containing the important documents. Over-reliance on hierarchy has been identified as a double edged sword
More ›