HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dhussoe

no profile record

comments

dhussoe
·6 maanden geleden·discuss
ymmv I guess, I could "afford" much more rent than I pay (I suspect many staff+ big tech employees are in similar situations, especially if you're in a relationship with another SWE...) and when we first rented the apartment we had to submit W2s that showed we could probably buy the building if I wanted to, but rent is still going to be determined by the market
dhussoe
·7 maanden geleden·discuss
all the time? not on technical issues, unless it's a TLM or the IC is entry level and it's pretty basic stuff they need help with, but absolutely on navigating organization, communicating, prioritization, and so on...
dhussoe
·7 maanden geleden·discuss
fwiw at big tech companies I haven't found this to be true, bonus and refresher multipliers for the higher performance review ratings are significant
dhussoe
·7 maanden geleden·discuss
I do think that there's a meaningful difference between writing code that was bad (which I definitely did and do) and writing code where I didn't know what each line did.

early on when I was doing iOS development I learned that "m34" was the magic trick to make flipping a view around have a nice perspective effect, and I didn't know what "m34" actually meant but I definitely knew what the effect of the line of code that mutated it was...

Googling on it now seems like a common experience for early iOS developers :)

https://stackoverflow.com/questions/14261180/need-better-and...

https://stackoverflow.com/questions/3881446/meaning-of-m34-o...

https://khanlou.com/2012/09/catransform3d-and-perspectives/
dhussoe
·7 maanden geleden·discuss
shift-option-dash
dhussoe
·7 maanden geleden·discuss
This is kind of a weird example to begin with on a forum mostly populated by software engineers, because I'd find it very weird if a manager ever objected to someone using their personal phone at a SWE or similar office job, but I'd guess that the sets of jobs where a "boss" would object to someone using their phone during work (but still getting their work done) and those that would potentially have a company phone are mostly disjoint... a complete prohibition on using your phone seems like entry-level retail job type rules. excepting corner-case stuff like some very high security facility where you wouldn't even be allowed to bring any outside electronics in.
dhussoe
·7 maanden geleden·discuss
the comment you're replying to said:

> but there is no invitation to guess, and no one pretends you don’t need the manual

which is basically what you're saying too? the problem with voice UIs and some LLM tools is that it's unclear which options and tools exist and there's no documentation of it.
dhussoe
·7 maanden geleden·discuss
the thing I find most frustrating about the music use-case is that if you ask it to play an album, then close out Siri after the confirmation bing noise, but before it finishes reading back to you the artist and album name it's about to play, then it will treat that as a cancellation and it won't play the album.

for example I say: "play comically long album title by artist on Spotify", it thinks about that for five seconds, does the bing noise, then says "playing comically long album title [special remastered edition] by artist on Spotify", and then a few seconds later starts playing the album, and if you don't wait through that whole thing it will just decide that actually you didn't want to hear the album
dhussoe
·7 maanden geleden·discuss
> Not to mention the likely need for continuous internet connectivity and service upkeep. Car companies aren't exactly known for good software governance.

I don't own a car but rent them occasionally on vacation in every one I've rented that I can remember since they started having the big touch screens that connect with your phone, the voice button on the steering wheel would just launch Siri (on CarPlay), which seems optimal—just have the phone software deal with it because the car companies are bad at software.

It seems to work fine for changing music when there's no passenger to do that, subject to only the usual limitations with Siri sucking—but I don't expect a car company to do better, and honestly the worst case I've can remember with music is that played the title track of an album rather than the album, which is admittedly ambiguous. Now I just say explicitly "play the album 'foo' by 'bar' on Spotify" and it works. It's definitely a lot safer than fumbling around with the touchscreen (and Spotify's CarPlay app is very limited for browsing anyways, for safety I assume but then my partner can't browse music either, which would be fine) or trying to juggle CDs back in the day.
dhussoe
·7 maanden geleden·discuss
yeah I have repeatedly had things like "yOu DoN'T tRuSt YoUr BaCkeNd?!?!?!?" come up and am extremely tired of it when it's 2025 and we have libraries that solve this problem automatically and in a way that is usually more ergonomic anyways... I don't do JS/TS so I guess just casting the result of JSON.parse is sort of more convenient there, but come on...
dhussoe
·7 maanden geleden·discuss
no, it's very useful for setting timers and for setting garbled reminders for a soon enough time that I'll remember what I actually meant rather than being confused by whatever it spewed out instead!
dhussoe
·7 maanden geleden·discuss
This is good context to add to the article, because he's basically at retirement age anyways. Depends a little on whether 1980s means "1980" or "1989" but with that resume I think he can afford retirement even if it's 1989 :)
dhussoe
·7 maanden geleden·discuss
"parse don't validate" is from: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...

