[-] FizzyOrange@programming.dev 5 points 3 weeks ago

If you use VSCode, open both files and then ctrl-shift-P "Compare active file with ..."

You're welcome.

[-] FizzyOrange@programming.dev 5 points 1 month ago* (last edited 1 month ago)

Languages that make use of references rather than pointers don’t have this Dualism.

It's not about references vs pointers. You could easily have a language that allowed "null references" (edit: too much C++; of course many languages allow null references, e.g. Javascript) or one that properly separated null pointers out in the type system.

I agree with your point though, using a special Null value is usually worse than using Option or similar. And nullptr_t doesn't help with this at all.

[-] FizzyOrange@programming.dev 5 points 1 month ago

Well yeah I think the point is you're human and you might make a mistake.

[-] FizzyOrange@programming.dev 5 points 1 month ago

It is slightly surprising no? I can't see any real reason for it to record this information.

That said, your rough timezone is probably going to leak just from the fact that people generally don't make commits in the middle of the night. If you want HN paranoia levels of anonymity you need to schedule your commits to be automatically pushed at exactly midnight UTC every day.

[-] FizzyOrange@programming.dev 5 points 1 month ago

To be fair if it's an exceptional error message (i.e. database timeout; not incorrect password) I don't think i18n matters that much. Most people will just be googling the error message anyway, and if not it should be rare enough that using Google translate isn't an issue.

[-] FizzyOrange@programming.dev 4 points 2 months ago

I dunno maybe once a week or so? We don't actually have a system that detects if your pip install is out of sync with pyproject.toml yet so I run it occasionally just to make sure.

And it runs in CI around a dozen times for each PR. Yeah not ideal but there are goodish reasons which I can explain if you want.

[-] FizzyOrange@programming.dev 5 points 2 months ago

So either you agree with what it's called or you're "disruptive" and should be banned? Hmm.

I read a load of his comments and they seem quite reasonable. A million miles from ban-worthy.

[-] FizzyOrange@programming.dev 5 points 2 months ago

Come on, surely by now everyone knows TIOBE is meaningless bullshit?

[-] FizzyOrange@programming.dev 5 points 2 months ago

Yeah there's no way I trust their methodology has stayed that stable over 15 years. Hell if you just look in the last year supposedly 3% of global users jumped from Mac to Windows in a single month (Nov 2023).

There are also loads of new Linux device classes that may have Linux in their user agent but aren't really "the year of the Linux desktop" that you're thinking of. It seems they try to count ChromeOS (though badly - seems like "Unknown" contains a lot of ChromeOS depending on the month), and obviously Android, but what about Steam Deck? Smart devices with web browsers built in? Is your Tesla desktop Linux?

I'd buy it's gone up; not to 4% though. I would be moderately surprised if 4% of web users had even heard of Linux.

[-] FizzyOrange@programming.dev 5 points 4 months ago

You're right of course. I think the issue is that Linux doesn't care about the UI. As far as it is concerned GUI is just another program. That's the same reason you don't have things like ctrl-alt-del on Linux.

[-] FizzyOrange@programming.dev 4 points 6 months ago

It also does exhaustiveness checking for enums! Pyright is probably the best thing about Python.

[-] FizzyOrange@programming.dev 5 points 6 months ago* (last edited 6 months ago)

That's just Typescript with extra steps.

Though I have also done this once or twice for single-file projects where I didn't want to deal with actually running tsc. It has some annoying downsides though, e.g. you don't get to have a tsconfig.json and the syntax sucks.

Microsoft had a proposal to allow TS annotations in JavaScript which would have been awesome and fixed the syntax issue.

Looks like it was discussed a year ago and hasn't really made much progress. Seems like lots of people wanting to shoehorn runtime type checking onto it.

view more: ‹ prev next ›

FizzyOrange

joined 1 year ago