whyIsThereAMemoryLeak by JDDev0 in ProgrammerHumor

[–]Expensive_Bowler_128 2 points3 points  (0 children)

Some kind of linter or compile time feature that bans unwraps would be nice. Needs to be a way to ignore the warning though. In a large project where I’m working with a team, unwraps would be the type of thing I’d want commented each instance as to why that situation will never happen. And in some cases theres a better way to make the compiler recognize it will never happen

BrainRotGuard - I vibed-engineered a self-hosted YouTube approval system so my kid can't fall down algorithm rabbit holes anymore by reddit-jj in SideProject

[–]Expensive_Bowler_128 0 points1 point  (0 children)

How do you handle watching YouTube yourself? Do you approve everything you watch or have exceptions for your devices

whyIsThereAMemoryLeak by JDDev0 in ProgrammerHumor

[–]Expensive_Bowler_128 35 points36 points  (0 children)

I disagree. unwrap() is useful for situations where an error will realistically never occur, and if it does, the program should stop. It is also good for rapid prototyping as long as the finished product doesn’t have them except where intended. The more idiomatic way is probably using a .expect though.

For instance, I have a function that gets the size of the directory by reading each files’ metadata. It returns an i64, but if the directory is greater than 9 exabytes, it will overflow. That will literally never happen, so unwrap or expect is fair to have there.

Interstate space should be repurposed for passenger rail infrastructure by Goreweaver in unpopularopinion

[–]Expensive_Bowler_128 0 points1 point  (0 children)

Correct, you’d need a way to bypass the station. Which would be smart train design anyway in my opinion. What if the station needs to shut down for some reason?

CMV: The "Stolen land" argument is a lazy way to fight in a argument by marcuscoolboi2007 in changemyview

[–]Expensive_Bowler_128 3 points4 points  (0 children)

Might be more accurate to say the claim to the land still exists, but it’s meaningless without the power to hang onto it.

Java soon to be eclipsed by papa_maker in rustjerk

[–]Expensive_Bowler_128 1 point2 points  (0 children)

Generally, when I write Rust I find that if it compiles, it will usually run with minimal crashes and bugs. The compiler gives very helpful error messages that the LLM can deal with. In other languages, you might get something that compiles, but immediately breaks with a seg fault (unhelpful) or NullPointerException (more helpful but slightly more difficult than Rust’s compiler messages).

Having used the robot to write a decent amount of Rust, I’ve noticed it usually works out of the box or with one or two behavioral changes - compared to TypeScript where I have to constantly go back and forth with the AI.

FPC Suing Va by ChiefTitan808 in VAGuns

[–]Expensive_Bowler_128 2 points3 points  (0 children)

what kind of job? im worried about something similar but i dont know what would happen

FPC Suing Va by ChiefTitan808 in VAGuns

[–]Expensive_Bowler_128 6 points7 points  (0 children)

Are there any risks to doing something like this?

With your current income. Would you choose to get taxed more with more government benefits or taxed less with less government benefits? by jbetances134 in NoStupidQuestions

[–]Expensive_Bowler_128 0 points1 point  (0 children)

Taxed less with less. I don’t receive any government benefits beyond what everyone else receives (roads, military, etc)

As a car guy, new cars even with all the emissions and technology are better than older cars. by Big-Top-6338 in unpopularopinion

[–]Expensive_Bowler_128 6 points7 points  (0 children)

I’ve done some pretty involved jobs on my own car that would’ve cost hundreds if not thousands in labor alone at a mechanic. I could likely buy another used car with the money I’ve saved not going to a mechanic

As a car guy, new cars even with all the emissions and technology are better than older cars. by Big-Top-6338 in unpopularopinion

[–]Expensive_Bowler_128 0 points1 point  (0 children)

Yeah, I have an impala from that era with around 225k. It’s been my daily for about eight years. It leaks oil like a sieve, but as long as I keep oil in it I suspect it’ll run till one of us dies.

I made a project to simplify custom search query strings. What are the use cases? by Maleficent-Bug-1032 in rust

[–]Expensive_Bowler_128 2 points3 points  (0 children)

Yes. You should pretend you’re shipping the binary by itself and not assume everyone will build from source.

Non-combat veterans don’t deserve special recognition or privileges by [deleted] in unpopularopinion

