Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yen223
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
661.
▲
by
yen223
3y ago
Javascript's one is a little bit different in that you are renaming the destructured variable - it's not a function-specific thing - whereas Swift's version is a property of the function. e.g. const user = {id: "123&
662.
▲
by
yen223
3y ago
Not having keys in function parameters is a mistake. Swift does have an unconventional approach to function keys though, wherein you can specify an "external" label and an "internal" label: func greeting(for person:
663.
▲
by
yen223
3y ago
That moment when you realise all of the complicated nonsense is there only to make unit tests work
664.
▲
by
yen223
3y ago
I think that the Javascript ecosystem holds up pretty well. Especially considering the constraints in that area (e.g. that developers don't get to choose which runtime their frontend code run on). I also think that having a lot of libr
665.
▲
by
yen223
3y ago
"Is it worthwhile?" is not a bad question to ask. If someone proposed to use all of our resources to discover life outside of Earth, we would probably agree that's not the best use of our resources. But this means there
666.
▲
by
yen223
3y ago
The interesting thing here is that the typesafe printf has its function arguments inferred from a string literal, at compile time. You can change the 9 to a "9" and see the type error even before running the code. This is somethin
667.
▲
by
yen223
3y ago
Unless I'm mistaken, Clojure spec operates at run-time, not at compile-time.
668.
▲
by
yen223
3y ago
Kubernetes provides good abstractions for managing deployments, but Kubernetes also comes with massive overheads. The overheads come in terms of the many yaml files needed to define services, and in terms of complexity of the underlying inf
669.
▲
by
yen223
3y ago
"ASML has expressed concerns that recent proposals to curb immigration, including limiting foreign students and ending tax brakes for highly skilled immigrants, will make it harder to attract talent." It doesn't sound like to
670.
▲
by
yen223
3y ago
I used to think that CUDA was something that would get commoditised real fast. How hard could building it be? However, given that the nearest competitor AMD has basically given up on building a CUDA alternative, despite the fact that this c
671.
▲
by
yen223
3y ago
You probably should crack open a window or two :D An idea that stuck with me was that everything around you that isn't natural was made by somebody. Buildings, roads, sewer grates, televisions, whiteboard markers, candy wrappers, all
672.
▲
by
yen223
3y ago
The only change that isn't "breaking" is one that only adds functionality. Otherwise, it changes behavour, and has the potential to break your software. In practice, almost all changes should be major version bumps. Anyway th
673.
▲
by
yen223
3y ago
tldr: A dependency wasn't pinned, the dependency changed, and stuff broke. Author thinks Javascript sucks. I will say this though: it is infuriating that package managers (every single one I've used, not just NPM) don't defau
674.
▲
by
yen223
3y ago
For me, it took an estimated 3-5s to load on first visit. Fast, but not "faster than native apps" The second time round it loaded almost instantly. I'm guessing there's some caching going on.
675.
▲
[2022] That time Indiana almost made Pi 3.2
(buttondown.email)
1 points
by
yen223
3y ago
|
0 comments
676.
▲
by
yen223
3y ago
> What is the hold up? Why isn't this happening? One of the problems, and arguably one of its strengths, with the modern web is that there's no single "entity" that owns everything. A large part of why this isn't
677.
▲
by
yen223
3y ago
I now really want to know what prompt was used to generate this text
678.
▲
by
yen223
3y ago
When defining payloads for updates, it is really useful to be able to distinguish something like {"name": null, "age": 25} // Set name to null, and age to 25 from {"age": 25} //
679.
▲
by
yen223
3y ago
Let's not be one of those people who measure developer productivity by number of lines
680.
▲
by
yen223
3y ago
"known unknowns" and "unknown unknowns" are concepts that came out from the project management world. It's not a thing that Rumsfeld invented.
681.
▲
by
yen223
3y ago
There's a well-written article by Bret Victor on climbing the ladder of abstraction. It makes the same argument you made, in that climbing "down" the ladder is just as important as going "up" https://worr
682.
▲
by
yen223
3y ago
That's what I don't understand, why would they spend all that money on Udacity, rather than spending it on champagne and Ferraris for senior officials? Where's the ROI for Udacity?
683.
▲
by
yen223
3y ago
This definitely wasn't in my 2024 bingo card. What does Accenture (or for that matter Udacity) have to gain from this acquisition?
684.
▲
by
yen223
3y ago
A funny thing I remembered was that when ChatGPT 4 was announced, Google panicked-released Bard in a half-complete state as a response Apple's response during that time was to release the yellow iPhone.
685.
▲
by
yen223
3y ago
According to the article, the physical implementation of graphs is precisely the thing you cannot ignore, because the performance difference between a generic solution and a "correct" solution is huge, basically the difference bet
686.
▲
by
yen223
3y ago
This is a hard-earned lesson, but it's true. Instead of doing def do_something_with_date(): now = datetime.now() return now - timedelta(days=2) you should do def do_something_with_date(now): return now - ti
687.
▲
by
yen223
3y ago
timedelta doesn't take "years" as a parameter, for the reasons others have listed here. It's ambiguous what subtracting by a year means, and there's no real sensible default either.
688.
▲
by
yen223
3y ago
It would take a lot less energy to destroy everything we've built, than the energy needed to build them in the first place. It's only by the grace of something that we chose not to destroy everything we see. I hope that remains th
689.
▲
by
yen223
3y ago
Do people still care? This is the first time in a long time I've seen Satoshi being mentioned at all. Though admittedly I'm not big into crypto.
690.
▲
by
yen223
3y ago
> They should never be considered "investments", in my opinion. 100% agreed. The idea that you should be able to buy property, do nothing with it (or worse - use it and incur depreciation), and still resell it for a profit, is
More ›