News for hackers. Stuff that matters.
Re:What is negative engineering? by Oxidation on Monday December 12, 2022 @05:44AM (#33953232)
See, treating this as an add-on is why software has a reputation as "not real engineering".

Engineering is all about turning science into products. Anyone with a chemical lab and enough post-grad grunt can make a compound. That's just the start. Getting it to customers, at scale, with a saleable price and not selling poison, contamination, or thin air and not turning your plant into a crater or superfund site is the task. It just happens to involve a bit of chemistry along the way.

You can't just complain from the smoking ruins of your startup "but the happy path we tweeted about when we did it in a flask worked fine, how could we know it would be hard to make 50 tons of FOOF a day?"

It's not always glamorous, it's not always fun, it's not even always innovative, it's almost certainly never easy, but it is what you're actually selling, and it's why you're the one selling it and not someone else.

Now, can you cut corners and make it work, say, 99% of the time and that's good enough to ship it and sit back[1]? Sure you can. But if someone comes along at 99.9% and the same price, or even a higher price and your customers will pay for that extra 9, you're in trouble.

[1]: or ship 99% code thinking it's 100% because you didn't check

Re:What is negative engineering? by stdbrouw on Monday December 12, 2022 @08:08AM (#33954256)
I don't understand this kind of inferiority complex. In software engineering we can often afford to wing it in a way that other kinds of engineering can't because they are strongly locked into what they've built already and because human life is at play. You can't really redo the foundation of a pre-existing building without a truly heroic amount of work, and you can't reboot a person if their pacemaker fails. When presented with those same conditions, software engineering tends to be just as rigorous as any other kind of engineering, e.g. NASA, medical software, and so on. I'd argue that is what defines engineering: you optimize for the things that matter and don't get carried away trying to pursue the most elegant or robust system at all costs – that would be science or art. Your competitor who is not cutting corners won't beat you with their 99.9% product, they will just never get off the ground. Meanwhile, you're at 99.5% and climbing.
Re:What is negative engineering? by jrockway on Monday December 12, 2022 @04:05PM (#33960269)
After reading https://www.hillelwayne.com/post/are-we-really-engineers/ I am convinced that Software Engineering is the same as any other engineering field. Sure, it looks like like and death is at play in the other fields and all we do is debate what color fonts should be on a web page, but their projects seem a lot like that too. In every engineering field, projects usually go well enough to get another project, which is the best you can really hope for in the real world.

Our whole "I can't do work today, I have to apply these security fixes 83 levels deep" also sounds a lot like: https://practical.engineering/blog/2022/8/2/you-spend-more-o...

All in all, yeah, I don't understand the inferiority complex. Engineering always looks amazing to people that aren't in the thick of it, but we hide a lot of the flaws, and fix the other ones through iteration.

Re:What is negative engineering? by toss1 on Monday December 12, 2022 @11:07AM (#33956225)
>> In software engineering we can often afford to wing it in a way that other kinds of engineering can't ...

Just because you can doesn't mean that you should. Of course, with software that is truly noncritical, handling failure modes can be optimized away in favor of shipping-the-new-version sooner. That doesn't mean that it is a good thing.

The fact that this is so prevalent in the software industry is why the general public sees most software and indeed technology ("software is eating the world...") as a plague — time and time again, NO effort is made to ensure that things fail-safe, or even that they fail-gracefully.

So the user experience is that tech is good enough that we sort of have to use it (it's better than paper), but so bad that it is endlessly frustrating, whether it's endless glitches in client or web apps, data that gets mysteriously lost or corrupted, Bluetooth still screwing up connections, UI 'designs' that hide key functions behind a 'clean' interface that is nonetheless inscrutable for the occasional user... the entire industry has created a world no one wants to live in, one little decision at a time.

(And that doesn't even begin to account for software that kills people by bad decisions or oversights.)

The fact that an article such as this one is even necessary — that it is NOT simply assumed that an absolutely key part of the design process of every piece of software is to consider all failure modes and how to handle them in a way that is safe and graceful — casts a real shadow over the software industry, and shows why it is still separate from real engineering (despite software often being more complex).

Re:What is negative engineering? by cratermoon on Monday December 12, 2022 @10:08AM (#33955397)
> In software engineering we can often afford to wing it in a way that other kinds of engineering can't

Ariane flight V88 haunts your nightmares.

Re:What is negative engineering? by Swizec on Monday December 12, 2022 @11:00AM (#33956123)
Galloping Gertie haunts civil engineer’s nightmares.

Hyatt Regency walkways too.

Apollo 1.

Plenty of examples, actually. All engineering fields have their share of catastrophic failures. For better or worse, that’s how we learn.

Re:What is negative engineering? by MrJohz on Monday December 12, 2022 @03:25PM (#33959756)
Different problems also have different scales. The road that they've repaved outside my house has had far less scrutiny than the new bridge they've built down the road. And NASA have very different coding guidelines to Shopify.
Re:What is negative engineering? by runnerup on Monday December 12, 2022 @06:21AM (#33953472)
> Anyone with a chemical lab...not turning your plant into a crater or superfund site...how could we know it would be hard to make 50 tons of FOOF a day?

For additional context to the mental imagery, I thought it would be appropriate to link FOOF: https://en.wikipedia.org/wiki/Dioxygen_difluoride

Re:What is negative engineering? by wantoncl on Monday December 12, 2022 @06:53AM (#33953702)
Re:What is negative engineering? by cratermoon on Monday December 12, 2022 @09:53AM (#33955223)
"Satan's Kimchi" is the name of my new KPop/Black Metal crossover band
Re:What is negative engineering? by rapsey on Monday December 12, 2022 @08:10AM (#33954273)
> See, treating this as an add-on is why software has a reputation as "not real engineering".

Software is way more of a craft than engineering.

Re:What is negative engineering? by hardware2win on Monday December 12, 2022 @08:30AM (#33954427)
>The creative application of scientific principles to design or develop structures, machines, apparatus, or manufacturing processes, or works utilizing them singly or in combination; or to construct or operate the same with full cognizance of their design; or to forecast their behavior under specific operating conditions; all as respects an intended function, economics of operation and safety to life and property

Fits software eng. just fine

Re:What is negative engineering? by rapsey on Monday December 12, 2022 @08:41AM (#33954509)
> The creative application of scientific principles to design or develop

Not even close. But we sure love to claim the principles were scientific. A programmer becomes good at his craft with time and experience. Not by studying in school and learning the principles there. A classic difference between a craft and engineering.

How many large construction projects fail due to incorrect engineering compared to large software projects?

> or to construct or operate the same with full cognizance of their design; or to forecast their behavior under specific operating conditions;

Almost never.

Re:What is negative engineering? by elvis10ten on Monday December 12, 2022 @09:43AM (#33955103)
> Almost never

Isn’t this the key point? That *most* “software engineering” is not engineering. I can build a bridge and not be an engineer; similarly I can build software and not be an engineer. The properties of the bridge/software is what makes the difference isn’t it?

> How many large construction projects fail due to incorrect engineering compared to large software projects?

Yes, poor engineering is rampant. But I will argue that malleability also plays a large role in the delta. In traditional engineering you build a car (and you are “done”). In software you build a car and get asked to make it an aeroplane without going back to the drawing board.

Re:What is negative engineering? by rapsey on Monday December 12, 2022 @09:58AM (#33955290)
Not comparable at all. You can pay to have a bridge constructed and the project will be defined by an architect, built and inspected following a rigorous and standardized set of steps.

You can also pay to have software built. The specs will not be even remotely as precisely defined and the building of the product will not even remotely follow a standardized set of steps. It will come down to a team and individual programmers implementing features as they see fit.

Software that was running space shuttles was famously engineered. The costs in terms of time and money was astronomical.

> Yes, poor engineering is rampant. But I will argue that malleability also plays a large role in the delta. In traditional engineering you build a car (and you are “done”). In software you build a car and get asked to make it an aeroplane without going back to the drawing board.

Which is why it is not engineering. It is a craft much closer to writing a novel than it is to engineering as it looks in other disciplines.

Re:What is negative engineering? by jcranmer on Monday December 12, 2022 @10:57AM (#33956073)
Construction is frequently slapdash. A friend's wife, who works as an engineer, commented that it often seemed like the construction workers were trying to screw everything up on purpose. As-built is frequently different from the original plans, and that's before you take into account all of the change requests that happen in construction, such as the change that caused the Kansas City Hyatt disaster (oops, a single change request doubled the load on a critical beam, causing it to exceed its design strength and fail in the middle of a major party and killing a hundred people).
Re:What is negative engineering? by rapsey on Monday December 12, 2022 @11:40AM (#33956785)
Construction has a standardized set of steps, which when followed will reliably produce a desired outcome. Programming has no such thing because it it can not, it is a fundamentally different discipline that is unlike any other that we call engineering. Negligence is not relevant.
Re:What is negative engineering? by drpyser22 on Monday December 12, 2022 @12:44PM (#33957649)
Programming certainly can follow standardized design and implementation methodologies. I don't think there is anything fundamental about software engineering that prevents that. It doesn't usually happen because there's not enough agreement on all levels of what is the best methodology. Software engineering is young and still sees significant evolution. Principles of software design and engineering are largely agreed upon and applied, but not in a single, concrete and consistent standard because experts still disagree too much on the specifics of applying those principles, and on other controversial principles.

And of course there is often no regulations that would require and guarantee the application of such a standard, and no standardized QA by customers.

Re:What is negative engineering? by jcranmer on Monday December 12, 2022 @11:54AM (#33956975)
Can you give an example of what you think one of these "standardized set of steps" in construction is?

My suspicion is that, if you start trying to get specific, you can actually find standardized steps at the same level of abstraction in programming. But since construction superficially looks like "stamp out multiple copies of the same thing" whereas programming is superficially "everything is its own special sauce," people try comparing them at different levels of abstraction.

Re:What is negative engineering? by elvis10ten on Monday December 12, 2022 @01:05PM (#33957911)
> Which is why it is not engineering.

I think using that as a basis for this conclusion is wrong. Software changes a lot because it’s possible and “CHEAP” to do so compared to engineering in the meat world. This is a business pressure/decision. If companies can easily and cheaply modify bridges arbitrarily, I believe they will; and this wouldn’t have any bearing on whether it’s engineering.

> Software that was running space shuttles was famously engineered.

This is exactly my point: Most swans are white, doesn’t mean all swans are white.

Re:What is negative engineering? by hardware2win on Monday December 12, 2022 @09:55AM (#33955245)
>Not even close. But we sure love to claim the principles were scientific.

Software engineer applies computer science theory in real world where he she is constrained by real world factors

If computer science is not enough "scientific" the idk

>A programmer becomes good at his craft with time and experience. Not by studying in school and learning the principles there. A classic difference between a craft and engineering.

All of them are required to become good software engineer.

Solid theory, proficiency in hands and exp.

Re:What is negative engineering? by Dudeman112 on Monday December 12, 2022 @10:19AM (#33955530)
>Software engineer applies computer science theory in real world where he she is constrained by real world factors

A good 90% of people with that title are flying blind as if they lived the wild west

A good 90% of the rest almost never do that (regardless if because they don't know how, or the company won't let them)

The rest will make the news of they fail, so they put an amount of effort and time which reflect that

We skipped the "mechanic" equivalent in the software industry and call anyone that can pass fizzbuzz, and who does work like fizzbuzz, an engineer

Software engineers do a lot of tinkering, and almost no engineering. Which is fine by me, actual engineering is a PITA and tinkering is where the fun is at

Re:What is negative engineering? by hardware2win on Monday December 12, 2022 @10:57AM (#33956074)
>We skipped the "mechanic" equivalent in the software industry and call anyone that can pass fizzbuzz, and who does work like fizzbuzz, an engineer

If I have engineer in job_title and engineering degree in informatics, then I m an engineer by your "standards/definitions"?

Re:What is negative engineering? by Dudeman112 on Wednesday December 14, 2022 @09:27AM (#33983894)
Is a Mechanical Engineering BSc who ends up working as mechanic on a car shop an engineer?

Yes, although those fellas mostly don't pretend their jobs involve designing and validating mechanisms with any scientific and industry regulation / standard rigour

Since you didn't specify the job_title involves any actual engineering, I'm gonna assume it doesn't... just like most job_titles

I too have a piece of paper saying I'm a Computer Engineer BSc (didn't apply for any of the electronics/CE licenses back home because wages were shit and the license wouldn't have been worth anything overseas)

Half of SEs consider the idea of written requirements needless bullshit that just drag you down. Validating your designs with any sort of rigour just isn't there for the vast, vast majority of jobs. As such, calling it "engineering" is a joke

If the activities of your regular Software Engineer can be said to be engineering, so should be changing a tyre. There isn't nearly enough rigour in the process to warrant calling it "engineering"

Re:What is negative engineering? by l0b0 on Monday December 12, 2022 @04:11PM (#33960335)
Excellent analogy, and one of the reasons just putting a bunch of smart people together isn't good business model. A large fraction of them might be capable of building algorithmically outstanding software, but that skill set is completely orthogonal to building a product, testing it, integrating it with third party software and/or hardware, maintaining it, and ultimately migrating away from it to the next generation of software.
Re:What is negative engineering? by shanebellone on Monday December 12, 2022 @07:10AM (#33953835)
I found this example particularly engaging.

I would not be comfortable shipping code that has undefined behavior, outcome, or consequence. It takes a small amount of effort to build functions/methods with defined but encompassing outputs.

Although complexity probably scales parabolically in certain use cases.

Re:What is negative engineering? by m_mueller on Monday December 12, 2022 @08:22AM (#33954363)
> when we did it in a flask worked fine

kinda funny how Flask has a toy server that's probably behind a lot of startup MVPs....