News for hackers. Stuff that matters.
Re:Athletes/musicians pursue fundamentals more rigorously th... by jitl on Sunday September 01, 2024 @03:12PM (#41419465)
The force of competition at work. There are vanishingly few desirable opportunities in music and sport, and many potential contenders who will be selected on their individual skills and performance vying for those spots. Often to put in the hours needed to be competitive you have to also love the game; in all fields including knowledge work I’d speculate the top performers are more likely to enjoy the activity for its own sake than the median performer.

Knowledge work like programming is just much less competitive. In a graduating class of 5000 computer science majors at a good university, I’d be surprised if the majority fail to “make it” to a 100k job and be able to support themselves. Once you secure a spot in the workforce it’s pretty easy to hang onto it as an average contributor without much objective measure or comparison against your peers.

Compare to sport, at the same university maybe there are 50 spots on a sports team, and 10 good teams at the school. What percent of kids who start out playing a sport at 10 years old get to have one of those spots, and what percent of those who make the college team go on to make 100k, support their family etc playing the sport?

That competition forces rigor - if I had to compete like that to get a software job, maybe I’d be “practicing scales” on the weekend too, not just when gearing up for interviews.

Re:Athletes/musicians pursue fundamentals more rigorously th... by kasey_junk on Sunday September 01, 2024 @03:48PM (#41419772)
They also tend to need objectively measured skills more than knowledge workers. We know what a good batting looks like but we still can’t say what good code is in any reasonably objective way.
Re:Athletes/musicians pursue fundamentals more rigorously th... by wryoak on Sunday September 01, 2024 @04:22PM (#41420047)
Since code is primarily for communication between humans, I suppose we should look to the humanities and ask them what good writing is, but therein lay a parallel exercise to one suggested in the article.
Re:Athletes/musicians pursue fundamentals more rigorously th... by zdragnar on Sunday September 01, 2024 @04:57PM (#41420345)
Well written code in one language looks nothing like good code in a different family. They won't even share a similar syntax, grammar or idioms.

The only real lesson to be learned is "write for your audience" in my humble opinion.

Re:Athletes/musicians pursue fundamentals more rigorously th... by wryoak on Monday September 02, 2024 @06:02PM (#41429147)
A good analogy for how good prose looks different in different languages, to different cultures or professions, etc.
Re:Athletes/musicians pursue fundamentals more rigorously th... by bluepizza on Sunday September 01, 2024 @05:43PM (#41420644)
Code is primarily for execution. It is very important that it also communicates to people, for the sake of the business that the code supports, but the main thing is the execution.
Re:Athletes/musicians pursue fundamentals more rigorously th... by Gorath on Sunday September 01, 2024 @05:47PM (#41420668)
Not intended to be pedantic or contrarian, but I think this falls apart when the code is making sure a signal is sent somewhere (aka communication). If I write a module that allows IPC am I focusing on execution or communication? I understand one can say they were “executing the communication” but at that point we ought to remove execute from the phrase if it has to preface anything you do.

To fully disprove my point, at what point do we never execute something with code so the distinction is even worth mentioning?

Re:Athletes/musicians pursue fundamentals more rigorously th... by bluepizza on Sunday September 01, 2024 @05:51PM (#41420700)
OP talks about asking humans what good code looks like, and that's the scope of my response. Code as a communication tool between developers is not its primary reason to exist.
Re:Athletes/musicians pursue fundamentals more rigorously th... by wryoak on Monday September 02, 2024 @06:24PM (#41429283)
Then why do we keep code after it has been compiled to a functional executable? Why do we (those of us working on teams) have rules limiting how code is written, or even in what language? Why do we study abstraction strategies like OOP and FP? Codifying and then storing a solution is not a necessity essential to a solution, it’s a necessity satisfying an external pressure. My conjecture is that that external pressure is the authors’ need to transmit solutions across time (eg to oneself when it stops running for w/e reason) and space (eg to collaborators), so the solution can be read and understood, revised and extended, in the same way we transmit other ideas in natural language prose or other symbolic systems. If we want to treat this outside of the humanities, we need to abandon high level languages like bash and C and return to manipulating registers and memory directly.
Re:Athletes/musicians pursue fundamentals more rigorously th... by bluepizza on Friday September 06, 2024 @09:22AM (#41465958)
Because we need to change it on a regular basis. We usually only ship binaries - literally what you described.
Re:Athletes/musicians pursue fundamentals more rigorously th... by Dove on Sunday September 01, 2024 @09:37PM (#41421859)
I say this often. Code is for people, and the qualities of great code parallel those of great writing: clarity, efficiency, and a sort of profound obviousness and inevitability.

The job of software architects is the role Heidegger ascribes to man when he calls us "shepherds of Being". To understand the world as it is, and find the right abstractions to describe it. To constantly evolve those abstractions toward better ones, clearer ones, to seek out ways to represent things that make solutions seem obvious and inevitable.

A mathematics professor once said to me that as time went by, the definitions in mathematics became more complex while the theorems became simpler. "Why is that?", I asked, and he replied, "It's progress!" This is the sort of progress that the software architect seeks as well: to set up the problem so excellently that the solutions are smooth and the process is enlightening.

Great writing, and great code, are first and foremost about great ideas. About brilliant ideas that change how you view the world for the better.

Re:Athletes/musicians pursue fundamentals more rigorously th... by dbtablesorrows on Monday September 02, 2024 @04:06AM (#41423509)
No. It needs to be treated as engineering if we want any stability and maturity in this field. Humanities are too subjective.
Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Sunday September 01, 2024 @04:41PM (#41420209)
Sure we do.

* execution performance time

* build time

* regression frequency

* defect quantity

* code size

* dependency quantity

* test automation coverage

* test automation execution duration

The problem isn’t that we don’t know. The problem is that developers don’t measure things and simultaneously bitch about strong opinions.

Re:Athletes/musicians pursue fundamentals more rigorously th... by TimTheTinker on Sunday September 01, 2024 @04:46PM (#41420244)
At the same time, those criteria are very context-dependent. Thus, great developers are usually only identified as such because of how they perform relatively to others working under a similar context--not because of the above criteria in any universal or objective sense.
Re:Athletes/musicians pursue fundamentals more rigorously th... by michaelt on Sunday September 01, 2024 @05:58PM (#41420756)
Lynx is a lean, efficient, fast-to-compile, low-dependency browser - and has the fewest open defect reports of any major browser.

I'm not sure the metrics you propose capture what makes good software good.

Re:Athletes/musicians pursue fundamentals more rigorously th... by tjr on Sunday September 01, 2024 @06:41PM (#41421007)
Would you say that Lynx is not good software?
Re:Athletes/musicians pursue fundamentals more rigorously th... by shiroiushi on Sunday September 01, 2024 @08:20PM (#41421439)
Absolutely: "good software" has to be useful for its intended purpose. Lynx may be well-written, but it's useless if you want to do most things on the modern web: it just isn't capable of doing them. If you want to use a web browser to, for instance, use your bank's web interface, a buggy browser that can do this is infinitely more useful than a non-buggy browser that simply doesn't have the technical capacity to do so.
Re:Athletes/musicians pursue fundamentals more rigorously th... by tjr on Sunday September 01, 2024 @10:50PM (#41422236)
Is the intended purpose of Lynx to access the "modern web"?
Re:Athletes/musicians pursue fundamentals more rigorously th... by bravetraveler on Monday September 02, 2024 @07:29AM (#41424473)
+1 it worked well when I required it, eg: reading manuals while recovering a system that lacked a GUI
Re:Athletes/musicians pursue fundamentals more rigorously th... by bigtex88 on Sunday September 01, 2024 @07:26PM (#41421208)
Ok, but then what game is being played according to these metrics? There is no game of "code" like there is a game of "football" or "golf".

Perhaps these metrics matter in some small fields but overall most places that need software could care less about most of these, as long as the business objectives are reached. And the business "winning" relies on more than just the code running its software.

Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Sunday September 01, 2024 @08:12PM (#41421404)
Some measures are better than no measures. Crying about what measures to use when you currently have none is just crying. That crying is the biggest distinction between software all other examples these comments mention.
Re:Athletes/musicians pursue fundamentals more rigorously th... by nine_zeros on Monday September 02, 2024 @09:13AM (#41425130)
Measuring the wrong metrics is as good as not understanding the sport. It's best if the person advocating the wrong metrics step down.
Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Monday September 02, 2024 @10:56PM (#41430817)
Why? What are the worst consequences of wrong metrics? The problem there is that its a paradox. Seriously, consider what you are saying. You are saying measurements should not be conducted, because if somebody believes they are bad measures some mysterious unknown consequence will come to pass. The fallacy there is that the same consequences will come to pass irrespective of any measures conducted, because measurements alone do not dictate courses of action. However, if you don't conduct measurements you won't have any idea either way, which makes the very concern of bad measures entirely moot.

Bad measurements are only bad when they disqualify better measurements and better measurements only occur when some measure more directly proves/disproves the desired result.

Re:Athletes/musicians pursue fundamentals more rigorously th... by The_Colonel on Monday September 02, 2024 @12:31PM (#41426773)
When used to evaluate employee performance (the context here), no objective measures are better than bad measures.
Re:Athletes/musicians pursue fundamentals more rigorously th... by tbrownaw on Sunday September 01, 2024 @08:28PM (#41421488)
You missed the most important ones: how much business benefit does it provide, and how overall expensive is it?
Re:Athletes/musicians pursue fundamentals more rigorously th... by Dove on Sunday September 01, 2024 @09:26PM (#41421795)
These are good attributes for code to have, but I would strenuously disagree that they are what makes code good. Harder to measure, but I would say more important, are softer qualities like being clear to read, safe to modify, easy to learn, and above all, solving a valuable problem.
Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Sunday September 01, 2024 @09:45PM (#41421893)
Sure, those are important too. Now that you have some application written that solves a valuable problem then how do you assess quality/value objectively? The keyword is objectivity. You have to measure something and compare those measures against something else.

This is why non-developers believe developers are generally hyper-autistic. For most developers everything must be about clear, easy, simple, safe. These are all super subjective self-serving opinions that don't do anything for the product or the labor that builds that product. Product owners will scream about this, developers will pretend to hear it, will immediately discard it, and then repeat the same insanity where they find comfort.

Step back, take a deep breath, understand that it's not about you or what you want, and finally discard the self-serving circular insanity and only focus on measuring your time to complete a task, time for the application to do things, and frequency of user engagement.

Re:Athletes/musicians pursue fundamentals more rigorously th... by peremptor on Monday September 02, 2024 @03:03AM (#41423239)
I get your point you are being pragmatic, but the reason why I sometimes behave exactly in the way, that you just criticized are those very same product owners.

Example: I have a talk with the PO where we agreed on certain features and certain things that do NOT have to work. Often times when I make decisions during development that rest on the asumption that these certain things dont have to work I later on get told to incorporate them anyways. So I have lost a lot of trust in POs or anyone that is not a developer that tells me how a piece of software is supposed to function.

Example 2: I am currently dealing in my department with a case where a Product Manager talked to a Product Owner and they contractually aggreed with a customer to deliver one of our internal development tools, that are absolutely not ready for production or were ever meant for any customer.

Yes I will be "hyper-autistic" about my code because sometimes I do not have a choice.

Re:Athletes/musicians pursue fundamentals more rigorously th... by Dove on Monday September 02, 2024 @08:03PM (#41429843)
Goodness is fundamentally a subjective attribute. Trying to measure it objectively is attempting alchemy. You cannot make the subjective out of the objective - you will always have smuggled subjectivity in somehow.

Suppose I say that good code should have the lowest number of curly braces, or the lowest number of subroutines, or the flattest or deepest object hierarchy. A measure being objective doesn't make it good. So why is test coverage good?

In fact, every single one of the metrics proposed in the parent post is something I have seen gamed to the point of maladaptivness.

* execution performance time - So frequently overly focused on that you can find google hits for "Premature optimization is the root of all evil." I have seen developers spend hours or days saving (sometimes imagined!) run time, where all the time they saved over the life of the product wouldn't add up to the time spent. Extreme pursuit of performance leads to code that is hard to work on - who cares about those milliseconds when critical new features take months to write, or are even impossible?

* build time - It is very easy to diminish build time by destroying critical architecture. I have done it myself. :)

* regression frequency - Insisting on only making very safe changes is how you wind up spending six weeks lobbying change control boards for one line of code.

*defect quantity - In environments that actually track this, people merge issues into a single "fix what's wrong" ticket, degrading the utility of the ticket system. Defect granularity is not actually obvious!

* code size - Obfuscated X contest entries are often very compact, and people who obsess on saving lines and characters can wind up leaning towards that style.

* dependency quantity - Leads to attempts to homebrew encryption.

* test automation coverage - Automated testing ossifies design and architecture, which can paralyze, e.g., an experimental prototype. Full coverage is also costly - time and energy spent maintaining pointless tests can come at the expense of mitigating more realistic risks. I realize I depart from prevailing wisdom in this, but there are times and places when automated testing is simply inappropriate.

* test automation execution duration - Sometimes the right way to write a test is slow.

I'm not disagreeing that these are generally good things to strive for. They are! I'm saying that if you think these things define goodness, each one can lead you to a cursed place. Goodness is subjective, and while objective measures can help you assess it, such measures cannot define it - when and how you use which measures, and when you think they've gone off the rails, is itself a judgement call.

I once inherited a system that was both essential for business operations and a thorn in everyone's side. The guy I inherited it from (and the guy he inherited it from) had taken over a year to learn how to use it. I set about reorganizing, rewriting, documenting, abstracting - all those soft changes in pursuit of clarity and obviousness. They aren't objective, but they do pay off: when I handed the system off to the next guy (and three more after him!), he was off and building on it in a day. That was how I knew I had succeeded! When doing that sort of thing, you do always wonder if what you're writing is clearer for everybody or just you. But surely even the most hardheaded bean counter can see the value of training developers in a day rather than a year. That's good. :)

Goodness is contextual and subjective. I can agree that your goals are generally right, and I can point to circumstances where they're overemphasized or even outright wrong. Sometimes, when the sky is falling, a nasty little bash script that meets none of the usual criteria for "quality" is the best possible thing.

There are people who use subjectivity as a haven for vanity, and build mountains of pointless code in pursuit of some idea of goodness that serves no practical purpose or is even harmful. It is important that we retain our on ability to criticize on subjective grounds, precisely to counter that sort of activity - because you will find it in the land of the objective advocates as well, building mountains of metrics that don't serve any practical purpose either.

Objectivity is no refuge from the necessity of good taste.

Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Monday September 02, 2024 @08:36PM (#41430039)
> A measure being objective doesn't make it good

That completely misses the point. It’s not about what’s good. It’s not even about what’s better. It’s only about how much better, the distance between theirs and ours. Better is objective only when like aspects of competing items are compared within accepted bounds of precision using evidence.

The interesting thing about measuring stuff isn’t that people are otherwise entirely wrong in their assumptions more than 80% of the time, but that they are typically wrong by one or more orders of magnitude.

Re:Athletes/musicians pursue fundamentals more rigorously th... by Dove on Tuesday September 03, 2024 @06:02PM (#41439766)
>> A measure being objective doesn't make it good

>That completely misses the point. It’s not about what’s good

The loss of context here makes me wonder if I am talking to an AI. The comment you originally replied to was,

   We know what a good batting looks like but we still can’t say what good code is in any reasonably objective way.
You replied with, "Sure we do" and proposed a list of metrics.

Are we tracking? The original comment claimed that we do not know how to objectively measure goodness in code. You are (apparently) claiming to know how to do it. I am claiming it is impossible even in principle.

In this context, I find your response ("It’s not about what’s good", and the claim that "better" is easier fo measure) bizarre and nonsensical. Like an AI, you seem to have lost track of what we are talking about. We are talking about whether we can objectively measure code being good. It is exactly "about what's good".

Of course it is possible to measure things about code, but equating those measures to goodness relies on artificially constrained circumstances -- like a code golf contest or a PO declaring test coverage a metric to maximize. Athletes find themselves in such constrained circumstances all the time because it is a pursuit dominated by competition and games! It is most obvious in sports like sprinting or powerlifting, which are analogous to something like code golf, but even sports like basketball in which "goodness" is harder to define are heavily artificially constrained such that goodness in a player is about maximizing an objective measure - team score. This might be analogous to a programmer who sees his mission in terms of ticket closed per week. By contrast, programmers in general are usually working in a context in which the quality of what they produce is measured by a lot of complex impacts - on users, on business, on other programmers.

Some of what code needs to accomplish - conceptualizing a problem well, communicating clearly - is inherently subjective, having to do with how it is received by another mind. Programmers (myself included) are generally focusing on these sorts of characteristics when talking about code in isolation, partly because we feel the impacts to ourselves most keenly. But I would contend that there is something deeper and less obvious here - that maximizing this subjective goodness profoundly improves the situation in more objective areas. Well architected code, well communicated code, clear code is resistant to defects in a way that mere test coverage can't accomplish. This is not obvious, but it is deep wisdom arising from experience, and is part of what drives programmers to emphasize the ineffable in their understanding of goodness.

In fact, I was originally going to draw a parallel between being a good basketball player, maximizing team score, and a programmer maximizing business revenue. But I stopped myself, because this is an element of the deep wisdom of good code: focusing on ineffable, subjective excellence is profoundly positive for revenue. It's not something you can measure directly so much as it defines the circumstances the business finds itself in. This observation isn't unique to me - here's a pg essay making a similar point: https://paulgraham.com/avg.html Programmers talking about code being good in this sense may only be building sandcastles in the air - but they also may not be. You must possess the wisdom yourself to tell the difference. But there is certainly more to it than than selfish vanity.

But even leaving that aside, because code must meet a broad array of conflicting demands, optimizing among those depends both on the circumstance and the values held by the people in it. Hence, goodness in code will always have a subjective element, and (in the athletic sphere) is most like saying you are "healthy and fit" or "your best self". You can certainly bring measurements to bear, and we are certainly talking about something real, but there is an inescapable subjective dependence on the value judgement of the judge.

This actually touches on a broader philosophical debate: Are value judgements mere meaningless personal preferences, or are they (often imperfect) attempts to articulate something real? In code, and in life, I believe the subjective is pursuing the real, and moreover that anyone who thinks it's worth arguing about intuitively agrees with this assessment. By contrast, the view that only the objective is real, popular as it has been for the last couple of centuries, and attractive as its promises are, has been increasingly producing absurd results.

Re:Athletes/musicians pursue fundamentals more rigorously th... by lotharbot on Tuesday September 03, 2024 @08:08PM (#41440543)
> "the view that only the objective is real ... has been increasingly producing absurd results."

As you rightly noted a couple of comments back, what this view does is it smuggles in subjective assumptions. That is, someone operating under this view is going to objectively measure something (like kloc or number of tickets closed or execution time on a test data set) but the selection of what to measure, and the selection of how to value each individual measure of an objective quantity in order to determine overall "goodness", is subjective. The step where they assign meaning to a measurement is a subjective step.

It's interesting to watch the development of "objective" measures in basketball and the dialogue around how to determine if a player is the best, most valuable, etc. over time. Decades ago, the only stats we had were "counting stats" -- points, rebounds, and assists. Steals and blocks came a bit later. There is a correlation between putting up big counting stats and winning games, but it's not as strong as you might naively suppose. Once more sophisticated metrics were developed, something that "subjective" observers had always noticed ("losing player with good stats" is something that was often said about specific players) started to be quantified: some players put up big stats because they're doing inefficient things that result in individual stats at the expense of the team, like taking a high volume of shots even if they're lower percentage shots than a teammate could get on that play, or not contesting an opponent's shot but trying to chase the rebound instead (leading to more opponent scoring but also more personal rebounds over the course of a large number of shots.) In the modern era, advanced stats like PER, VoRP, WS, and BPM are basically more sophisticated models built on top of counting stats that try to scale them and weight them according to regression models. These stats are better, but they still don't capture everything, they only capture things that can be inferred from counting stats. They don't capture things like -- Steph Curry has such strong "shooting gravity" that his teammates often have extra space to shoot because multiple defenders are trying to make it hard for him to get a good look, or Rudy Gobert being on the court changes an opposing team's play selection because he's such a good shot blocker that plays that would lead to a bucket against a different player are leading to him getting a block so teams avoid those plays. Someone insistent on "objective measures" won't even consider these as things to potentially care about unless they have a way to measure them (which, now that we have sophisticated player-movement-tracking, we can actually measure things like how close the nearest defender is on shots by a Curry teammate when he's on court vs off court, or what percentage of opponents' shots are taken in a specific part of the court when Gobert is defending them vs when he isn't. So those measurements are coming online over time.) And, of course, understanding that it means something that Curry's teammates have extra space to shoot, or that Gobert's opponents might not be running their strongest offensive plays because of his shot blocking, puts us in the realm of meaning rather than mere measurement. Knowing to make the value judgment of "it matters how this player is impacting the game in ways we don't have a good numerical measurement of, but that a sophisticated observer who values those things can watch for and give subjective consideration of" puts us in the world of meaning rather than mere measurement.

That seems to be the same issue underlying this discussion. Knowing that conceptualizing a problem well matters -- and that it will profoundly impact the end result in objective areas even though it's not directly measured -- is wisdom.

Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Wednesday September 04, 2024 @05:25AM (#41443593)
Ohhhhhh shit, that has to be the longest paragraph in all of HN. Have you seen the movie Moneyball?

Just start with the premise that bias isn’t helpful and even less helpful when implicit. Let that determine what to measure and will not be harmed. If such decisions twist you into knots then you are the person qualified to make such decisions.

Re:Athletes/musicians pursue fundamentals more rigorously th... by lotharbot on Thursday September 05, 2024 @12:41PM (#41458308)
> "bias isn’t helpful ... Let that determine what to measure"

Determining what counts as "bias" is itself a subjective activity. People who grow up in different cultures have different baselines for what factors matter the most and what factors they consider to be overvalued, undervalued, inappropriately accounted for, and so on. Not just different countries, but different subcultures within the same country (like, my cousins from the farm see a lot of things in society as biased toward big cities, which I never considered because I've lived in big cities for essentially my entire life.)

"start with the premise that bias isn't helpful" is, by the way, also not a measurable goal, which IMO supports what I'm saying. Knowing how to conceptualize a problem well (of which "eliminate bias" is a small subset) isn't something you can objectively measure, but it's something that will impact your objective measures down the line.

Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Wednesday September 04, 2024 @05:16AM (#41443531)
You are really wanting this to only be about code quality, whatever that means, and not product quality, which is something that can be measured from outside the organization by people with no understanding of your skills. I can repeat all day that it’s not about what you or other developers want but I somehow suspect you will circle back to code quality and goodness because those are important to you. That is why I claimed the prior comment misses the point. The complete inability for developers to accept, on any level, that it’s not about what they want, I believe, is why non developers stereotype developers as autistic. They aren’t wrong.
Re:Athletes/musicians pursue fundamentals more rigorously th... by lotharbot on Thursday September 05, 2024 @01:06PM (#41458533)
There are several things in this comment I find odd.

The comment about developers being autistic is particularly funny because I personally am autistic, and my wife (who you are responding to) is very much not. It was a major source of tension for us for many years.

Likewise, the emphasis on people "outside the organization" and the suggestion that she is somehow deficient on that front is laughable -- she's extremely highly regarded by customers/clients, and has been for decades, specifically for her ability to understand and solve their problems by getting them a great product whether or not they have any idea what her actual coding ability is.

And then the comment about "really wanting this to only be about code quality" is strange, since the subthread going back to kasey_junk's comment is about how "we still can’t say what good code is". Your initial response is entirely about measurable attributes of code (like code size and build time); Dove introduces "softer qualities" including "solving a valuable problem" (which is more about "quality product" than any of your metrics), and then you go back to a different set of metrics. She responded with an extended comment that specifically noted the importance of "complex impacts - on users, on business, on other programmers". Her comments have consistently been more about how good code impacts the functional product, while yours have been about measuring things about the code, but then your complaint is that she's too focused on the code and missing the point. Then you make comments about her own state of mind: what she is "wanting" to do and what you "suspect" she will do and her "complete inability" to accept certain things.

This very much feels like you just have a point you want to spike about measuring things (FWIW she does make it a point to measure things and to train her subordinates on making sure they're measuring things), and her comments (and my other one) are more excuses for you to repeat your point than actual ideas you're trying to interact with. Like you're not actually interested in engaging with the core idea that "Some of what code needs to accomplish - conceptualizing a problem well, communicating clearly - is inherently subjective, having to do with how it is received by another mind." It's just another opportunity for you to say that your set of objective measures are the only thing that matter, which, as I noted elsewhere, is itself a subjective position about which things to value.

Re:Athletes/musicians pursue fundamentals more rigorously th... by euroderf on Monday September 02, 2024 @04:12AM (#41423540)
Your metric is a laundry list.
Re:Athletes/musicians pursue fundamentals more rigorously th... by nine_zeros on Monday September 02, 2024 @09:11AM (#41425120)
> execution performance time

* build time

* regression frequency

* defect quantity

* code size

* dependency quantity

* test automation coverage

* test automation execution duration

Why would these metrics be measured against human engineers when a large amount of these issues should be used to inform how to improve our systems and tooling to help devs?

Re:Athletes/musicians pursue fundamentals more rigorously th... by austin-cheney on Monday September 02, 2024 @11:09PM (#41430878)
Because in many cases human engineers will directly fight the mere suggestion of measuring anything in order to achieve self-satisfying desires like easy, clean, clear, safe, and so on. Its not about what the developers want. It's only about the product. Human engineers that put themselves before the product are an ethical liability. Ethical failures are more the norm than the contrary in software, and one way to fix that is to hold people (entire teams) liable for failures to perform above certain established baselines.

For me its all about lowering regression and internal execution speed at all steps as much as possible, because I would rather do something else with my time than repeat myself on the same slow failures over and over. Getting my time back for personal use is a win for me and it allows the employer to ship a faster and more durable product.

Re:Athletes/musicians pursue fundamentals more rigorously th... by BeFlatXIII on Monday September 02, 2024 @01:25PM (#41427207)
Yet weighing all these factors is decidedly a subjective call. Unless it's something stupid like half an hour for an app that's considerably simpler than a web browser or OS, I would fire any manager who prioritized build time or test execution time over live performance.

Also, "dependency quality" just recursively moves the entire quality criteria to the next level.

Re:Athletes/musicians pursue fundamentals more rigorously th... by maximus-decimus on Monday September 02, 2024 @05:34PM (#41428976)
You didn't even include "solve the customer's problem" or "has features people care about" or portability. Electron apps are not taking over the world because "execution performance time" is the one true metric by which all code should be judged.
Re:Athletes/musicians pursue fundamentals more rigorously th... by Kinrany on Monday September 02, 2024 @06:24PM (#41429277)
The first two are product quality, not code quality
Re:Athletes/musicians pursue fundamentals more rigorously th... by mtlguitarist on Wednesday September 04, 2024 @06:01AM (#41443826)
Yes, but presumably we all work at businesses that are trying to make money. Code quality and product quality are inextricably linked in the business world.
Re:Athletes/musicians pursue fundamentals more rigorously th... by Kinrany on Thursday September 05, 2024 @07:36AM (#41455597)
This is not true in practice because the consequences of bad code show up months and years later and in a way that makes it impossible to attribute to any one business decision.
Re:Athletes/musicians pursue fundamentals more rigorously th... by mtlguitarist on Thursday September 05, 2024 @08:27AM (#41455954)
This is totally fair and I agree with that. What I was trying to say and didn't express particularly eloquently is that you need to consider both "abstract" measures of code quality (performance, test coverage, complexity, rate of regressions/defects, etc.) and specific product metrics. You can deliver "high quality code" that checks off all the abstract metrics, but if it doesn't actually solve your business problem then you've basically just succumbed to Goodhart's Law.
Re:Athletes/musicians pursue fundamentals more rigorously th... by Kinrany on Thursday September 05, 2024 @06:51PM (#41461066)
Agree. Except, to be very pedantic, with this?

> then you've basically just succumbed to Goodhart's Law

We're talking about adding more metrics that should be considered, and treating or not treating them as the ultimate goal is orthogonal to choosing the set of metrics! Product metrics don't save from goodharting

Re:Athletes/musicians pursue fundamentals more rigorously th... by jorvi on Tuesday September 03, 2024 @08:23AM (#41434253)
It blows my mind you didn’t include readability and documentation (or, in one word, grokability)
Re:Athletes/musicians pursue fundamentals more rigorously th... by jowdones on Sunday September 01, 2024 @05:02PM (#41420376)
>> In a graduating class of 5000 computer science majors at a good university

Jézus Krisztus and people are wondering why there is a job crisis underway. I had to attend my nephew's university graduation this summer and was shocked to see some 500 computer science majors, thinking where will all these people find a job? And you're talking of 5000 as a "sure thing".

Well it ain't no sure thing anymore and graduate inflation surely don't make things better.

Re:Athletes/musicians pursue fundamentals more rigorously th... by jitl on Sunday September 01, 2024 @08:40PM (#41421548)
It’s a totally made up number
Re:Athletes/musicians pursue fundamentals more rigorously th... by jcranmer on Sunday September 01, 2024 @06:03PM (#41420790)
Doing some rough numbers:

There are ~2400 NFL players in the US, which means about 1 in 140k people.

If you figure that 10% of the people care enough about football to make an attempt, then someone who is in the 99th percentile of that group of people--someone I think many people would call undeniably good at the game, then they still have to be at least 99th percentile among those people to actually have a go of making it as a career.

Re:Athletes/musicians pursue fundamentals more rigorously th... by Retric on Sunday September 01, 2024 @07:28PM (#41421213)
You’re off by an order of magnitude.

There’s ~165 million males in the US, but many ex professional football players still alive and some kids who will eventually become football players. I doubt 10% of boys try out for high school or college football, but let’s say 10% make even some vague attempt.

Many people play professionally for a very short period, but arbitrarily suppose 1/7th of men are in the age range to play professionally. 165,000,000 / 2400 / 7 / 10 … So something like 1 out of 1,000 guys who make even a vague attempt end up in the NFL.

More realistically I doubt even 1% of boys ever approached football with serious intentions. Still horrible odds, except there’s a lot more athletic scholarships than openings in the NFL.

Re:Athletes/musicians pursue fundamentals more rigorously th... by joe_the_user on Sunday September 01, 2024 @08:53PM (#41421610)
No, your math is cockeyed and the parent is much closer.

"Roughly speaking, there were 1,083,308 high school football players competing, and eventually 251 made it to pro. After simple calculation, we can get that the percentage of student-athletes going pro is approximately 0.023%."

https://u.osu.edu/groupbetaengr2367/junran-add-things-here-f...

Re:Athletes/musicians pursue fundamentals more rigorously th... by Retric on Sunday September 01, 2024 @10:22PM (#41422102)
High school lasts 4 years. Some people play for all 4 years but if the average is 2 years you’re looking at 0.5 million people playing for the first time each year.

Most players aren’t drafted. The average NFL career lasts 3.3 years. 2400 / 3.3 = 727 new players per year.

500,000 / 727 would be 1 in 687 or 0.15%.

Re:Athletes/musicians pursue fundamentals more rigorously th... by hooloovoo_zoo on Sunday September 01, 2024 @10:02PM (#41422003)
That 1M is a 4 year rate and the 250 is a 1 year rate. Additionally you don’t have to be drafted to play in the NFL. So it’s about 5x that.
Re:Athletes/musicians pursue fundamentals more rigorously th... by biggc on Sunday September 01, 2024 @08:17PM (#41421423)
Does a single university with a good reputation graduate 5,000 new CS majors per year? Or is that number just for the sake of example?
Re:Athletes/musicians pursue fundamentals more rigorously th... by jitl on Sunday September 01, 2024 @08:40PM (#41421546)
Totally random number, based vaguely around there being 2000 enrollments in US Berkeley CS61A per semester. Not nearly that many graduate in CS or EECS, but I couldn’t easily find a number.

UIUC awarded 500 ish CS degrees in 2023, so 10x less!

Re:Athletes/musicians pursue fundamentals more rigorously th... by bigiain on Sunday September 01, 2024 @11:56PM (#41422452)
> Once you secure a spot in the workforce it’s pretty easy to hang onto it as an average contributor without much objective measure or comparison against your peers.

There's also the weird "success path" that goes from developer to manager. It's as though the end goal of learning to be a concert pianist was becoming a conductor, or perhaps a concert hall manager.

If your "success metric" is earnings, then "The force of competition at work" for knowledge work doesn't necessarily drive you to practice your Rust development "scales" every day, or to be the best Javascript dev in the team - it is probably a better use of your time to be "good enough" at your developer job, and hone your schmoozing and office politics skills to make the jump to better paid non development roles like "chief architect" of "VP in charge of {whatever}" or ultimately CTO or something.

Re:Athletes/musicians pursue fundamentals more rigorously th... by P_I_Staker on Wednesday September 04, 2024 @03:53PM (#41449971)
> It's as though the end goal of learning to be a concert pianist was becoming a conductor, or perhaps a concert hall manager.

Is it not. Wouldn't be surprised either way.

Re:Athletes/musicians pursue fundamentals more rigorously th... by RandomThoughts3 on Monday September 02, 2024 @06:59PM (#41429488)
That’s selection bias, not competitive pressure raising the top level. It’s not that professional positions being so few and far between for artists raise the bar. It’s that you are only looking at the top of the competent musicians which are actually far more numerous but keep music as a hobby because there is no job there. Take a similar sample of the "best" at anything and you will find similar traits.
Re:Athletes/musicians pursue fundamentals more rigorously th... by borroka on Wednesday September 04, 2024 @11:07AM (#41446674)
" in all fields including knowledge work I’d speculate the top performers are more likely to enjoy the activity for its own sake than the median performer"--

In soccer, a sport I am very familiar with on the playing side at a reasonably high level, this is not true. The median professional enjoys training and playing far less than the median spectator and median player of lesser quality would expect.

The common refrain, "If I had that opportunity, I would train like crazy," "I cannot understand how people can make that kind of money and live the dream of being a professional player and yet..." clashes with the reality of young people, like most top soccer players, who want to party, not train as much, and live a life of equal wealth but fewer obligations.