HNHacker News
TopNewBestAskShowJobs

danappelxx

499 karma · joined April 28, 2015

https://danapp.app
submissionscomments
danappelxx··on Swift on the Server (2020)
Depends on the team, it’s a big company. There are definitely swift services internally.
danappelxx··on Swift Evolution: Actors
From what I can tell UIKit and friends will adopt this actors eventually via bridging (just like they adopted Swift 3's error handling).
danappelxx··on mrustc: In-progress alternative Rust compiler (to C)
I believe that’s exactly what they were suggesting :)
danappelxx··on Where Everything Went Wrong: Error Handling and Error Messages in Rust (2020)
I missed `guard let` for a while too, but eventually stumbled upon this pattern which is almost as good:

    let value = match value {
        None => return,
        Some(value) => value
    };
danappelxx··on JavaScript Minification Benchmarks
When would you need to minify in dev?
danappelxx··on Many scientists citing two scandalous Covid-19 papers ignore their retractions
This is gold

“Worst paper of 2020?” https://scienceintegritydigest.com/2020/07/23/worst-paper-of...

danappelxx··on Monads and GATs in Nightly Rust
I would say, with the exception of the async split, no. The biggest pain is still the learning/skill curve, it always feels (to me) like there's a language feature I'm not taking advantage of that would make a piece of code more "rusty". Not different in style necessarily, just more elegant.
danappelxx··on AirPods Max
You almost had me fooled :)

That's not a 3.5mm jack, that's the top of the headphones. See[1] where the crown is on the top.

[1]: https://www.apple.com/newsroom/images/product/airpods/standa...

danappelxx··on AirPods Max
The headphones have a lightning port (just like iPhones). This cable is to connect the headphones to a 3.5mm port (ie MacBook).
danappelxx··on Rustup 1.23.0
> What's new in rustup 1.23.0

> Support for Apple M1 devices

For those skimming

danappelxx··on No More Google
I've been using Zoho for personal-domain email, it's been a low-maintenance and cheap ($12/year) solution. That said I can't speak for the quality of their mail client, I use a native app (Mail.app/Spark).
danappelxx··on Lockless Algorithms for Mere Mortals
But... give an example. When is shared-memory concurrency (with locks) faster?
danappelxx··on Show HN: MeetingBar – A menu bar macOS app for calendar meetings
Not parent, but I have bitbar menus for ssh’ing to digitalocean boxes, connecting to corporate vpn, and displaying uptime information from uptimerobot.
danappelxx··on Ask HN: What did you make during lockdown?
Check out the video in the post they linked. Moves the piece slightly out of the way. Honestly incredible!
danappelxx··on Designing an Authentication System: A Dialogue in Four Scenes (1988)
Interesting, this dialogue is from 1988, and since then we’re really re-invented the wheel with JWT, which by my understanding still allows for some forms of MITM and replay attacks, relying heavily on token expiration. Though I suppose the landscape has changed since most connections are now assumed encrypted.
danappelxx··on Grayshift's Hide UI Spyware Can Secretly Log Passcode of Locked iPhones
I understand what you are saying, but seriously, the best way to get an exploit like this onto an end-users phone en-masse is through a third-party sdk. If a government pressured one of the companies behind the major SDK's to include this spyware as a form of backdoor, perhaps they would be forced to oblige.
danappelxx··on Grayshift's Hide UI Spyware Can Secretly Log Passcode of Locked iPhones
By adding it to the Facebook SDK, of course.
danappelxx··on The Quest for the Perfect Dark Mode (Gatsby/React)
see: https://www.joshwcomeau.com/react/announcing-use-sound-react...
danappelxx··on Start all of your commands with a comma (2009)
$ date -R Gets you very close with fewer characters
danappelxx··on Firebase as a React Hook
Looking forward to it :)
danappelxx··on Firebase as a React Hook
But at the same time, what if you want to filter records? Doing it on the Firebase side saves both time and money.
danappelxx··on Firebase as a React Hook
In one of the examples, the author fetches results from Firebase, and then sorts them in the browser. I'm not huge on Firebase, but aren't there methods ([0]) to do this on the database, where it'd be much faster and wouldn't waste client cpu?

If this is the case, then this is a bit of faulty abstraction - your database queries are going to be more than just 'select * from <>'. I'm sure there's a way to accomplish this with react hooks without sacrificing elegance for performance.

[0]: https://firebase.google.com/docs/reference/js/firebase.datab...

danappelxx··on Web-assembly powered WYSIWYG LaTeX Editor, supporting nearly all LaTeX package
https://github.com/search?utf8=&q=repo%3ASwiftLaTeX%2FSwiftL...
danappelxx··on GitHub CEO Says It Has to Follow Microsoft’s Lead on Working with ICE
Why?
danappelxx··on V8 adds support for top-level await
What is an IIFE?
danappelxx··on Launch HN: SannTek (YC S19) – Breathalyzer for Cannabis
This is not about the war on drugs, this is about making roads safer. Driving under the influence is illegal whether the influencing drug is legal or not.
danappelxx··on Implement mechanism to wait on any of several futexes
Oblivious question: is there any notion of granulated permissions, ie a ‘mouse’ user group that the game could add itself to? Seems like something like this shouldn’t be a deal-breaker.
danappelxx··on Better Bash History (2012)
How would one go about setting up a container?
danappelxx··on Falsehoods Programmers Believe About Search
Luckily, Stripe is polite enough to allow users to fall back to default search with another tap of ctrl+f.
danappelxx··on What Happened to 'Miegakure,' the Game That Promised the 4th Dimension? (2018)
At a short glance, it reminds me a lot of Monument Valley, which cleverly changes the dimensionality of the world with rotation.
← PreviousPage 3 of 6Next →