4 ms·
You don't get to "programming, motherfucker" by "throwing shit together and hacking on top of it"; that's what happens when you don't know how to program, maybe
by kragen 11y ago
You don't get to "programming, motherfucker" by "throwing shit together and hacking on top of it"; that's what happens when you don't know how to program, maybe because you wasted your time studying UML and bug triage instead of learning how to design stuff.
You don't get high-assurance systems by improving your metrics collection and reducing the standard deviation of your effort estimates; you get them with, as you say, careful code review (by people who know how to program) as practiced by "programming, motherfucker" types like Gosper and Beck and Fowler for decades, effective abstraction, and code that is correct by construction and formal proof rather than merely by testing — which you also need.
Dijkstra spilled gallons of ink in the 1970s and 80s railing against the hucksters who appropriated the "software engineering" term, trying to redirect people's attention back towards writing software that could be logically proven correct. It's taken decades of effort to start to realize his vision (and Hoare's, et al.), but that research isn't happening in "software engineering"; it's happening in computer science.
Hardware has been able to take advantage of formal methods for much longer than software, because hardware has never been more than a thousandth as complex as software since at least the 1950s.
Cleanroom (btw, you misspelled "Harlan" as "Harlin"; the poor guy deserves better) is great as far as it goes, but it doesn't focus on proper abstraction design, and its testing methodology basically assumes you're programming a finite state machine. But if you're doing that, there are much better ways to verify it, including rigorous formal verification.
Formal verification comes from logicians and computer scientists, not the kind of "software engineers" who write System Definition Documents. Golang is from the Bell Labs tema that gave us Unix. Rust is an application of affine typing, a variant of Girard's linear typing. Clojure is an application of research into FP-persistent data structures, using the syntax of Lisp, the classic hacker's language.
These are not the kinds of things the original article is directing your attention to. It's not talking about affine type systems and Hindley-Milner type inference. It's talking about management research masquerading as research on how to engineer software.
And that's a fraud.
- nickpsecurity 11y ago"These are not the kinds of things the original article is directing your attention to. It's not talking about affine type systems and Hindley-Milner type inference. It's talking about management research masquerading as research on how to engineer software. And that's a fraud." I totally agree with you there. I think a lot of the dispute in my post and yours centers on the definition of software engineering. You're applying it as the approach strictly about process, paperwork, drowning in numbers, etc with nothing produced. I'm applying it to mean any software development activities that apply engineering principles to software with engineering-like results. Computer Science is where a lot of what I'm citing came from, although CompSci != engineering software in general case. So, I have to have another term and "software engineer" literally means a person that engineers software. Think I need a solution to this problem as it's recurring. I've clearly illustrated most programmers, even good ones, don't apply engineering fully and leverage what's proven. It's always a subset, if at all, often with informal approach driving the whole thing. There are groups doing the whole thing like engineering but they're rare & not paperwork pushers. If the phrase is irreparably tarnished, I might need to ditch "software engineer" for a phrase that describes the difference between how a group like Praxis does things and how a decent programming shop does it. The difference is how systematic it's designed, assured, and documented with every available, proven method put to use plus careful tradeoffs. Need a new terms I'm thinking because old one caused a huge chunk of your counter-points which apply to the crowd we both can't stand but not really the niche I'm promoting. "Hardware has been able to take advantage of formal methods for much longer than software, because hardware has never been more than a thousandth as complex as software since at least the 1950s." Partly and often developers are reason. Getting from hand-wired hardware to synthesis, formal methods, simulation, and testing took hundreds of millions in investment with many bright minds. The reason it worked was they noticed common patterns in their designs/implementations, started reusing them in new ones, built verification techniques for them, focused heavily on integration/reuse, and just went from there. Cleanroom was one of many methods that did something similar (but semi-formal) for software in structuring, verification, and integration. Formal verification teams did it again in so many isolated cases covering so many properties and types of software. The Cleanroom, FV, and model-based synthesis results show software development could get as much verification as hardware for sure. Just would take a sizeable labor investment in tooling and libraries plus agreement to simplify implementation and interfaces to facilitate analysis. Not saying that will mainstream but it's achievable and can be incremental. At least we're getting type systems and tooling, though, from the niche (esp CompSci) that cares about the stuff. "btw, you misspelled "Harlan" as "Harlin"; the poor guy deserves better" Damn haha. He really does. Yes, Harlan's methods could be improved. No argument here. An example was how the graph-based models were doing better than hierarchical. Another is executing your code to test assumptions on its dependencies. Point about Cleanroom was that it worked, its style/results were much like engineering, demonstrated many good practices, had empirical evidence backing it, and was a logical starting point that was entirely ignored by developers. And it wasn't the only one. Far as FSM's: you nailed that one. Almost all high assurance systems used an Interacting State Machine model where FSM primitives were analysed and composed functionally (often CSP style). It was the only proven model in terms of getting results that survived all analysis and pen testing. You can do rigorous formal verification but that's high assurance: something you and other readers reject automatically in these discussions. So, I left that off. Plenty of research & products working on different models but they're still getting proven out over time. Gotta use what's proven for now if I want get the best results. "Formal verification comes from logicians and computer scientists" All true and good examples: I listed some in another comment. Then they or the engineers I refer to put them into practice. Most developers don't. Still need a term for the former that won't tie into the other crowd you've been describing that stole and tarnished the phrase.
- nickpsecurity 11y agoEdit: looking at the reading list on the site I might stop mocking the "programming, motherfucker" crowd. There's a lot of good works on design, analysis, and engineering techniques referenced. So, the cool, catchy line is misleading and even they will depend on Things Other Than Programming. Hope the site gets more popular.
- kragen 11y agoOh, Zed is eminently mockable, especially due to his absurd supermacho asshole persona, but his stuff is a pretty good antidote to three different classes of toxicity around programming: 1. "Programming is easy; what's hard is working together with other people." No, they're both sometimes really easy and sometimes really hard. For a lot of objectives you might have, you have to learn to do the hard parts of both of them. The hard parts of programming include design, analysis, testing, debugging, and verification. You aren't going to learn how to write a compiler in 21 days. (Most programmers don't learn how to write a compiler in 2100 days, although that's probably more because they aren't trying because they're intimidated.) 2. "Software is in a crisis because we don't know how to program, and the solution is to manage software projects as if they were construction sites, using misguided metaphors about bridges invented by people who have no idea what happens when you actually try to build a bridge." No, in fact you have to understand both management and programming (motherfucker!) to manage a programming project effectively. When programming is being done effectively, you automate all the repetitive parts, which dramatically reduces costs and timeframe, but dramatically inflates the unpredictability. Instead of managing software projects like construction sites, we're going to be managing construction sites like software projects, using proven libraries, mathematical models, repeated simulations, iterative exploration of unknowns to reduce risks, and pervasive automation. This is all in Engelbart's papers from the 1960s. Doing things that way (applying software techniques to hardware) is how we became able to build hardware with billions of transistors in the first place. It might be 2020 or 2035 when most of the effort in building a house is done by people using computers to manipulate models of the house, and only the last step involves (fully automated) machines rolling onto the construction site to materialize your carefully debugged plans, but it's going to happen. (I don't know if being able to deploy a new iteration of your house every week in order to fix bugs and roll out new features is going to happen before or after that.) Now, it's true that we don't know how to program (although developments like seL4, coqasm, Excel, NaCl, and PHP seem to be making some progress on that front). But the "software crisis" isn't about that. Rather, it's about how Moore's Law has reduced the cost of computers so much that programming is suddenly the limiting reagent in nearly everything in the economy. You can get a 48MHz ARM processor with 64kB of program Flash for US$1.76 and burn ten thousand lines of C into it, then use it to run a string of Christmas lights. For US$6.46 you can get a 48MHz ARM processor with 1MB of program Flash and burn a hundred thousand lines of C into it. Or you can put a Lua interpreter into 20% of that memory and fill the other 80% with eighty thousand lines of Lua. The "crisis" is that it costs literally a million times more to write the code than it does to make the processor. (Prices from Digi-Key, unit price for quantity 1000.) The "crisis" started in 1968 when the price of hardware at last fell below the cost of writing the software to take advantage of it, and it's been "worsening" ever since. And that's the origin of "software engineering". 3. "Programming is super hard and you have to be a wizard to do it at all." No, anybody can learn how to program. We have Excel, JS, and PHP. If you have a computer and already know how to read, you can learn how to program a little bit in a few days, and usefully in a month. There are still going to be a lot of things that are beyond your capacity, but you'll be able to do some things. It might take you years of work to learn how to write like Dean R. Koontz, but you don't have to be a Dean R. Koontz to write a shopping list, a YouTube comment, or a love letter. Programming's the same way.
- lfowles 11y ago> maybe because you wasted your time studying UML Seems a bit misleading, UML is consistently the best way I've seen to communicate ideas to other devs (especially in an OO environment, but some diagrams could be useful from a functional viewpoint). The worst is spending an hour trying to work together with someone to figure out what they mean because they use their own invented notation or some pidgin-UML.
- kragen 11y agoI've definitely found UML class diagrams useful for that, and probably if I knew them better, they would be more useful. Other kinds of UML diagrams, like sequence diagrams, might be even more useful, especially if they had been designed better. But I feel like they belong on a whiteboard or a sheet of paper, where you can throw them away once you're done having the conversation; automatically-created UML class diagrams in my experience tend to be too unfocused to be useful (containing far too much information not relevant to what you're trying to talk about at the moment), and computer-maintained UML diagrams that aren't automatically created tend to get out of sync. (The exception is when you have a UML class diagram that demonstrates something like a protocol or a common pattern with a lifetime measured in decades rather than months or years.) But maybe this is just a reflection of the limits of my experience, and if I had worked with the programmers you've worked with, I'd be more sanguine about UML? I might be one of those guys you hate because of his pidgin-UML!
- lfowles 11y agoI definitely agree. We actually make heavy use of sequence diagrams where I work to show how our code works to non-coder stakeholders, where the syntax of a particular language is just a distraction. Like you said, UML is only useful as far as you don't have to maintain it and it's a curated subset (no.. Don't include my helper overloads, just give me the core essence of the class). When you do have to go out of your way to generate a diagram, they are best treated as postit notes for temporary communication or as high level snapshots of API flow or something relatively stable. As far as pidgin UML, as long as you keep to the basics you know and don't try to shoehorn something else in, that's fine. What grinds my gears is a poor reimplementation of something UML has already defined. I'd say most people only go so far as learning how to do class diagrams and don't realize the other diagrams are useful outside of upper management waterfall jackhattery. The best part of UML (I believe this is the view even from the creators but I may be wrong) is that you can take only bits and pieces and it's still damn useful.