Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ninkendo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
751.
▲
by
ninkendo
2y ago
Did you use a rice cooker? Rice cookers operate by “sensing“ when all the water is boiled off, by means of a temperature sensor that detects when the temp goes above 100°C. (If you have just the right ratio of water in there, this is what y
752.
▲
by
ninkendo
2y ago
I’ve never used an android phone so I’m curious… isn’t the categorization of such notifications totally up to the developer? I don’t see any other way it could work unless the OS is doing some ML on the notifications. If I’m an app develope
753.
▲
by
ninkendo
2y ago
Software complexity following an ideal gas law is an analogy that works in a ton of ways… time (you’ll keep adding stuff until you’re running close to a deadline at which point you have to actually decide what to cut), head count (complexit
754.
▲
by
ninkendo
2y ago
Yeah someone should get in their Time Machine and tell those idiot SMTP RFC authors in the 1980s that they should have used a wire format that wouldn’t be invented for another 30 years.
755.
▲
by
ninkendo
2y ago
Swift’s `try` isn’t “real” exceptions. It’s basically syntax sugar around a Result type. You can convert them trivially: func someThrowingFunc() throws -> T let someResult = Result(catching: { try someThrowingFunc() }) &#x
756.
▲
by
ninkendo
2y ago
> Go takes its cue from here, but in the interests of brevity it drops the colon This was the biggest mistake IMO. Go’s declaration syntax needs colons, it would have been 100x more readable. Compare: func foo(x int, y int) int {
757.
▲
by
ninkendo
2y ago
The license also says “unless otherwise required by applicable law”, and applicable law here in the US is the DMCA, which says that you can make copies for the purposes of playing the game on different hardware [1]… so long as you don’t n
758.
▲
by
ninkendo
2y ago
The longer exposure doesn’t seem to affect other aspects of the night sky though, I can see stars way better with the naked eye than my phone will show. That’s probably just because of stars being point sources and hard for the camera to fo
759.
▲
by
ninkendo
2y ago
Checking in from Detroit here… the aurora is actually super visible on the iPhone camera. Much more than from the naked eye (although they are slightly visible… I have a lot of light pollution around me though.) I’m curious what causes it t
760.
▲
by
ninkendo
2y ago
What you’re talking about sounds great but it’s not “a touch optimized version of macOS”. You’re describing a CLI environment in a sandbox. Apple will never ever take macOS and change its UI to be optimized for touch. Or at least if they do
761.
▲
by
ninkendo
2y ago
Never. Not ever, ever ever. Apple currently has 5 major build trains: macOS, iOS, watchOS, tvOS (which also runs HomePod), and visionOS. Huge amounts of the code are already the same between them: they literally just build the same stuff wi
762.
▲
by
ninkendo
2y ago
See also the Architecture Astronaut: https://www.joelonsoftware.com/2001/04/21/dont-let-architect...
763.
▲
by
ninkendo
3y ago
Late reply but my original numbers were wrong, it’s 7E27 atoms in a human according to wolfram, I think I just misinterpreted its original output when I tried to put it all in one formula: https://www.wolframalpha.com/input?
764.
▲
by
ninkendo
3y ago
And if you took each atom of all the humans alive and stacked them in a line (assuming 1 angstrom per atom and 7E17 atoms in a human), it would be roughly 60 light years long.
765.
▲
by
ninkendo
3y ago
Notably these runtime costs only occur if you’re calling into another library. For calls within a given swift library, you don’t incur the runtime costs: size checks are elided (since size is known), calls can be inlined, generics are monom
766.
▲
by
ninkendo
3y ago
Right? You're hurdling through the sky at 600mph in a vehicle which is safer than driving a car, at a cost less than a half-week's pay for the median income in the US. This is still utterly magical, even if we don't seem to c
767.
▲
by
ninkendo
3y ago
Before JavaScript it was impossible to make this mistake, yes. The web was originally envisioned such that the hypertext described the form elements and the browser was responsible for the UI behavior. JavaScript brought the idea of a Tu
768.
▲
by
ninkendo
3y ago
They fixed the thing that always autocorrects away from swear words in the 2023 release FYI (maybe 2022, I can’t remember.) They made a special point of mentioning it at WWDC. I can now type “fucking” reliably without it replacing it.
769.
▲
by
ninkendo
3y ago
I do, but it’s janky enough that I don’t actually like it very much, and it hasn’t achieved muscle memory status. It seemed to work better when it was Force Touch based (before they removed Force Touch)… the spacebar technique just doesn’t
770.
▲
by
ninkendo
3y ago
I generally can predict the words it isn’t going to understand, and just make an effort to type those more carefully. The literal letters you typed so far is typically the leftmost option in the word list just above the keyboard. 98% of the
771.
▲
by
ninkendo
3y ago
Too late to edit above, so adding this here: D’oh, didn’t realize the anecdote was about an in-person exchange at the bank, I skimmed the context too quickly.
772.
▲
by
ninkendo
3y ago
It won’t because they can’t verify that you are who you say you are in first place, so to them you’re just a scammer trying to socially engineer them. (Or at least that’s how they should be treating you if they were trained correctly.)
773.
▲
by
ninkendo
3y ago
> The soft keyboards on modern smartphones are just terrible I find it’s best to think of the iOS keyboard[0] as being a single big touch area with no distinct buttons, which you type into by tapping your fingers in the general vicinity
774.
▲
by
ninkendo
3y ago
> but as soon as the ISPs that create the infrastructure that makes all this happen (and innovate massively in the process) want some piece of the cake everyone cries foul I pay my ISP well over $100 a month for their service. Far more t
775.
▲
by
ninkendo
3y ago
I’ve been out of the web dev game for 7 years or so, completely missed react. Started in Perl, then ASP.NET, then Rails for about 5 years, then finally ended with an AngularJS SPA that ended up being a maintenance nightmare before I moved o
776.
▲
by
ninkendo
3y ago
At some point someone is actually doing journalism though (in the best case at least.) News outlets that summarize things from e.g. Reuters or AP tend to have agreements which pay money for the information. You could reasonably argue that g
777.
▲
by
ninkendo
3y ago
> it works if you know the right trigger words and how it expects you to ask the question I don't think we should discount this. There's something to be said for a product that works in a specific way, and if you use it in that
778.
▲
by
ninkendo
3y ago
Every time someone on HN praises Flutter for being the best way to do UI’s, I shudder to think of all the conveniences I’m used to (on both windows and macOS, I’ve used a lot of both) that are likely completely ignored or forgotten by these
779.
▲
by
ninkendo
3y ago
> No more null pointer errors at runtime This is the most glaring thing IMO. Go repeating the billion dollar null pointer mistake is inexcusable IMO. There’s zero reasons for a language designed in the last 20 years to have this problem.
780.
▲
by
ninkendo
3y ago
> everyone real would have something like a Linked In page, Facebook, Twitter, Instagram, or better, their own website with stuff that could be used to ensure they're a real person Oof, I guess I’m not real then, as I have none of t
More ›