Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomtheelder
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
tomtheelder
2y ago
It’s actually so painful to go back to languages without destructuring and pattern matching.
32.
▲
by
tomtheelder
2y ago
Yeah you nailed the limitation. Switch type expression that returns a value is a pretty universal feature in expression based languages, often in the form of a pattern matching based expression. Check out the ‘case’ statement in elixir for
33.
▲
by
tomtheelder
2y ago
Depends on the language a bit, but a common feature in these languages is the tuple. Using a tuple you would end up with something like: let (value1, value2) = if (condition) { (8, 16) } else { (16, 256) } Or else you’d just use some other
34.
▲
by
tomtheelder
2y ago
It’s only an acceptable workaround in the case of two conditions, but you’re still out of luck if you have >2 branches and no match expression.
35.
▲
by
tomtheelder
2y ago
I have never heard anyone in real life call it X. I do agree that the headline shouldn’t be editorialized, though. “X (formerly Twitter)” at most.
36.
▲
by
tomtheelder
2y ago
I have a keyboard that has this exact arrow key layout and… idk it’s fine? I think within a day I was completely used to it. I’m actually kind of confused what the complaint is with full height left/right. That it’s harder to locate th
37.
▲
by
tomtheelder
2y ago
I think it’s just an expectations question. Current gen models are a relatively minor productivity enhancer on the margin. Orgs that treat it as such are yielding the benefits. Those that think it means they can get 20% extra out of their e
38.
▲
by
tomtheelder
2y ago
You can what now?
39.
▲
by
tomtheelder
2y ago
It’s debated, but the prevailing belief is that it originated to refer to the number of stories. Hence you’ll also see “5-over-2” used fairy commonly as well.
40.
▲
by
tomtheelder
2y ago
I like Rust a great deal and really enjoy using it, but I also think it's kind of ugly. Like I'm talking surface level aesthetics, purely subjective. I can't quite put my finger on why. I think it's to do with the heavy
41.
▲
by
tomtheelder
2y ago
Absolutely, but that’s not a problem intrinsic to bicycles like it is to motorcycles, so I don’t think this comparison is meaningful.
42.
▲
by
tomtheelder
2y ago
I think the argument is a little different. I’d say the best framing of it is that we have sacrificed every other method of transportation at the altar of personal cars. Building for cars is what has made every other option shitty. So it’s
43.
▲
by
tomtheelder
2y ago
If I'm understanding it correctly, I think it renders your presentation to an html file that you can just open in a browser. I assume the effects and transitions are all powered by embedded JS. So it should be portable.
44.
▲
by
tomtheelder
2y ago
> The work from home "revolution" only touches a very thin layer of people, most people with jobs still need to show up physically every day. I also think that it's a mistake to think that only jobs drives urbanization. Do
45.
▲
by
tomtheelder
2y ago
Absolutely agree. I think people saw that a lot of games are written in C++ and got confused into thinking that the right thing to do is to build your entire game in a systems language. The fact that we have games written entirely in C++ is
46.
▲
by
tomtheelder
3y ago
Low in milk??
47.
▲
by
tomtheelder
3y ago
Do you have any examples? I’m pretty curious about Picotron, but would love to try an OSS alternative.
48.
▲
by
tomtheelder
3y ago
Last time I was using Bevy I had a cleanup system to solve exactly that issue. It queried for entities with the AssociatedWithState component, or whatever I called it, and destroyed any where the was a mismatch. I could see an efficient ver
49.
▲
by
tomtheelder
3y ago
I really don't think that's true. Essentially the argument is that these models are more or less just outputting the work of others. Work already done- not theoretical future work, which is what people usually criticize new techno
50.
▲
by
tomtheelder
3y ago
I did sort of the opposite. Used to do all typed, now I do both. I make a distinction between notes, which are ephemeral and for memory and quick reminders, and documentation, which is for long term reference. Notes are on paper, documentat
51.
▲
by
tomtheelder
3y ago
Neither the article nor the comment you are referring to were talking about government housing. And you’re entitled to not want to live in a dense urban environment, but you might need to open your mind to the idea that not everyone feels t
52.
▲
by
tomtheelder
3y ago
I assume the original language of the codebase
53.
▲
by
tomtheelder
3y ago
I responded to a sibling comment, but basically I think that study sort of misses the point. The reason to move away from plastic bags is due to plastic waste and microplastics, and the study doesn't touch on that really at all. Their
54.
▲
by
tomtheelder
3y ago
Yeah I've never been a fan of that study. They take a bunch of categories where the bags basically all have negligible impact regardless of material (ozone depletion, ionizing radiation, etc) and compare them on those without using a p
55.
▲
by
tomtheelder
3y ago
SAT/ACT for high achieving students means months of prep/studying and practice test taking. It ends up being a ~somewhat~ similar experience to a college class. Not really similar to humanities classes that depend on discussion se
56.
▲
by
tomtheelder
3y ago
I feel like cotton canvas ones should be the thing we move toward. No plastic, and they last for so long. Never had one wear out before.
57.
▲
by
tomtheelder
3y ago
I think there’s plenty of reason to be concerned about microplastics, but not necessarily. There are plenty of fine particulates that you could eat to no ill effect which are very harmful if inhaled.
58.
▲
by
tomtheelder
3y ago
Is yet another company getting hoovered up by Amazon better for society than it going out of business? Honestly I don't know that's as obvious as you're making it sound. Hyper consolidation is arguably the biggest economic
59.
▲
by
tomtheelder
3y ago
I'm firmly of the belief that they are negative value in most cases. Consolidation is an economic and social disaster. It's slowly been choking us out for decades. Certainly I think a corporation the size of Amazon making an acqui
60.
▲
by
tomtheelder
3y ago
Surely the only added complexity is in blocking other browser engines.
More ›