News for hackers. Stuff that matters.
Re:Software engineering research is a train wreck by ftio on Tuesday July 20, 2021 @12:32PM (#27895924)
I worked on engineering productivity research and measurement at Google for two years until about a month ago. (Opinions my own.) Compared to my former colleagues, I'm an infant in this area, so take this with a heaping of salt.

In general, I think the author's cynicism about productivity research is justified, but I think it could have been directed more productively. (NB: the following comments say nothing about areas of software engineering research outside of productivity.)

Commercial software engineering is a creative endeavor; it is not a science, nor is it a manufacturing process. It does not have natural, universal laws. What makes a team 'productive' varies massively based on constraints imposed by business model, product, customer expectations, leadership values, and of course the individuals of which it consists.

I do not believe in the possibility of a "General Theory of Productivity." I'm highly skeptical of attempts to quantify the precise relationship between error discovery stage and cost in a way that is generalizable, although I think it might be possible given a large group of engineers using a highly homogenous process, tools, and accounting. Google is pretty close to this (common dev infrastructure across tens of thousands of engineers), and even across Google this kind of generalization would be extremely difficult.

There is no universal physics of software engineering. As a result, academic research into productivity can be difficult to generalize (which is why, I think, you often see researchers twisting themselves into knots). Instead, my rec is to focus on a few key metrics that are aligned with your business' or team's goals (search for DORA for a good starting set) and to reflect often on what you feel makes your team work well and what doesn't.

Re:Software engineering research is a train wreck by dalbasal on Tuesday July 20, 2021 @09:26PM (#27901262)
>> I do not believe in the possibility of a "General Theory of Productivity."

Important frame. I think any effort that doesn't start with this statement is probably headed for frustration.

I reckon this is true also for education, aspects of economics and many other fields. Besides sloppy and/or cynical work, I believe a lot of the "replication crisis" relates to this. Do we really expect that a relationship between watching TV at dinnertime and marital sex life observed in 1986 Tokyo to replicate in 2021 Berlin? If it doesn't, does it mean that it doesn't exist, or teach us anything?

Scientific academia is sort of premised on the idea that we start from a blank slate, and build up an understanding of a field based strictly in science. It doesn't matter that you already know gravity pulls thing to the ground or that water boils when hot. It must be stated scientifically, tested and theorized.

Well... realistically, from this perspective, we know almost nothing about managing people, teaching, lots of things. Yet, we do manage to do them somehow. People all over the world created domesticated cultivars before Gregor Mendel. Science isn't the only framework for knowing things.

Writers working on their process don't generally go to "empirical research." They read Stephen King, or one of many other authors that speak about their process. They find one that feels compelling. Often, they describe things in terms like "earning the respect of the muse." Usually, it's a poorly supported framework made of a smattering of methodology, random bits of advice, unique terminology and some innovative semantics. Sound familiar?

Re:Software engineering research is a train wreck by kreelman on Tuesday July 20, 2021 @10:23PM (#27901666)
I like what you've said here. I'm going to think more about it. Some quite important points. There are parts of dealing with people that can't be science based. I would find it hard to disagree with that. We do try to use science in this realm quite a lot though....

...I think this conversation around this item is a good example of how sometimes the surrounding conversation is more valuable than the original topic.

Re:Software engineering research is a train wreck by carlosf on Tuesday July 20, 2021 @11:01PM (#27901892)
Well written!
Re:Software engineering research is a train wreck by dalbasal on Wednesday July 21, 2021 @08:39AM (#27905467)
cheers.
Re:Software engineering research is a train wreck by jeddy3 on Tuesday July 20, 2021 @03:36PM (#27898221)
I seems like many posters in this thread try to classify software enineering as either creative or "mindless factory-work".

Where actual enineering disciplines has the risk of removing the creative part.

I think this classification is wrong. There IS NO mindless factory-work.

Just as in other enineering disciplines, our work is not manufacturing. It's just that the actual manufacturing does not exist (or rather is done by compiler)

Software enineering can (just like other enineering) be:

  - more scientific
  - more pragmatic
  - helped by formal methods
without removing the creativity.

Just as "other" enineering (like software):

  - is highly creative
  - can be artisanal (if wanted, rarely in all projects)
I REALLY feel we can mature in SWE without being afraid of losing creativity.
Re:Software engineering research is a train wreck by hwayne on Tuesday July 20, 2021 @03:48PM (#27898376)
Agreed; a while back I interviewed of ex-trad, now-software engineers and found out that

    1. Engineering is a lot more personal and creative than we think
    2. A large amount of software development is very similar to trad engineering
    3. Never walk over a bridge.
Re:Software engineering research is a train wreck by Swizec on Tuesday July 20, 2021 @09:20PM (#27901226)
> It's just that the actual manufacturing does not exist (or rather is done by compiler)

Here’s the kicker though: The part that is done by compilers used to be the bulk of software engineering.

In his Art and Science book Hamming talks about how programmers rejected the idea of even just automated address assignment. They took great pride in manually managing absolute addressing. Only a sissy who doesn’t know real programming would ever use something so silly as symbolic addressing, to say nothing of compiling from assembly. Ugh!

Now we don’t even think about that. Too boring, too solved, too uncreative.

There is a lot of engineering that we currently do, which is completely mechanical, mindless, and can be automated away.

Re:Software engineering research is a train wreck by 310ke on Wednesday July 21, 2021 @04:29AM (#27903791)
It seems to go something like this every time:

* We create new technology.

* There's an explosion of creativity and applications of the technology.

* This leads to an explosion in the personalities involved.

* Some of these gravitate towards the tedium and expound on it constantly.

* Some person or group automates that away and increases the ability to be creative.

* Repeat from the top.

It's always fun to watch the wheel go around though. Never any shortage of commentary on HN about it!

Re:Software engineering research is a train wreck by rhizome on Tuesday July 20, 2021 @09:26PM (#27901261)
At the very least, I imagine a true engineering version of software development would be fundamentally driven by Big-O. Everything justified and implemented in terms of calculable facts. Repeatability might emerge from this.

I think of it this way: what would a CRC manual[1] for software engineering comprise?

1. https://en.wikipedia.org/wiki/CRC_Handbook_of_Chemistry_and_...

Re:Software engineering research is a train wreck by goodpoint on Wednesday July 21, 2021 @08:41AM (#27905478)
The problem is that this is only "the very least".
Re:Software engineering research is a train wreck by madhadron on Tuesday July 20, 2021 @06:30PM (#27900153)
> It's just that the actual manufacturing does not exist (or rather is done by compiler)

In good conditions, yes, the drudgery is all done by the compiler. There's still a terrifying number of cases where something hasn't been automated and still qualifies as factory work.

Re:Software engineering research is a train wreck by markrages on Thursday July 22, 2021 @11:43AM (#27920176)
I notice you consistently spell it "enineering", without the first "g" that everybody else uses. Is there a reason for this?
Re:Software engineering research is a train wreck by Hermitian909 on Tuesday July 20, 2021 @07:39PM (#27900590)
The poor ontology backing the term software engineer has always seemed to me like the primary culprit for this problem. I've often heard people doing any of the following for their day job referred to as software engineers:

- people who write basic static sties

- people who write wordpress sites

- people who write simple CRUD apps

- people who write hardware drivers

- people who write compilers

- people who write databases

- people who write google-scale distributed systems

- people who write graphics engines

- people who write physics simulation systems

- people who write video games

The complexity, depth of abstractions, and expected maintenance lifetimes of these tasks vary wildly, but because we all write source code we're all counted as doing the same job! Sort of an obvious lunacy, different mistakes will punish each of these jobs differently than others.

Re:Software engineering research is a train wreck by ctvo on Tuesday July 20, 2021 @07:54PM (#27900707)
Do you think other engineers think this way? Your bridge is only 20 yards over a creek, you're not a civil engineer?

I'm sure the complexity, depth, and expected maintenance of some bridges vary too.

Re:Software engineering research is a train wreck by smnrchrds on Wednesday July 21, 2021 @12:41AM (#27902408)
In my field (mechanical), there are engineers, technicians, and drafters. Each of the above require more education than the next, and is paid better than the next. Someone who only does drafting work will not describe their job as engineering, nor are companies likely to ask engineers to do drafting because it doesn't make sense to pay someone an engineer's salary for that kind of work.

Basic static site seems like drafting. A CRUD app or WordPress site or similar between drafting and technician.

Re:Software engineering research is a train wreck by true_religion on Wednesday July 21, 2021 @01:01PM (#27908891)
In a way, software development is more like writing than it is engineering.

There is a continuum between people who author crud apps and people who author compilers, but you can go from one to the other simply by having industry experience and access to good books.

Re:Software engineering research is a train wreck by cutemonster on Thursday July 22, 2021 @05:04AM (#27916872)
Wordpress sites is more like painting and writing.

And physics engines and distributed databases and creating Wireguard is software engineering.

I think there are hundreds of times more people doing the former, than the later

Re:Software engineering research is a train wreck by Hermitian909 on Tuesday July 20, 2021 @11:17PM (#27901977)
Based on civil engineers I know I think it's more likely they'd simply consider the engineer making 20 yard bridges more junior, but doing similar work. As I understand it there aren't the same difference in kind that I'm describing here.
Re:Software engineering research is a train wreck by goodpoint on Wednesday July 21, 2021 @08:44AM (#27905502)
> Do you think other engineers think this way?

Yes, and that's correct. If your skills go as far as building a 1-meter tall wall around a patio you are not an engineer.

Re:Software engineering research is a train wreck by cardosof on Tuesday July 20, 2021 @09:36PM (#27901327)
This also applies to other fields - medicine for instance.
Re:Software engineering research is a train wreck by johncena33 on Tuesday July 20, 2021 @08:49PM (#27901041)
It's really good point. I usually use this analogy in the context of unit tests. Everyone understands that the review process for a nuclear power generation site shouldn't be same as foot-bridge over a stream on a trail. However, this basic common sense is missing in all these clean code, TDD, unit tests etc. conversation.

I've seen a startup where the front-end is a very simple web-site (just some basic forms, charts and tables). But the team follows all the clean-code, TDD, unit test and whatever latest buzzword you can think of. It takes one front end developer to sort a list alphabetically more than a day, which probably takes a decent developer less than 10 minutes to finish. IMO, the whole clean-code seminars/books industrial complex if responsbile for the amount of time, effort and money wasted following these clean code trends without any real business value.

Re:Software engineering research is a train wreck by Karrot_Kream on Tuesday July 20, 2021 @02:58PM (#27897729)
> do not believe in the possibility of a "General Theory of Productivity." I'm highly skeptical of attempts to quantify the precise relationship between error discovery stage and cost in a way that is generalizable, although I think it might be possible given a large group of engineers using a highly homogenous process, tools, and accounting. Google is pretty close to this (common dev infrastructure across tens of thousands of engineers), and even across Google this kind of generalization would be extremely difficult.

I don't think you are incorrect, but I think a lot of the aspirants behind ESE just want to have a better sense of what works and what doesn't; I'd even welcome negative results! The current state of things is to read 100 opinionated people and their blog posts. And given enough time, you'll encounter someone who swears that after drinking their morning coffee and jumping on one foot for 1 min, they enter a VRChat standup with their team and hit max flow. There's just so little knowledge right now about what works and what doesn't that I'd welcome more clarity, especially negative results.

> As a result, academic research into productivity can be difficult to generalize

I think defects are what we should measure for, not productivity because of the subjectivity of measuring productivity. But even measuring defects is complicated. The best way I see to measure defects is to ask a Team Under Test to document bugs that they encounter along with resolution times, but this is not only expensive, but something I doubt most corporations will be willing to share outside of their walls. Perhaps open source projects can try to store this data, like curl's stats [1].

[1]: https://github.com/curl/stats

Re:Software engineering research is a train wreck by musicale on Tuesday July 20, 2021 @03:23PM (#27898049)
> Commercial software engineering is a creative endeavor; it is not a science, nor is it a manufacturing process

Exactly. And it's less like movie production and more like 4,000 people trying to collaborate to produce a million-page novel.

It does bear some resemblance to design and engineering, but with custom materials and components that have never been used before and need to be created specifically for the project.

Re:Software engineering research is a train wreck by osigurdson on Tuesday July 20, 2021 @05:57PM (#27899905)
Generally, analogies to software engineering are not helpful.

Certainly, software engineering may be a little like problem domain A, B and C but probably less so than we think. After all, how acute is our knowledge of these problem domains to begin with?

Re:Software engineering research is a train wreck by madelyn on Tuesday July 20, 2021 @05:04PM (#27899312)
I mean, considering how much code, especially scripting and pipeline work, is required to produce most modern movies, these days most movies are programming projects in one way or another.
Re:Software engineering research is a train wreck by pas on Tuesday July 20, 2021 @04:13PM (#27898672)
Hm. Every action movie is different, but similar. Every apartment complex is different, but similar. Every webshop is different, but similar.

Yes, usually if you have a bad scene it rarely matters, if you have a lot of amazing ones too. And amazing actors, and editing, and ... Similarly, if you build a nice condo, if one face of it looks bad from the street, but the internal spacing of the units are great, then it's still a success. And if your checkout page is shit, but you have amazing search, good prices, great quality products, then your shop is generally great.

Of course this makes it sound like engineering, or a specific profession (like that of plumbing, HVAC, electrician tradespeople). It's always never an end in itself. It's complex like a bridge or a dam, sure, but without looking at the big picture (traffic, environment, costs, environment, etc..) it cannot be really evaluated. Even safety eval requires assumption (100 year floods, wind loads, min max temperature, max. traffic load, max ship height under the bridge, max electricity load).

And there are patterns, architectures, frameworks. (Like building codes.) There are audits (pentests, like the collision tests for new cars, or synthetic load testing for new sites).

The big difference is that usually movies are done in a few years. Scope change rarely affects bridges. After the basic outline of the dam is checked for basic structural sanity, it's done. After a condo master plan is approved the changes are minimal (because there have been many lives lost due to deviations from the plans).

Re:Software engineering research is a train wreck by phkahler on Tuesday July 20, 2021 @02:07PM (#27897112)
>> I'm highly skeptical of attempts to quantify the precise relationship between error discovery stage and cost in a way that is generalizable...

I would say universally that bugs found prior to shipping are lower cost (not just cost to fix) than those found after. I've heard from an auto industry friend that over-the-air update capabilities are becoming mandatory for more components. That sounds good because critical fixes can be issued without the cost of a recall (very expensive - if you're a tier 2 supplier you may be out of business). The down side is that the software teams are starting to think they don't actually need to be "done" by launch day, which leads to a bunch of harder to quantify costs.

Another example from a different industry: a bug that caused file import compatibility issues between two versions of the same software. Had that been caught before shipping it would have been no problem to fix. But instead the fix involved trapping an error and rereading the file with a different code path. Also, we didn't realize the change mattered so the file header info was not updated, so we couldn't tell in advance if a file was "old" or "new" when reading it. Once files of both "versions" were in the wild with our customers the simplest (most correct) fix was not possible without braking compatibility.

Re:Software engineering research is a train wreck by mikepurvis on Tuesday July 20, 2021 @04:14PM (#27898696)
> The down side is that the software teams are starting to think they don't actually need to be "done" by launch day, which leads to a bunch of harder to quantify costs.

See: the disastrous technical state of many modern video games at launch, seemingly especially those extra chunky "live service" titles that are meant to be around for years instead of just a few months like a normal AAA single player game. Examples:

- https://kotaku.com/how-biowares-anthem-went-wrong-1833731964

- https://www.forbes.com/sites/insertcoin/2018/11/27/bethesdas...

- https://www.ign.com/articles/marvels-avengers-keeps-fixing-t...

No one would have dreamed of shipping a title on the Gamecube or Playstation 2 that had these kinds of problems— whatever it was you put on that day-one disc was going to be the game forever.

Re:Software engineering research is a train wreck by WalterBright on Tuesday July 20, 2021 @02:37PM (#27897475)
> over-the-air update capabilities are becoming mandatory

Looking forward to the mass injection of malware into cars exploiting the usual bugs. How about ransomware to get your car started? Lots of fun!

> the cost of a recall

Mail me a USB stick with the update.

Re:Software engineering research is a train wreck by concernedtroll on Tuesday July 20, 2021 @02:58PM (#27897736)
But think of how easy OTA updates will make apprehending criminals!

For instance, if a government needs to institute a lockdown to prevent spread of a novel virus, they can just disable all affected citizens' ability to drive anywhere inessential, and the original software doesn't have to support it

Re:Software engineering research is a train wreck by tdeck on Wednesday July 21, 2021 @02:27AM (#27902956)
> I would say universally that bugs found prior to shipping are lower cost (not just cost to fix) than those found after.

There's a survivorship bias in this comparison, though. All software contains bugs - some are found in the architectural, coding, testing, review, and end-user stages. Bugs found after shipping are more likely to be significant to an actual user, because it's likely they were noticed in the course of someone using the software a particular way.

However, it's entirely possible that there are bugs that never need to be fixed. Perhaps these bugs involve scenarios that never crop up, or are part of a product direction that gets abandoned completely. (Example: Quibi probably didn't need to handle credit card expiry gracefully, that would have been wasted effort).

Those bugs that made it into prod and got prioritized for a fix, and were memorable are likely to be higher effort just by the nature of those filters.

Re:Software engineering research is a train wreck by Ostrogodsky on Tuesday July 20, 2021 @10:55PM (#27901848)
> Commercial software engineering is a creative endeavor; it is not a science,

And do you think Science it is not a creative endeavor? I know that you are coming from the "art/science dichotomy" where the terms are used metaphorically, to me it is an useless distinction still.

> nor is it a manufacturing process?

Why not? Software production IS a manufacturing process.

Re:Software engineering research is a train wreck by shusson on Tuesday July 20, 2021 @01:11PM (#27896419)
> Commercial software engineering is a creative endeavor; it is not a science, nor is it a manufacturing process.

Do you think software engineering will remain a creative endeavour in the future?

We've only been programming in high level languages for 60-70 years. All the while Moore's law has been in effect.

Re:Software engineering research is a train wreck by sanderjd on Tuesday July 20, 2021 @02:03PM (#27897068)
I think doing the engineering design of structures and machines (buildings, bridges, engines, etc.) is still a creative endeavor after many hundreds of years, and I think this is the closest analogue to what software engineers do. The difference is that once we have the blueprints drawn (ie. the code written), a computer can just execute them rather than requiring a lot more material and labor inputs. Program execution is the right analogue to manufacturing, not program creation.
Re:Software engineering research is a train wreck by notJim on Tuesday July 20, 2021 @02:10PM (#27897142)
I agree with this, but those things have also moved from essentially being artisanal to being more formalized and scientific. I don't think we're at that point in software engineering.
Re:Software engineering research is a train wreck by sanderjd on Tuesday July 20, 2021 @02:17PM (#27897243)
We're definitely earlier in the timeline with software engineering, but I personally think it seems like structural and mechanical engineering designs are a lot more "artisanal" than is the general conception. Certainly the primitives involved are very well understand scientifically (and this is where we're definitely a long way behind them), but the specific combinations of those primitives strike me as remaining very bespoke and creative, as does the process for creating the designs. All of this looks familiar to me, just further down the maturity timeline.
Re:Software engineering research is a train wreck by ftio on Tuesday July 20, 2021 @01:41PM (#27896756)
Oof. I have no idea. But since it'll be fun to guess:

Absent some kind of magical (from today's POV) AGI, I think I'd probably say yes, but I'm not sure that means software engineering will continue to look the way it does today, at least not universally.

My expectation is a pretty linear extrapolation of history. I think new tools and higher levels of abstraction will emerge that will make certain types of tasks unnecessary or a lot faster. We'll still need people working on compilers and embedded software, but a lot of really basic forms of software development (think Excel replacements) will be A LOT faster and easier to do.

Fundamentally, though, business problems are really fucking specific, and you need a really fucking specific language to express and solve those problems. The process of applying those languages to problems is a creative one. I don't think this dynamic will change for a really long time, if ever.

Re:Software engineering research is a train wreck by svachalek on Tuesday July 20, 2021 @04:16PM (#27898724)
That's what tools like Visual Basic and Delphi were meant to do, and actually were pretty good at for their time. As far as I can tell, we still haven't nearly caught up to the browser/cloud equivalent of these tools.

Things need to sit still for a while longer I guess, but I think there's also some industry changes to blame. In the 90s there was big money in making tools and components for software engineers, while nowadays everyone just uses the best free thing they can find. Granted the free things are way better than they were in the 90s, but I think they're largely killing the market for better things that cost money.

Re:Software engineering research is a train wreck by petra on Tuesday July 20, 2021 @07:13PM (#27900437)
Look at low code tools. There's money, market demand, and many tool vendors.
Re:Software engineering research is a train wreck by spaetzleesser on Tuesday July 20, 2021 @01:23PM (#27896565)
“Do you think software engineering will remain a creative endeavour in the future?”

I would think so. If something can be automated or be done with a reproducible process it will get automated or performed by lower paid people. But I can easily see how software and automated processes will reach a point of “good enough” for most purposes sometime in the future and there will be much less software engineers doing creative work. For example I would expect a lot of repetitive front end backend work will go away.

Re:Software engineering research is a train wreck by justanotherguy0 on Tuesday July 20, 2021 @02:43PM (#27897556)
I would expect the opposite. As the mechanical stuff becomes cheaper and more automated, the creative work decreases in proportion but increases in absolute terms.
Re:Software engineering research is a train wreck by narag on Tuesday July 20, 2021 @02:29PM (#27897383)
My two cents: is that really the problem? I don't think so.

I mean that the non-creative part is the problem. Why would anybody want to eliminate the creative part and leave the mindless factory-like part?

And there is a huge non-creative, tedious work in programming. A lot of workarounds, minutiae, leaky abstractions, kludges and plain simple idiocy that doesn't get removed because "it's too much work".

Re:Software engineering research is a train wreck by pvarangot on Tuesday July 20, 2021 @01:51PM (#27896911)
Music has remained pretty much a creative thing through most exponential explosions of technology that affected it profoundly. What's the most crazy futuristic scenario where software engineering stops being a creative field?

We have programming languages for creating and evolving organic lifeforms? You are basically creating plants, pets, "superworkers" or "super soldiers", or artists? That's going to still be creative. Like raising a child is creative. Same thing for stuff that can have an ego driven consciousness like most forms of AGI.

Re:Software engineering research is a train wreck by pmarreck on Tuesday July 20, 2021 @04:17PM (#27898734)
I can prove that languages may differ in productivity (without regards to other variables like the ones you mention) with a simple "proof by extremes": No one would likely dispute the fact that it will be more productive overall to code in Javascript than in Brainfuck (although perhaps not by much).