Mama told me not to come.
She said, that ain’t the way to have fun.
- 16 Posts
- 8.4K Comments
American tourists escaping Prohibition
Wait, they banned salads along with the booze? That’s too far!
Is 12AM after 12AM?
early 2000s
Nothing good happened in that time period:
- .com crash and the lost decade
- 9/11 and the TSA/Patriot Act nonsense that followed
- Bush, and the start of Iraq and Afghanistan wars
- Dreamcast discontinued, and Sega drops out of the console market (duopoly ensues)
And of course History, Discovery, etc turning to utter crap.
No, that’s an ornithologist.
An orgasm is the term used to refer to relative positions in a set.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Bossware rises as employers keep closer tabs on remote staffEnglish
35·1 年前As a manager of sorts, I already know if people are doing their job: the work gets done. I’m involved enough to know how much time their work should take and see through their BS since I do similar work.
Maybe these bosses should do the same: do similar work and you’ll know when they’re BS-ing you.
sugar_in_your_tea@sh.itjust.worksto
Funny@sh.itjust.works•Put it to the right next time, I dare you
4·1 年前I loved that controller as a kid.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•How One Uncaught Rust Exception Took Out CloudflareEnglish
1·1 年前I see you ignored my entire comment.
No, I responded to the relevant part. I was using
segfaultas a metaphor, not arguing that it’s actually the same mechanism underneath. If you’re getting panics in production code, I consider that just as much of an emergency to fix as a segfault, and Rust helpfully gives you stack trace info with it. It’s not the same idea as an exception, which could signify an unrecoverable error or an expected issue that can be recovered from.I don’t know what is more explicit about expect
It forces you to write a message, so most temporary uses will be
unwrap(). I useunwrap()all the time when prototyping for the happy path, and then do proper error handling later. This is especially true in larger projects where I can’t just throw inanyhowor something and actually need to map error types and whatnot. I don’t useexpect()much (current hobby project has 4 uses, 3 for startup issues and 1 for hopefully impossible condition) but I think it makes sense when there’s no way to continue.But yes,
unwrap()is perhaps the first thing I look for as a reviewer, which is why it’s so surprising that this is the issue. At the very least, it should have been something likeexpect("exceeds max file size"). I personally prefer explicit panics in production code, but expect is close enough that it’s personal preference.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•How One Uncaught Rust Exception Took Out CloudflareEnglish
1·1 年前Yes, it’s not the same since you get a stacktrace (if enabled) and a message, but it’s the closest thing you get in safe rust (outside compiler bugs). I compare it to a segfault because it’s almost as unhandleble.
Basically, you don’t want a panic to crash your program in most cases. If you do, make it explicit (i.e. with
expect()).unwrap()tells me the value is absolutely there or the dev is lazy, and I always assume the latter unless there’s an explanation (or it’s obvious from context) otherwise.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Microsoft finally admits almost all major Windows 11 core features are brokenEnglish
11·1 年前Nah, if there’s one thing they thoroughly test, it’s the spying.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•How One Uncaught Rust Exception Took Out CloudflareEnglish
42·1 年前No, it’s a panic, so it’s more similar to a segfault, but with some amount of unwinding. It can be “caught” but only at a thread boundary.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•How One Uncaught Rust Exception Took Out CloudflareEnglish
5·1 年前It is unwrap’s fault. If they did it properly, they would’ve had to explicitly deal with the problem, which could clarify exactly what the problem is. In this case, I’d probably use
expect()to add context. Also, when doing anything with strict size requirements, I would also explicitly check the size to make sure it’ll fit, again, for better error reporting.Proper error reporting could’ve made this a 5-min investigation.
Also, the problem in the first place should’ve been caught with unit tests and a test deploy. Our process here is:
- Any significant change to queries is tested with a copy of production data
- All changes are tested in a staging environment similar to production
- All hotfixes are tested with a copy of production data
And we’re not a massive software shop, we have a few dozen devs in a company of thousands of people. If I worked at Cloudflare, I’d have more rigorous standards given the global impact of a bug (we have a few hundred users, not billions like Cloudflare).
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•How One Uncaught Rust Exception Took Out CloudflareEnglish
131·1 年前Ift is precious and beyond compare. It has tools that most other languages lack to prove certain classes of bugs are impossible.
You can still introduce bugs, especially when you use certain features that “standard” linter (clippy) catches by default and no team would silence globally.
.unwrap()is very controversial in Rust and should never be used without clear justification in production code. Even in my pet projects, it’s the first thing I clear out once basic functionality is there.This issue should’ve been caught at three separate stages:
- git pre-commit or pre-push should run the linter on the devs machine
- Static analysis checks should catch this both before getting reviews and when deploying the change
- Human code review
The fact that it made it past all three makes me very concerned about how they do development over there. We’re a much smaller company and we’re not even a software company (software dev is <1% of the total company), and we do this. We don’t even use Rust, we’re a Python shop, yet we have robust static analysis for every change. It’s standard, and any company doing anything more than a small in-house tool used by 3 people should have these standards in place.
Use something like Backblaze or Hetzner storage boxes for off-site backups. There are a number of tools for making this painless, so pick your favorite. If you have the means, I recommend doing a disaster recovery scenario every so often (i.e. disconnect existing drives, reinstall the OS, and load everything from remote backup).
Generally speaking, follow the 3-2-1 rule:
- 3 copies of everything on
- 2 different types of media with
- 1 copy off site (at least)
For your situation, this could be:
- 3 copies - your computer (NVMe?), TrueNas (HDD?), off-site backup; ideally have a third local device (second computer?)
- 2 media - NVMe and HDD
- 1 copy off site - Backblaze, Hetzner, etc
You could rent a cloud server, but it’ll be a lot more expensive vs just renting storage.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Screw it, I’m installing LinuxEnglish
3·1 年前Exactly.
There’s a difference between gatekeeping and being transparent about what’s expected. I’m not suggesting people do it the hard way as some kind of hazing ritual, but because there’s a lot of practical value to maintaining your system there. Arch is simple, and their definition of simple means the devs aren’t going to do a ton for you outside of providing good documentation. If your system breaks, that’s on you, and it’s on you to fix it.
If reading through the docs isn’t your first instinct when something goes wrong, you’ll probably have a better experience with something else. There are plenty of other distros that will let you offload a large amount of that responsibility, and that’s the right choice for most people because most people don’t want to mess with their system, they want to use it.
Again, it’s not gatekeeping. I’m happy to help anyone work through the install process. I won’t do it for you, but I’ll answer any questions you might have by showing you where in the docs it is.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Cloudflare blames massive internet outage on 'latent bug'English
2·1 年前If you have reasonable practices, git blame will show you the original ticket, a link to the code review, and relevant information about the change.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Elon Musk suggests AI will make work ‘optional’ and money irrelevantEnglish
10·1 年前Then just do it in your greenhouse. If you don’t have one, ask your help to build one.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Screw it, I’m installing LinuxEnglish
61·1 年前Yes, Arch is really stable and has been for about 10 years. In fact, I started using Arch just before they became really stable (the /usr merge), and stuck with it for a few years after. It’s a fantastic distro! If openSUSE Tumbleweed stopped working for me, I’d probably go back to Arch. I ran it on multiple systems, and my main reason for switching is I wanted something with a stable release cycle for servers and rolling on desktop so I can use the same tools on both.
It has fantastic documentation, true, but most likely a new user isn’t going to go there, they’ll go to a forum post from a year ago and change something important. The whole point of going through the Arch install process is to force you to get familiar with the documentation. It’s really not that hard, and after the first install (which took a couple hours), the second took like 20 min. I learned far more in that initial install than I did in the 3-ish years I’d used other distros before trying Arch.
CachyOS being easy to setup defeats the whole purpose since users won’t get familiar with the wiki. By all means, go install CachyOS immediately after the Arch install, buy so yourself a favor and go through it. You’ll understand everything from the boot process to managing system services so much better.
sugar_in_your_tea@sh.itjust.worksto
Technology@lemmy.world•Screw it, I’m installing LinuxEnglish
3·1 年前I 100% agree. If you want the Arch experience, you should have the full Arch experience IMO, and that includes the installation process. I don’t mean this in a gatekeepy way, I just mean that’s the target audience and that’s what the distro is expecting.
For a new user, I just cannot recommend Arch because, chances are, that’s not what they actually want. Most new users want to customize stuff, and you can do that with pretty much every distro.
For new users, I recommend Debian, Mint, or Fedora. They’re release based, which is what you want when starting out so stuff doesn’t change on you, and they have vibrant communities. After using it for a year or two, you’ll figure out what you don’t like about the distro and can pick something else.











If an AI can effectively do your coursework, why wouldn’t AI replace you in the industry?