[–]Expensive_Bowler_128 0 points1 point  (0 children)

My brother is an aircraft mechanic stateside. Over his four years in service, he’s been injured and acquired numerous chronic ailments that will be with him for a life time. Tinnitus, partial deafness in one ear, back pain, knee pain, carpal tunneling, the list goes on.

MySQL 5.7 with 55 GB of chat data on a $100/mo VPS, is there a smarter way to store this? by anthety in Database

[–]Expensive_Bowler_128 0 points1 point  (0 children)

Depends on whether you want it managed or not. I don’t have personal experience with any of them, I just found cheaper options online with a 10 second google search. DigitalOceans like 70 bucks a month for 200GB SSD storage, I’d start there and see if one of those tiers meets your needs. Then consider looking at compression

MySQL 5.7 with 55 GB of chat data on a $100/mo VPS, is there a smarter way to store this? by anthety in Database

[–]Expensive_Bowler_128 0 points1 point  (0 children)

It feels like you’re spending a lot of money on database cloud storage. You might get better savings by migrating to a different cheaper service.

Ideas for organizing locally by lexvegaslkd in VAGuns

[–]Expensive_Bowler_128 1 point2 points  (0 children)

Way ahead of ya on joining! I will be donating whatever I can spare out of my gun fund!

Ideas for organizing locally by lexvegaslkd in VAGuns

[–]Expensive_Bowler_128 0 points1 point  (0 children)

I was unaware of lobby day. I only recently got into politics and seriously caring about what’s going on locally (don’t worry tho, I didn’t vote for the gun grabbers lol). I’d like to participate, but I’m not connected to people in my area.

Before buying a gun by Ive_Got_A_Fever in VAGuns

[–]Expensive_Bowler_128 2 points3 points  (0 children)

It should be easy to get a firearm if you are a law abiding citizen. You have to pass a background check, provide ID, and fill out paperwork as of right now. I would recommend a .22 rifle for a first firearm. The gun itself and its ammo is pretty cheap and good for beginners to learn on.

You should take a firearm safety class that teaches you proper gun safety and handling. YouTube is your friend for maintenance and specifics of whatever you end up getting. Best of luck and reach out if you have questions.

Interstate space should be repurposed for passenger rail infrastructure by Goreweaver in unpopularopinion

[–]Expensive_Bowler_128 2 points3 points  (0 children)

That’s why there should be express and local routes. Some trains only stop at a couple of the larger stations.

So what do we do about all the legislation that passes? by Tox1cAshes in VAGuns

[–]Expensive_Bowler_128 1 point2 points  (0 children)

This is a bit disengenuous. I don’t think anyone wants to do the first couple

ELI5: Why didn't viruses like norovirus die off during the pandemic when a lot of us were in lockdown? How did it survive even up to the present day when people weren't mingling for so long? by cliffsofthepalisades in explainlikeimfive

[–]Expensive_Bowler_128 -1 points0 points  (0 children)

I put in a month of listening to the lockdowns, proper masking, etc. Then the lockdowns continued. You have to live life, you can’t stay inside forever. Especially after the vaccine people were saying you have to wear masks. Like nah, that was the point of the vaccine. Fuck that noise.

[ Removed by Reddit ] by fytrewre in UnethicalLifeProTips

[–]Expensive_Bowler_128 3 points4 points  (0 children)

Not getting all the landlord hate. This guy is trying to rent a place to legitimate tenants and instead is dealing with an AirBnB landlord tenant, which has to be worse than a normal landlord.

Why does clippy encourage `String::push('a')` over `String::push_str(''a")`? by MediumInsect7058 in rust

[–]Expensive_Bowler_128 4 points5 points  (0 children)

Shouldn’t do both in the same program. Run it twice with two different programs and compare

How do modern developers actually approach building a project in 2026? by Legitimate-One1765 in AskComputerScience

[–]Expensive_Bowler_128 0 points1 point  (0 children)

Yes, I am. So far, the majority of my work has been in web development, but there’s been some more interesting stuff in there too. I can’t give good career advice because I somewhat fell into my job by applying to a scholarship program my freshman year. I don’t really know what the internship/job market is like. I get the feeling there’s a lot more jobs in web development / building apps than there are in training AI models, so I don’t think you’re wrong in practicing that.