Stories
Slash Boxes
Comments

SoylentNews is people

posted by cmn32480 on Saturday November 07 2015, @11:02AM   Printer-friendly
from the but-it-makes-me-look-cool dept.

The Atlantic is running an article on the friction between the computing world and Professional Engineer societies. This discussion has been going on for a long time, and is meaningful to me personally - I quit a 10-year career as server administrator with 'engineer' in my job title when I graduated with a Mechanical Engineering degree, and have since earned my Professional Engineer license. In a world where most software comes with a disclaimer of liability due to defects, where would an ethical, civic-minded programmer even practice Professional Engineering? Angry Birds probably doesn't have any responsibility to the public safety, so there's little need there; on the other hand, Google's self-driving car program is a good candidate.

I'd love to welcome the programming profession into the circle of licensed Engineers, provided that the industry manages to agree on standards of quality and accountability. I don't see the methods (such as Agile) used by programmers as a significant obstacle, either; the programming motto of "move fast and break things" (which the article wrongly decries) is echoed in the motto "fail early, fail often" that is held by many Mech Eng R&D shops. I just fear that the halting problem will be solved before any such standards become widely accepted and implemented in the industry.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Sunday November 08 2015, @04:13PM

    by Anonymous Coward on Sunday November 08 2015, @04:13PM (#260379)

    Anyone who has to compile a program and run unit tests to see if it works isn't a software engineer. It would be like building a bridge, having someone drive over, and seeing if it crashes. No person who did that should call himself an engineer. The "hope and pray" method isn't good enough.

    How is the process of writing your code, hitting compile and then running unit tests any different from the process of designing your bridge in your engineering software and running a simulation to see if the bridge will hold up under various stresses? In both situations, we try to prevent problems before they crop up when it is too late.

    The main difference is that a bridge has very few moving parts, and all parts obey just a few well defined laws of physics, so the stresses and behavior of a bridge (or other physical constructions e.g. cars, planes, power plants) can be estimated rather accurately with numerical simulation as long as you have enough computing power. (either by hand or ironically by using convenient computer software packages)

    Software is different. It needs to obey all sorts of rules defined by humans, and humans are fallible. These rules may not make sense for historic reasons and may not even be internally consistent. And the guys who design/write the software are just supposed to somehow anticipate all these edge cases and handle them properly. Reasoning about all the possible states and execution flows becomes extremely difficult because the complexity rises exponentially with every feature added.

    In software we try to make our compilers smart enough to yell at us when our code does not make sense. Unfortunately compile-time checks cannot find run-time problems, so we also try to use other means of ensuring that our software works as expected. Unit tests and other tests are just one example of that. Assertions, Exceptions and logging are other ways to prevent errors or to handle them gracefully when they happen, to revert back to a proper state or at least prevent damage. Functional languages and domain specific languages are another attempt to formalize the development of correct software, but these are still rather experimental and academic, and can prove difficult to use for general purpose tasks. Proving the correctness of systems with software and hardware is theoretically plausible but practically impossible for all but the most trivial problems.

    Civil engineers made mistakes in the past resulting in bridges or buildings collapsing. I reckon they still make mistakes, but the effects are usually not disastrous, because that sector has reached a certain maturity.

    If people want to hold software engineers to the same standard as civil engineering, expecting all software systems to be correct, not just the most critical ones, then be prepared to pay the huge costs that implies. No sane individual or organization will ever pay that cost unless they are absolutely sure that they need to (e.g. medical, avionics, critical infrastructure etc.) and even then, such a formal approach severely limits the feature-set of such systems.