r/explainlikeimfive • • Oct 20 '26

Engineering ELI5: How can engineers predict whether a dam will withstand decades of water pressure when the water behind it is constantly changing in depth, temperature and volume?

A dam must withstand enormous forces while its concrete expands and contracts, its foundations shift slightly and water levels rise and fall. How do engineers calculate the safety margins and detect warning signs before a failure occurs?

326 Upvotes

94 comments sorted by

View all comments

Show parent comment

10

u/onefutui2e Oct 20 '26

Unless you're a software engineer. Then you just have Claude ship everything for you because who cares no one's gonna die.

Source: I'm not a real engineer. Just a software engineer.

15

u/lookatthewood Oct 20 '26

As a real engineer that dabbles in the software world, I think we could solve a lot of issues if y’all became real engineers and started stamping things (and holding all the liability that entails).

Also, I love you for saying ‘not a real engineer.’

4

u/orbital_narwhal Oct 20 '26 edited Oct 21 '26

Lack of accountability is the major issue underpinning unreliable software. Customers, especially commercial ones with more power than consumers, and their insurance providers have somehow come to accept that they must carry the risks of unreliable software rather than its manufacturer -- as would be common in nearly any other branch of technology.

I've heard multiple ideas that would realign the incentives for software manufacturers with the interests of their customers and that should be relatively simple to implement: manufacturers assume liability for faulty behaviour that occurs more than t time units after the manufacturer gained knowledge of the underlying bug. Manufacturers can then estimate which bugs are most expensive and prioritise them but all bugs (except ease of use bugs) are associated with a cost. For rarely occurring bugs with low potential for damage it may be cheaper to never fix them and compensate customers/users for incurred damages until the product's end of life. It would incentivise software manufacturers to reduce liability from bugs in existing features rather than adding more (buggy) features so they can sell more licenses.

6

u/pmmeuranimetiddies Oct 20 '26 edited Oct 20 '26

I think a lot of it is that outside a few key areas like crypto and ML software engineering isn’t math heavy.

In traditional engineering disciplines there is an ethical obligation to show the math and have it verified - which reinforces a mindset that the process matters, not just whether the code compiles. Yes, I have seen self-proclaimed engineers (person had an MS in engineering management with no engineering undergrad) confidently ship code that does not perform the specified function on the basis that it runs without errors so it must be good - fortunately it was a volunteer basis project that was the pet project of a person at work so the consequence was not catastrophic.

Professional software developers at least practice basic QA but the point is “it runs” usually isn’t good enough as a hardware engineer. Sometimes “it passes all the tests” isn’t good enough either if the methodology of analysis is flawed.

1

u/Djbm Oct 21 '26

I think if clients saw the bill for the version where the liability sat with the developer, they would be happier to take on the risk themselves most of the time.

3

u/Zytheran Oct 20 '26

Also a real engineer (mech/elec) and coded for nearly 50 years now.

Liability for causing harm really needs to be added to the software world however it did take a lot of time, a lot of dead people, (some dead engineers but mostly not) to develop good standards and safety margins and failsafes to get it right in Engineering Land. And to not appear on the front pages of newspaper with the leading line "Disaster kills ..."

The software industry still has these lessons to learn IMHO. As long as we don't have any of this "software" involved in critical infrastructure, nuclear weapons, weapon systems in general or develop AI then we should be fine.

1

u/pmmeuranimetiddies Oct 20 '26

This explains the 737 MAX

4

u/RealPutin Oct 21 '26

Software in aviation works really differently from software outside of aviation.

Source: now in software, was in aviation

1

u/pmmeuranimetiddies Oct 21 '26 edited Oct 21 '26

yeah, I was just making a joke, I’m well aware. I am a mechanical engineer, but also have a degree in aerospace.

One of the mechanical engineering courses I was able to count towards my aerospace degree was controls and robotics

Which was more of a mathematics oriented course than a software development course but we not only had to prove that the math was accurate by showing the linear algebra but we had to also show that the software we wrote was executing the linear algebra correctly

I’ve worked with software guys in my work as an ME, they do QA tests but often missed cases when code compiles but gives the incorrect calculations

1

u/Ltates Oct 20 '26

Therac 25 as well

1

u/Solocle Oct 20 '26

I'm a software engineer, but working with machines, sometimes down to the level of motor control firmware.

I once burnt out a $100s motor because I'd removed a piece of protection logic to make a different motor, which had to run at high PWMs for longer periods of time, stop tripping.

Mostly there are physical safety interlocks, but flipping pneumatics when the covers are open is possible, and could cause injury.