looking at zod (assuming https://zod.dev) it is a parsing library by that definition — which isn't, like, an official definition or anything, one person on the internet came up with it, but I think it is good at getting the principle across

under these definitions a "parser" takes some input and returns either some valid output (generally a more specific type, like String -> URL) or an error, whereas a "validator" just takes that input and returns a boolean or throws an error or whatever makes sense in the language.

eta: probably part of the distinction here is that since zod is a JS library the actual implementation can be a "validator" and then the original parsed JSON input can just be returned with a different type. "parse don't validate" is (IMO) more popular in languages like Rust where you would already need to parse the JSON to a language-native structure from the original bytes, or to some "JSON" type like https://docs.rs/serde_json/latest/serde_json/enum.Value.html that are generally awkward for application code (nudging you onto the happy parsing path).
dhussoe
·7 maanden geleden·discuss
My relationship is quite long-term, it can almost get its learner's permit, and we use Instagram all the time to, like, share cute animal videos from the Explore/Reels screens to each other, share stories to our friends of whatever we're doing together, or not together, and see our friends' stories.

idk if your partner is jealous of you using one of the top five social networking apps in the world that seems a little weird and maybe your relationship is not very healthy? it's instagram, not tinder or okcupid...
dhussoe
·7 maanden geleden·discuss
I like that JSON parsing libraries (Serde etc.) allow you to validate nullability constraints at parse-time. Protobuf's deliberate lack of support for required fields means that either you kick that down to every callsite, or you need to build another parsing layer on top of the generated protobuf code.

Now, there is a serde_protobuf (I haven't used it) that I assume allows you to enforce nullability constraints but one of the article's points is that you can use the generated code directly and:

> No manual validation. No JSON parsing. No risk of type errors.

But this is not true—nullability errors are type errors. Manual validation is still required (except you should parse, not validate) to make sure that all of the fields your app expects are there in the response. And "manual" validation (again, parse don't validate) is not necessary with any good JSON parsing library, the library handles it.
dhussoe
·7 maanden geleden·discuss
yes, but any sane JSON parsing library (Rust Serde, kotlinx-serialization, Swift, etc.) will raise an error when you have the wrong type or are missing a required field. and any JSON parsing callsite is very likely also an IO callsite so you need to handle errors there anyways, all IO can fail. then you log it or recover or whatever you do when IO fails in some other way in that situation.

this seems like a problem only if you use JSON.parse or json.loads etc. and then just cross your fingers and hope that the types are correct, basically doing the silent equivalent of casting an "any" type to some structure that you assume is correct, rather than strictly parsing (parse, don't validate) into a typed structure before handing that off to other code.
dhussoe
·9 maanden geleden·discuss
> Seems we should be very concerned and work hard to avoid smoking, vs random death from a helicopter falling on us?

At a population level maybe... but if you (and your family/friends if you want to consider that too) already don't smoke, there is not much to do? I don't have to work hard to avoid smoking because I am not interested in doing it to begin with, and it is not like cigarettes jump out of bushes and ambush you.

Helicopter crashes aren't common, but traffic violence is mostly treated as normal in the US, and deaths are often brushed off as an unavoidable "accident" with little or no punishment for the perpetrator, or serious consideration of systematically redesigning streets or vehicles to make these deaths less likely. This is something that I cannot "simply" avoid like smoking is.
dhussoe
·10 maanden geleden·discuss
Kotlin uses "in" and "out": https://kotlinlang.org/docs/generics.html
dhussoe
·10 maanden geleden·discuss
Well.. what’s the level of belief in climate change among elected Dutch leaders?

https://floridaphoenix.com/2024/05/15/desantis-signs-bill-er...
dhussoe
·10 maanden geleden·discuss
Alligators maybe not, but in the one time that I have paddleboarded in the keys I saw a crocodile. Probably a crocodile rather than a gator, I didn’t get that close… but from reading articles they’ll occasionally eat a small dog around there, so they are definitely out there.