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

Vibe port the Zig compiler to Rust? 😄

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

I feel like this is due to my C-suite pushing for AI integrations in basically everything

I would put a small amount of money on it actually being because this guy was involved in setting up that workflow and sees your suggestion to fix it as criticism that it is shit (and by implication so is he).

Very common defence mechanism.

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

Yeah I think the reputation was probably deserved early in Rust's life, but as time has gone on it has gotten a lot easier to write, especially with the non-lexical lifetimes update 3 years ago.

[-] FizzyOrange@programming.dev 15 points 10 months ago

They're released on a schedule so they are often quite boring.

[-] FizzyOrange@programming.dev 16 points 1 year ago

Yeah there are pros and cons. Desktop apps are not sandboxed. Mobile apps are often missing features and are annoying to install. Websites often have poor performance or janky UX on mobile, and you need to be online, and you don't have control of their availability.

I think the best option depends on what the thing is - ordering food from a random pub? Web site. Video editing? App.

[-] FizzyOrange@programming.dev 15 points 1 year ago

I've always heard Teams is crap but I've never used it. My company is switching to it though. What crap things do I have to look forward to?

[-] FizzyOrange@programming.dev 15 points 2 years ago

I don't think there were any standards for this sort of thing when Flatpak and Snaps first came out, and they arrived at the same time and have pretty big differences. So this doesn't apply.

[-] FizzyOrange@programming.dev 15 points 2 years ago

pointing and saying “this is shit. Look at this shit”

Yeah you only get to do that if you're Linus 😄

[-] FizzyOrange@programming.dev 16 points 2 years ago

Very good points. A codebase that gets this VERY wrong is Gitlab. I think it might be a dumb characteristic of Ruby programs, but they generate identifiers all over the place. I once had to literally give up following some code because I could not find what it was calling anywhere. Insanity.

Another point: don't use - in names. Eventually you'll have to write them down in a programming language, at which point you have to change the name. CSS made this mistake. foo-bar in CSS maps to fooBar in Javascript. Rust also made this mistake with crate names. A crate called foo-bar magically becomes foo_bar in Rust code.

[-] FizzyOrange@programming.dev 16 points 2 years ago

Its definitely best to try and avoid raw pointers, but even if you try really hard I found it's not really possible to get a Rust-like experience with no UB.

Even something as simple as std::optional - you can easily forget to check it has a value and then boom, UB.

The C++ committee still have the attitude that programmers are capable of avoiding UB if they simply document it, and therefore they can omit all sanity checks. std::optional could easily have thrown an exception rather than UB but they think programmers are perfect and will never make that mistake. There are similar wild decisions with more recent features like coroutines.

They somehow haven't even learnt the very old lesson "safe by default".

If I wanted memory unsafety I think I would consider Zig instead of C++ at this point.

[-] FizzyOrange@programming.dev 15 points 2 years ago

Go to bed, you're drunk.

[-] FizzyOrange@programming.dev 15 points 2 years ago

Saving this for when people try to claim that naming things isn't important!

Also that is clearly a security issue. Anyone who tries to claim otherwise is forgetting that humans exist. Though I suspect they were just trying to avoid admitting fault and doing work. Disappointing either way.

view more: ‹ prev next ›

FizzyOrange

0 post score
0 comment score
joined 2 years ago