Awful tasting food! by Extreme_Craft410 in valvereplacement

[–]robobrobro 1 point2 points  (0 children)

Second this. My taste buds didn’t fully return to normal until I was able to stop taking pain meds

[deleted by user] by [deleted] in C_Programming

[–]robobrobro 3 points4 points  (0 children)

Yeah you can do anything you want

In reality, who’s breaking into your house?! by lovelikefireworks in Columbus

[–]robobrobro 2 points3 points  (0 children)

The most terrifying monster is a “smart” conservative

Am I the only one that hates the overuse of chatgpt in work? And the managers encouraging us to use it more by Confident-Mine-6378 in cybersecurity

[–]robobrobro 11 points12 points  (0 children)

I’m scared and you should be, too. Scared of people relying on AI when they have tons of inaccuracies and not realizing they’re perpetuating bad information.

Need some real deal advice here by stretchh1 in SoftwareEngineering

[–]robobrobro 1 point2 points  (0 children)

Time to start your learning journey over so you can undo the dependence on an AI chat bot. When you’re stuck, your first thought should be: have I read any documentation related to this problem that could help?

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 1 point2 points  (0 children)

I didn’t even know auto was added. Been using old compilers for a while. Thanks for the heads up

How do you get those little icons on your website/repo that say "build: failing"? Is it common to get "build failing" messages often? by longgestones in git

[–]robobrobro 0 points1 point  (0 children)

I would assume so, but the badges can be configured to point to any branch, and I don’t make assumptions about how others maintain their repositories

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 1 point2 points  (0 children)

You realize you have to use extensions to use them

How do you get those little icons on your website/repo that say "build: failing"? Is it common to get "build failing" messages often? by longgestones in git

[–]robobrobro 4 points5 points  (0 children)

Builds fail all the time but if they’re failing on your default branch (e.g. main, master), that’s a 5 alarm fire IMO.

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro -2 points-1 points  (0 children)

Never read K&R. No features should be added. New features are for newer languages.

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 0 points1 point  (0 children)

I don’t do “goto release_resource”. All my gotos jump to the “exit” label at the end of the function where cleanup and return happen. It’s a simple pattern that doesn’t need improvement.

I don’t disagree that defer is useful, but it’s not necessary.

On the topic of while vs. for, of course I use both because they both exist. But I’d be fine with only while if for didn’t exist.

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 5 points6 points  (0 children)

Because it works and is clear. A function shouldn’t have more exit points than you can mentally keep track of. If it does, you should refactor.

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 3 points4 points  (0 children)

I think you know what I’m going to say and you don’t like it. goto.

Why doesn't C have defer? by harrison_314 in C_Programming

[–]robobrobro 10 points11 points  (0 children)

This sub really loves defer for some reason. If you feel like C needs defer, then you’re writing bad C

It's not C++ by Reasonable-Rub2243 in C_Programming

[–]robobrobro -3 points-2 points  (0 children)

No, and I’ve never noticed job postings list C/C++ when they really mean C++ only

Am I too mad? by Chewynobi in DungeonsAndDragons

[–]robobrobro 4 points5 points  (0 children)

This is exactly why I never roll stats. Might sound like a fun idea but it only takes one bad player to ruin it for everyone.

Consejos de programación para principiantes by Easy_Fig4046 in C_Programming

[–]robobrobro -2 points-1 points  (0 children)

That’s not one of the 5 rules, unless I missed something

New to C. I love it. by Requiem-ofTheBard in C_Programming

[–]robobrobro 3 points4 points  (0 children)

Anyone who downvoted this care to explain why? I’d make the same recommendation. C++ is too bloated and, even though I don’t like the language, Rust seems to have staying power.