6 ms·
The main problem is that "software engineering" is a code name for "software management". If you major in "mechanical engineering", you will take courses in ca
by kragen 11y ago
The main problem is that "software engineering" is a code name for "software management".
If you major in "mechanical engineering", you will take courses in calculus, linear algebra, probability, computer programming, physics (thermodynamics, mechanics, electrodynamics, strength of materials, maybe aerodynamics and viscous flow), control theory (what used to be called "cybernetics"), manufacturing techniques, CAD, and maybe a management course or two.
The corresponding curriculum for software involves things like programming languages, algorithms, data structures, networking, operating systems, software architecture, and formal methods, and it is called "computer science". What is currently called "software engineering" is the software equivalent of "art appreciation". It's a desperate attempt by the cult of managerialism that dominated that 20th century to figure out how to run software projects without understanding software itself; it's an attempt to substitute credentials and command structures for intellectual mastery of the problems to be solved and understanding of the techniques for solving them.
The consequences, generally, are what you'd expect from a book publisher run by illiterates or a record label run by Deaf people. Experian and CGI Federal wasted hundreds of dollars building a "healthcare.gov" site that didn't work; SAIC wasted hundreds of millions of dollars on building a Virtual Case File system that was ultimately scrapped. These are the companies that represent the approach known as "software engineering", that get CMM certifications from the SEI.
By contrast, the companies that make software you actually use — companies like Canonical, Google, Facebook, and Apple — put a great deal of emphasis on programming, motherfucker, and very little on things like SDLC, requirements engineering, and "formal" specifications.
This is not to say that the issues that "software engineering" attempts to tackle — like testing, requirements analysis, and software architecture — are unimportant. They are very important. But the field that identifies itself as "software engineering" is in fact failing to tackle those issues. It is not where the insights are coming from. They're coming from programmers and computer scientists.
- seiji 11y agoAll good points. "software engineering" is how we take raw code and turn it into reliable systems. The worst code you'll ever see written is by computer science PhDs who just have to get something done for their research paper experiments. It'll be 6,000 lines of matlab with no loops, no functions, and entire 30 line sections just get copy/pasted when they need to repeat an action. That's code without software engineering. That's "coding" and not "developing." In a way, software engineering is a moving goalpost in the same way as "if a computer can do it now, it's not AI." Many of our standard practices these days used to be "must be considered separately" software engineering practices 10 years ago (revision control, proper documentation, creating libraries, etc). Open Source projects run by communities with a focus towards testing, documentation, and maintainability are the best thing to happen to software engineering. But, there are still crazy people running around writing code just for themselves and refusing to realize software is more than code code code these days. We pretty much need two divisions here: "software engineering (social)" and "software engineering (technical)". Social software engineering is defined by well maintained, long-lived, multi-contributor software projects. Technical software engineering is the implementation of the testing systems and contribution systems behind those long lived sustainable projects (e.g. are you calculating the branch coverage of your unit tests? do you even have unit tests? (no, testing your live servers aren't "unit" tests, those are integration tests) are you testing all combinations of acceptable and invalid inputs (null, proper value, invalid value, out of range value positive, out of range value negative, ...)? are your systems even testable and not bound to side-effect laden global states? do you have proper mock objects to compensate for your side-effect driven development? do you allow outside contributions so you don't have to maintain all 60 of these detailed testing and failure scenarios yourself?). (there's also the entire other branch of "how to be a better software writer through requirements gathering and agile/lean/XP/monkeypants practices," but that's out of scope here.)
- nickpsecurity 11y ago"All good points. "software engineering" is how we take raw code and turn it into reliable systems." No, that's software development. It comes in many forms. Your academic example is a good one of a failed approach. Software engineering is applying engineering practices to software to produce The Right Thing. Examples of it are Cleanroom, Praxis' Correct-by-Construction, Green Hill's PHASE, and so on. These connect requirements to clear specs (semi-formal or mathematical) to code. The systems are usually abstracted, modular, and layered in a way to allow testing of individual components and how they connect. Both successful and failure states are documented with fail-safe methodology. Design/code reviews, testing, static analysis, automated build processes, and so on are common here. The results are consistent, effective, and with low defects. Much like engineering. Then, there's software development and programming in general. They're selectively applying some of this stuff but no way looks like engineering. The results are likewise all over the place. "Open Source projects run by communities with a focus towards testing, documentation, and maintainability are the best thing to happen to software engineering." All of that was happening in software engineering back in the 1960's-1980's for companies that tried to do the real thing. Just formal, code reviews and testing got incredible reliability gains (see OpenVMS). High assurance systems did much more. An article, about both security & software engineering, described the very best of security in 1970's with specific practices and results they had. Most software development hasn't caught up to that level despite the fact that every aspect of it was exceeded in academia and professional communities focused on quality/security. What I do agree with is that OSS projects using such methods have gotten them mainstream adoption in many OSS and proprietary projects. The benefits were real. However, the stuff already existed for decades, was even mandated by some standards, and the mainstream is a pale imitation of all that. Improving, for sure, but it's actually them that still have much to learn. If only the will. "We pretty much need two divisions here: "software engineering (social)" and "software engineering (technical)". " This I'm less sure about as now we're on an open-ended topic. :) There's definitely social and technical factors. I'd say the technical side is designing, implementing, and verifying any aspect of it. You need to understand the tech to varying degrees to do each. At same time, there's a social component because everyone is working together and one can affect another. seL4 teams, development and formal methods, were an example where constant communication solved issues where one side's abstraction/implementation was causing severe issues on the other. So, it's all technical and social minus maybe project manager or owner(s) making the money off it. ;)
- deleted 11y ago[deleted]
- lfowles 11y agoFor a direct comparison between Mechanical Engineering and Software Engineering as defined by NCEES, here are the specifications for the Software Engineering PE exam: https://cdn.ncees.org/wp-content/uploads/2012/11/SWE-Apr-2013.pdf https://cdn.ncees.org/wp-content/uploads/2012/11/SWE-Apr-201... And specifications for (a version) of the Mechanical Engineering PE exam: https://cdn.ncees.org/wp-content/uploads/2012/11/PE-Mec-Systems-Oct-2008-1.pdf https://cdn.ncees.org/wp-content/uploads/2012/11/PE-Mec-Syst...
- kragen 11y agoThank you. That's an excellent example of exactly what I was saying: the mechanical engineering exam areas are things like "Bearings (e.g., journal, ball, roller, lubrication, life-load relationships)" and "Thermodynamic cycles", while the "software engineering" exam areas are things like "Software design representation (e.g., UML, E-R diagrams, SASD, data flow diagram)" and "Software testing strategies (e.g., black box methods, white box methods, error guessing, performance, test coverage metrics, validation, regression testing)". The first set consists of engineering techniques; the second set consists of management techniques. It sounds like you could get a perfect score on the "software engineering" exam without being able to write so much as a for loop, let alone design a web server component architecture or debug a priority-inversion problem in a real-time system. And yet you have people who propose that such exams should be required for writing safety-critical systems. This is intellectual fraud on the level of substituting homeopathy for medicine. It makes my blood boil, and it puts lives at risk.
- lfowles 11y agoIs it not possible there is also some disconnect between a MechE and the technicians? Yes....theoretically these materials work this way, but practically no one can manufacture this thing for you. It's definitely more apparent with SEng (especially because I'm familiar with the topics), but the real incentive of having licensure is the ability to revoke it and put liability on the licensed individual.
- kragen 11y ago
- hga 11y agoExperian and CGI Federal wasted hundreds of dollars building a "healthcare.gov" site that didn't work That was very much a management problem; from what I posted to HN back when it was happening (https://news.ycombinator.com/item?id=6586705 https://news.ycombinator.com/item?id=6586705): The government took way too long to get started "bending metal", it had the inexperienced/no experience on this scale HHS Centers for Medicare and Medicaid Services government bureaucrats be the integrator for this 50+? contractor effort, per the NYT "In the last 10 months alone, government documents show, officials modified hardware and software requirements for the exchange seven times." (https://news.ycombinator.com/item?id=6583327 https://news.ycombinator.com/item?id=6583327), those changes continued through the last week before the launch, and full testing obviously was delayed until that last week. Underlying their inexperience, evidently CMMS didn't see a need for bottleneck monitors, given that we've heard of them being put in place post-launch. And we learned they completely underprovisioned the database, and the specific one CMMS forced the contractors to use was unfamiliar to them, in paradigm (not a RDBMS), let alone the specific one. And refused to listen to the people waving red flags started no later than spring of this year, when one of these bureaucrats changed his goal/desire from a "First World" website to one that wasn't "Third World".... That this front end was a disaster turned out to be a major blessing: https://news.ycombinator.com/item?id=6701748 https://news.ycombinator.com/item?id=6701748 (more details as well). As you say: It's a desperate attempt by the cult of managerialism that dominated that 20th century to figure out how to run software projects without understanding software itself The key to me being "without understanding software itself". I've personally observed that many of the worst managers I worked under were failed software developers....
- kragen 11y agoThanks for the details! I tried to find some while writing my comment, but what you wrote is much better. I didn't mean to claim that management wasn't important. I meant to claim that the proper way to manage software projects is not by "software engineering", but rather by giving the reins to somebody who knows what the fuck they are doing. "Software engineering" is a smokescreen to provide fake credentials to charlatans so they can get put in charge of projects like this.
- fredgrott 11y agoor what you might expect if you let a recruiter try to systematically determine good programmers to recruit
- vdnkh 11y ago>If you major in "mechanical engineering", you will take courses in calculus, linear algebra, probability, computer programming, physics (thermodynamics, mechanics, electrodynamics, strength of materials, maybe aerodynamics and viscous flow), control theory (what used to be called "cybernetics"), manufacturing techniques, CAD, and maybe a management course or two. Any ABET-Accredited program will have you taking the majority of those classes as a Software Engineer. I went for ECE with a focus in Software and this was certainly the case for me. The problem is that "Software Engineer" isn't a protected term, so anyone whose ever compiled a hello world can title themselves with it. With Software becoming a serious infrastructure to daily life, it's time to add rigor and standards to the people calling themselves such, just like a Civil would. Of course, this wouldn't apply to most software jobs. But if you're in charge of making, say, emissions control software, you should be properly vetted and held accountable.
- kragen 11y agoFirst, I agree with you that programmers need more rigorous training, especially the ones who are in charge of safety-critical software. But probably instead of calculus, linear algebra, strength of materials, and thermodynamics, you need information theory, automata theory, combinatorics, and formal methods. But the "software engineering research" the article is talking about is not concerned with things of actual intellectual content like that; rather, it's concerned with management questions like bug triage and "adoption of particular practices". Second, I don't agree with your prescription for emissions control software. The problem is not that too many people are able to write emissions control software; the problem is that too few people are able to write or read it, which makes it impossible to hold the authors accountable. If every car engine control unit shipped came with the fully-commented, compilable source code on a CD-ROM, and it was commonplace for people to patch it to reduce emissions or deal with unusual circumstances, Volkswagen would never have had a chance at sneaking its cheat in.
- thesz 11y agoNot "in stead" but "in addition". Through all my career I have faced various issues related to calculus, linear algebra (heck, Jacobian elimiation has its use in SAT solvers! nevermind the computer vision), strength of material (one of my bosses asked me how I'd develop more or less destructive game world) and thermodynamics (because you need that for computer hardware and hardware in general). I believe that I find those problems once in one or two years. Through all my career.
- nickpsecurity 11y agoI think you're mainly looking at the failures that happened for mostly political or management reasons rather than where real attempts were made. Software engineering research gave us great stuff whose quality was largely unmatched by "programming, motherfucker" types who just threw shit together and hacked on top of it. Programmers making high quality stuff are rare. So much OpenBSD crowd differentiates based on how they apply a few proven methods to boost their quality. So, let's look at some that succeeded to see if software engineering had any value. First was probably Dijkstra's THE operating system in 1968. Careful use of abstraction, interface checks, systematic testing of individual components, and careful composition led to a system that performed nearly flawlessly. All high assurance systems used a similar model in safety- and security-oriented systems with near flawless results despite much analysis, pentesting, field use, etc. Still same concepts used to this day same results. QED already. However, high assurance is just too limiting, slow-moving, and heavyweight in skill set. Best to focus it on premium components (eg TCB, key protocols). So, let's keep going to see what software engineering might have given average programmers. By early 70's, Fagan at IBM implemented Inspection Process that formalized software review to try to counter all these bugs they caught. That it was systematic, regular, measured, and adaptive meant it caught tons of errors in the studies. Code reviews have only become popular among "programming, motherfucker" types in the recent decade with companies still trying to lure more in with HN articles despite it being empirically proven back in the 70's. Software engineering R&D also developed tons of tools to help but most programmers don't use them outside maybe testing or build systems. Note: Around this time period, Wirth's languages and work built on them provide strong type safety, memory safety, interface checks, and one was immune to concurrency errors w/ language + architecture choices. Only a small niche adopted them and programmers were mostly not using them. All the buffer overflows, race conditions, etc followed logically. By the 80's, Harlin Mills tried to stick it to hardware people by inventing the first, true engineering practice for software: Cleanroom methodology. Combined a formal notation, structured programming, decomposition, safe subset of language, by-eye verification conditions, usage-based testing, and statistical certification of quality. IBM tested it to find their defect rate was at shockingly low levels on first run with it improving from that point on. CASE tools were developed to semi-automate it. Small businesses differentiating on quality issued warranties (WTF!?) for their software at specific defect rates. Got mentioned on Dr Dobbs with a chance to reach programmers but "professional programmers" don't engineer software regardless of evidence. Cleanroom faded, typical programming continued, and basic defects are all over the place in software which is barely comprehensible. From the 80's to now, research continued on building tools to automate as much as possible. Some prevented issues, some detected them during development, some caught them at runtime, some just recovered. In some situations, the whole problem could be solved via a synthesis and with reliable results. Programmers totally ignored this line of software engineering research. Unfamiliarity with languages like Wirth's, Ada, ML's, and Eiffel meant that would happen to a degree. However, programmers continued to ignore results even when applied to C, Java, etc that they used. A niche market of companies recognized the value and started applying such tools. CPU vendors, in EDA market, poured tons of money into it due to the cost of defects and got a series of incredible results going to this day. It's why hardware has a tiny defect rate despite tens of millions to ten billion logic functions running concurrenty. Now, in recent events, some lessons of software engineering research and innovations have ended up in some mainstream stuff. Go, Rust, Scala, and Clojure come to mind immediately. The articles on them are pushing the stuff software engineers, especially in academia, had been pushing all along. Imagine how much better our code & tools would be had programmers listened to software engineers idk maybe 40 years ago. Meanwhile, there's still companies and R&D leading the way. Altran/Praxis's Correct by Construction process has been in the lead with mathematical specs of behavior, proper error handling, SPARK implementations proven free of common bugs, and field results showing among lowest defect rate in existence. Galois is applying software engineering to low-level stuff combining Haskell, DSL's like Ivory, and C with good results. The Design-by-Contract crowd has been catching errors others missed. DO-178B scene is applying every tech and trick they can to reduce defect count. Embedded scene, like Esterel's SCADE, is generating whole apps from specs that work the first time. One academic combined Cleanroom and Python to get an amazing productivity-to-defect ratio. And so on and so forth with every independent evaluation and case study showing these methods deliver results "programming, motherfucker" types still believe don't exist. And predictably. And repeatedly. And even mathematically if you want. Kind of like engineering. So, software engineering exists. The term got abused by the wrong types of people pushing the wrong stuff. The good stuff got ignored by them and most programmers. However, there's a string of tools, papers, companies, and so on applying that stuff. Their results are better than programmers almost every time sometimes with less work. Programmers are even adopting some of their stuff after decades of mocking or ignoring it. Those programmers own stuff is getting better. So, software engineering is a thing, it's contributions to our capabilities are enormous, and we'd all benefit if programmers used more of it. My slogan: "Engineering, motherfuckers, do you speak it!?" "No? We'll, that explains the results..."