News for hackers. Stuff that matters.
Re:You are never taught how to build quality software by titzer on Friday December 08, 2023 @04:15PM (#38574510)
We do teach these things, they are just not core CS topics, but rather in other areas, relegated to electives like a software engineering course. At CMU we have entire Master's program for software engineering and an entire PhD program (in my department). We teach exactly the kinds of things the blog post is about, and more. Software Engineering is a whole field, a whole discipline.

I get that this is a blog post and needfully short, but yes, there are courses that teach these skills. There's a big disconnect between CS and SE in general, but it's not as bad as "no one teaches how to build quality software". We do work on this.

Re:You are never taught how to build quality software by hinkley on Friday December 08, 2023 @04:51PM (#38575024)
If my friends hadn’t had such vividly bad experiences with the compiler class, I might not have taken the distributed computing class that was one of the other options to fulfill that category.

It’s not the most defining class of my undergrad years, but it was pretty damned close.

The fact that most people designing systems don’t know this material inspires a mix of anger and existential dread.

Re:You are never taught how to build quality software by titzer on Friday December 08, 2023 @04:53PM (#38575062)
If you're specifically referring to CMU's compilers course, feel free to follow up with me offline.
Re:You are never taught how to build quality software by hinkley on Friday December 08, 2023 @04:55PM (#38575075)
No sorry, I was speaking in the general case not about CMU. This was ages ago and elsewhere. It was clear the prof got caught flat footed.

It was practically an elective and these days I hope it’s required.

Re:You are never taught how to build quality software by ungamedplayer on Saturday December 09, 2023 @02:04AM (#38579390)
Why does this feel like the professor trying to either fix the problem or give detention.
Re:You are never taught how to build quality software by mikeyouse on Saturday December 09, 2023 @02:58AM (#38579712)
Lol this is who asked whether it was at CMU - https://s3d.cmu.edu/people/core-faculty/titzer-ben.html HN is such a great community.
Re:You are never taught how to build quality software by jaybrendansmith on Saturday December 09, 2023 @09:57AM (#38582395)
After seeing the same mistakes made over and over again I can't help but agree. This is how one builds enterprise software now, and it is poorly understood by most developers, although that is starting to change. If I were designing a college curriculum, required courses would include all of the normal CS stuff but also software engineering, distributed computing, design patterns, web application fundamentals, compiler design, databases, DevOps/Cloud, testing fundamentals, UX design, security basics, data science, IT project/process management, essentials of SOA, product mgt and requirements. Of course, it's been so long since I went to college, none of these things existed back in the day, so perhaps modern curriculum has all of these now!
Re:You are never taught how to build quality software by anticensor on Monday December 11, 2023 @01:12AM (#38598096)
Some of them do indeed exist as electives.
Re:You are never taught how to build quality software by hardwaregeek on Friday December 08, 2023 @04:49PM (#38574989)
There's a massive gap between taught at CMU and taught at most universities. And even if it is taught, it's usually outdated or focused on very literal stuff like how to write web applications. I'd have killed for a class that actually focuses on implementation, on teamwork, on building complicated systems.
Re:You are never taught how to build quality software by sasaf5 on Friday December 08, 2023 @05:23PM (#38575459)
+1 for teamwork... I wished there was an established field of study for teamwork in software. If you are impressed with 10x devs, imagine 10x teams!
Re:You are never taught how to build quality software by habnds on Friday December 08, 2023 @08:18PM (#38577276)
I don't believe this personally, but I bet that many people with MBA's would tell you that this was what their MBA was about.
Re:You are never taught how to build quality software by cqqxo4zV46cp on Friday December 08, 2023 @08:42PM (#38577461)
Yeah. A fair bit of this is just “people working in teams” stuff, that people that buy into ‘developer exceptionalism’ will tell you is sacred software developer knowledge. It isn’t.

Software engineering isn’t just about teamwork, and not all software development-related teamwork skill is generalisable to other industries, but it’s far from uncommon for there to be some trendy blog post laying out the sorts of things that, yes, an MBA program will teach someone. Which is fine, if not for the fact that these same people will scoff at “clueless MBAs”.

Re:You are never taught how to build quality software by eastbound on Saturday December 09, 2023 @07:31AM (#38581428)
In software engineering schools in France, both in my personal experience and other Bac+5 people I’ve hired, the entire Bac+4 year was dedicated to group projects. When you have 8 group projects in parallel at any time, it does teach team work, management, quality control, all the good stuff.

After the first failed project, everyone agrees that they need a boss without assigned duties. Then in 5th year, we’d have one or two class-wide projects (20-30 people).

This, along with joining event-organizing charities on the campus, where you’d work 3-5hrs a week to build a hundred-thousand-to-a-million dollars event (NGOs on campus, or concerts, or a sports meeting, to each their preferences, but it was the culture). And it wasn’t always a good time together, it’s not flowers all the way down.

I’m only surprised some school might consider engineering without group effort. On the other hand, I deeply deeply regret spending this much time in charities and not enough dating, as I have never been recognized for charity service, and family was important to me.

Re:You are never taught how to build quality software by ricw on Friday December 08, 2023 @06:40PM (#38576397)
That was a dedicated software engineering course I took at university. Teams of 5. Had to put the soft eng theory into practice. And if’s not CMU.
Re:You are never taught how to build quality software by calvinmorrison on Friday December 08, 2023 @07:31PM (#38576884)
Do they funnel soon to be grads into stressful zoom calls where product managers handwave an entire legacy stack still somehow running on coldfusion and want a rebrand with 'AI' starting Jan 1??
Re:You are never taught how to build quality software by ekidd on Friday December 08, 2023 @08:53PM (#38577551)
No, but our professor assigned teams at random, gave us a buggy spec, and then changed the spec with one week to go during finals week. (This last part appears to have planned; they did it every year.)

This was a surprisingly effective course, if sadistic.

Re:You are never taught how to build quality software by calvinmorrison on Friday December 08, 2023 @10:46PM (#38578353)
It certainly trains the programmer to not box themselves in with assumptions. What's one more for loop?
Re:You are never taught how to build quality software by ungamedplayer on Saturday December 09, 2023 @02:03AM (#38579383)
Talk about preparing graduates for the real world!
Re:You are never taught how to build quality software by bcrosby95 on Friday December 08, 2023 @08:25PM (#38577328)
I had something like this too - it was required for my CS degree. Our class split up into teams of 5. But the whole class of 30 was working on a single project. It was a semester-long project and each team also had to integrate with eachother to build the final solution.
Re:You are never taught how to build quality software by heelix on Friday December 08, 2023 @07:01PM (#38576628)
I've wished that students would be required to hand their semester long project to the person next to them each week.
Re:You are never taught how to build quality software by fsckboy on Friday December 08, 2023 @08:56PM (#38577579)
that would be a cool semester long project assignment: everybody has to plan/architect their own software project, and then work on implementing them, but you don't work on your own project, that you just manage.
Re:You are never taught how to build quality software by steveBK123 on Friday December 08, 2023 @10:04PM (#38578110)
Almost every CS course I took went the other way and had strict cheating policies that essentially made any group work verboten. There was 1 group project in 1 course I took in 4 years.

My spouse on the other hand took an explicitly IT program and they had group projects, engaging with real world users, building real solutions, etc.

Re:You are never taught how to build quality software by sdiupIGPWEfh on Friday December 08, 2023 @11:31PM (#38578602)
> strict cheating policies that essentially made any group work verboten

If I had to guess, some polytechnic school or another?

With some classes even forbidding discussing work with other students, where each assignment required a signed (digitally or otherwise) affidavit listing everyone you consulted, acknowledging that if you actually listed anyone, you were admitting to violating the academic honesty policies and if you didn't list anyone yet had spoken with others you were of course also violating the academic honesty policies.

Where only consulting the professors or TAs was allowed, the TAs were never around, and the professors refused to help because if they gave you any hints, it would apparently give away the answer, which would be unfair to the other students.

Re:You are never taught how to build quality software by virgilp on Saturday December 09, 2023 @01:52AM (#38579338)
I taught a course "in a previous life" and while I wasn't anything close to as strict as you say here, I can tell you the flip side: students would copy, modify superficially (some, less superficially) and then claim "it's my work, we just talked, that's why the similarities!" (with some even having the nerve to say, "it's not copied, look, plagiarism detection software says similarity is less than x%!) Perhaps I was wrong but I really wanted the students who took the course to put in the work themselves. Just choose a different course/course set, you _knew_ this one was going to be hard!

So yeah, the guideline was that we'll be eventual judges of what was "too similar" and if you're concerned, just don't discuss implementation details with anyone. I realize it prevents honest colaboration, and that's bad too... but sometimes it's a "damned if you do, damned if you don't" kind of situation.

Re:You are never taught how to build quality software by toolslive on Saturday December 09, 2023 @03:48AM (#38579990)
What we did when correcting the homework is compare the signature of the assembly output (not manually of course). You can move functions around, rename them, change the names of variables, .... but the signature of the instructions remains the same.

We caught 2 guys, of course we didn't know who copied from whom, but we quickly found out by challenging each of them with a fizz-buzz kind of question.

Re:You are never taught how to build quality software by steveBK123 on Saturday December 09, 2023 @10:07AM (#38582482)
Sure, but given how we all work in the real world.. there should be courses that are explicitly "group project" based.
Re:You are never taught how to build quality software by denton-scratch on Saturday December 09, 2023 @05:04AM (#38580413)
I had students that copied one-another's work; in fact I had few students that didn't copy. It made it impossible to mark their projects correctly, so I asked my more-experienced colleagues.

The best advice I got was to explain the difference between collaboration (strongly encouraged) and plagiarism (re-take the course if you're lucky). Forbidding collaboration is a disastrous policy, so an instructor shouldn't have a problem with giving the same mark to each member of a group of collaborators. You just have to test that each individual can explain what they've submitted.

Re:You are never taught how to build quality software by steveBK123 on Saturday December 09, 2023 @10:06AM (#38582473)
My school auto-graded everything (file drop your code to a server by midnight & get a score back). I don't recall a single instance of TA/professor written or verbal feedback on code.
Re:You are never taught how to build quality software by denton-scratch on Saturday December 09, 2023 @01:26PM (#38584298)
Yuh. I guess that's "modern times". I taught in the late eighties, and auto-grading wasn't a thing.

FWIW, I was a "temporary visiting lecturer", i.e. contract fill-in help. I had to write the syllabus (literally), the course plan, and the hand-outs. I also had to write all the tests and the exams; and I had to mark the exams, and then sit on the exam board through the summer holidays. The pretty girls would flutter their eyelashes at me, and ask for leniency. I suspect they took their cue from my louche colleague, who was evidently happy to take sexual advantage of his students in exchange for better marks.

[Edit] I liked this colleague; but I would not have introduced him to my wife or my daughter.

Re:You are never taught how to build quality software by steveBK123 on Saturday December 09, 2023 @02:32PM (#38585073)
Yikes.

Actually not so modern, my college was auto-grading 20 years ago.

Re:You are never taught how to build quality software by denton-scratch on Saturday December 09, 2023 @06:44PM (#38587421)
This was in the 1980's. We're talking 5 1/4" floppies, no internet, 64MB RAM. I had to review my students' work as dead-tree submissions or completed circuits or whatever.

(I certainly wasn't going to take digital submissions from them; that would mean floppy disks, and I regarded any disk that had been touched by any student as if it were infected with plague, because it almost certainly was. All the school systems were always infected).

Re:You are never taught how to build quality software by LargoLasskhyfv on Monday December 11, 2023 @07:30AM (#38600025)
I think you intended to write 64KB?
Re:You are never taught how to build quality software by skeeter2020 on Saturday December 09, 2023 @10:42AM (#38582792)
I've taken course work at 6+ different universities, and in my experience different groups of international students have very different perspectives on what is cheating vs. collaboration. I think it's likely attributed to the western ideal of the individual vs. the collective.
Re:You are never taught how to build quality software by sdiupIGPWEfh on Saturday December 09, 2023 @11:05AM (#38583002)
Also, for whatever my purely anecdotal experience is worth, I'd say the general quality of a professor's teaching was negatively correlated with how hard-ass they were about anti-collaboration policies. That also held true for a couple classes I'd dropped and retaken with a different prof.

One might think I'm just rating easier professors higher, but no, there were definitely enough sub-par teachers with lax policies and forgiving grading who failed to impart what their course was supposed to cover. There were also tough professors I learned a lot from. It's just that I can't recall a single decent instructor among those obsessed with anti-collaboration policies.

Re:You are never taught how to build quality software by WWLink on Saturday December 09, 2023 @01:38AM (#38579261)
That's crazy! My uni had senior design projects, and labs. Shoot, my community college had those, too. Most of our classes had lab projects, and sometimes the lab projects were group projects. We were encouraged to help each other out. I can't imagine a class where collaboration was totally against the rules.

And I mean, that went with everything. In my EE classes we did lots of collaboration. We had study groups, homework groups, etc. It was a lot of fun. I'm sad to hear there are places where they straight up make that against the rules.

My uni also had engineering ethics classes - in my major it was mandatory to take 2 of them. I think it makes sense and should be more common for software engineers. A lot of software is used to operate planes, cars, medical equipment, and nowadays also help make decisions that can have life-threatening consequences.

Re:You are never taught how to build quality software by accurrent on Saturday December 09, 2023 @12:29AM (#38578910)
The university I went to had this. We had to maintain an application that was built by our seniors and then hand that off to the next batch.
Re:You are never taught how to build quality software by akoboldfrying on Saturday December 09, 2023 @06:02AM (#38580794)
I'm impressed by the closeness to reality, but curious how they could assess performance consistently?
Re:You are never taught how to build quality software by tasuki on Sunday December 10, 2023 @02:04PM (#38593908)
"the students are getting worse every year"
Re:You are never taught how to build quality software by skeeter2020 on Saturday December 09, 2023 @10:44AM (#38582804)
This is a really good idea, but I would hate to have to do it... unless I was the senior who got to do the original greenfield development!
Re:You are never taught how to build quality software by robinson7d on Saturday December 09, 2023 @11:29AM (#38583224)
Worst of all: the first seniors get to refactor the professor’s code.
Re:You are never taught how to build quality software by ReactiveJelly on Saturday December 09, 2023 @02:21AM (#38579490)
Me too. All throughout my education, group projects and speeches were both these scary, uncommon things that you could afford to fuck up, and I skated by on individual talent.

Now I'm an adult, several years into my career, wishing that the schools had done a bigger quantity of low-stakes group projects instead. It's a muscle that was never exercised

Re:You are never taught how to build quality software by usrusr on Saturday December 09, 2023 @08:07AM (#38581648)
Not each week, but at my university, they had enough focus on the science part that most semester long solo projects were semester long and solo only in name. Students were assigned some component or incremental stage of some larger project spanning years and multiple PhDs, not some assignment for assignment's sake. That certainly did not make them perfect learning environments because students were left to their own in how they solve cooperation (postgrads running those macro projects might be considered PO, but not technical leads, and just as clueless as the rest) but the "pass on to the next each week" approach would have exactly the same gaps.
Re:You are never taught how to build quality software by spiffytech on Sunday December 10, 2023 @08:41AM (#38591457)
My university did this - each semester's class inherited the code base the last semester had worked on.

As a learning tool it was a disaster. The code had never been touched by a skilled engineer, just years of undergrads pulling all-nighters.

That meant it didn't teach what good maintenance looked like. Students just piled their hacks on top of someone else's hacks so they could hit the deadline.

It wasn't a good way to learn to write quality software (even if reality sometimes looks this way).

It was also the only software engineering course in our CS curriculum.

Re:You are never taught how to build quality software by idlephysicist on Sunday December 10, 2023 @09:11PM (#38596905)
> ... just piled their hacks on top of someone else's hacks so they could hit the deadline.

This sounds oddly familiar... hmm.

Re:You are never taught how to build quality software by jeffreygoesto on Saturday December 09, 2023 @02:03AM (#38579385)
And then there was "Twenty dirty tricks to train software engineers" which I found even more suitable as preparation for working in the industry.
Re:You are never taught how to build quality software by skeeter2020 on Saturday December 09, 2023 @10:35AM (#38582713)
This just isn't realistic in an general CS undergrad though. Students don't have the time or foundations to build a realistic complicated system, and the institutions don't have skills or currency to teach them how. You complain about content being out of date, but the foundations of quality software are not by and large technical nor go out of style. The implementations sure do.

What you're asking for is where vocational (2 year) programs really shine, and one of the few places where I've seen bootcamp graduates have an advantage. Unfortunately both then lack some really valuable underpinnings, example: relational algebra. It seems that once again there is no silver bullet for replacing time and experience.

Re:You are never taught how to build quality software by sam0x17 on Friday December 08, 2023 @04:44PM (#38574925)
Worth mentioning that SE isn't even a thing for the most part at non STEM-specific schools and/or outside very large colleges/universities
Re:You are never taught how to build quality software by bakul on Friday December 08, 2023 @04:41PM (#38574892)
Do SE classes teach debugging skills? I hope they do. So many times I have seen people try random things rather than follow a systematic approach.
Re:You are never taught how to build quality software by manicennui on Friday December 08, 2023 @08:22PM (#38577311)
Trying random things seems to be how a large number of professional software engineers do their jobs. Stack Overflow and now CodeGPT seem to contribute to this.
Re:You are never taught how to build quality software by hinkley on Friday December 08, 2023 @05:08PM (#38575246)
I worked with programmers around my junior year and some of them were in classes I was in. I thought they were all playing one-upsmanship when I heard how little time they were spending on homework. 90 minutes, sometimes an hour.

I was a lot faster than my roommate, and after I turned in my homework I’d help him debug (not solve) his. Then I was helping other people. They really did not get debugging. Definitely felt like a missing class. But it helped me out with mentoring later on. When giving people the answer can get you expelled, you have to get pretty good at asking leading questions.

Then I got a real job, and within a semester I was down below 2 hours. We just needed more practice, and lots of it.

Re:You are never taught how to build quality software by SamuelAdams on Friday December 08, 2023 @07:26PM (#38576836)
This is why internships and real world experience is so important. A course is 3 in class hours a week over 12-14 weeks typically. After homework and assignments it is ultimately maybe 40-80 hours of content.

Which means you learn more in one month of being on a normal, 40 hour workweek job than you have in an entire semester of one course.

Re:You are never taught how to build quality software by astura on Friday December 08, 2023 @08:23PM (#38577317)
>A course is 3 in class hours a week over 12-14 weeks typically. After homework and assignments it is ultimately maybe 40-80 hours of content.

Huh? I was spending 20+ hours a week on assignments alone in upper level software engineering classes.

Also, internships were required.

Re:You are never taught how to build quality software by hinkley on Friday December 08, 2023 @09:37PM (#38577919)
Were you the sort of person who responsibly worked a little bit on the assignments over the course of the week/two weeks, or did you carve out an evening to try to get the whole thing done in one or two sittings?

My group did the latter. I think based on what we know now about interruptions, we were likely getting more done per minute than the responsible kids.

Including reading, we might have been doing 15 hours a week sustained, across 2-3 core classes.

But these were the sort of people who got their homework done so they could go back to the ACM office to work on their computer game, or work out how to squeeze a program we all wanted to use into our meager disk space quota.

Anything more than a B was chasing academia over practical knowledge. B- to C+ was optimal.

Re:You are never taught how to build quality software by cqqxo4zV46cp on Friday December 08, 2023 @08:48PM (#38577515)
Not all hours are created equal. This is on the verge of saying “I took 1,000 breaths on my run, so if I do that again, it’s like going for a run.” Just because you’re measuring something, it doesn’t mean that you’re measuring the right thing. You’re just cargo-culting the “formal education is useless” meme.
Re:You are never taught how to build quality software by gpcz on Friday December 08, 2023 @10:01PM (#38578083)
I believe that software-related college degrees are mainly there to get the horrible first few tens of thousands of lines of code out of people before they go into industry.
Re:You are never taught how to build quality software by trealira on Friday December 08, 2023 @05:26PM (#38575493)
I'm not sure if software engineering classes in particular do, but at my university, they teach C++ in the second required course, and they teach you about using GDB and Valgrind on Linux there. They don't explicitly teach you about systematically debugging, though, beyond knowing how to use those two programs.
Re:You are never taught how to build quality software by zogrodea on Saturday December 09, 2023 @07:01AM (#38581211)
What do you mean by people trying random things? I think that approach (if I understand the term correctly) is more or less what debugging is as a form of scientific investigation.

If you observe a car mechanic trying to find the problem with a car, he would go like: "is this pin faulty? No. Is the combustion engine faulty? No. Are the pedals faulty? Yes." where the mechanic starts with some assumptions and disproves them by testing each of those assumptions until (hopefully) the mechanic finds the cause of the fault and is able to fix it. Similar types of investigations are important to how natural science is done.

So it would be helpful if you can clarify your intended meaning a bit more. Maybe I or someone else would learn from it.

Re:You are never taught how to build quality software by GuB-42 on Saturday December 09, 2023 @07:37AM (#38581464)
But debugging is about "trying out random things". You can call it a Monte-Carlo tree search is you want to sound smart.

And I don't feel is not something that is worth teaching in universities, because it is 90% experience and for me, the point of universities is not to replace experience, just give enough to students so that they are not completely clueless for their first job, the rest will come naturally.

What universities can teach you are the tools that you can use for debugging: debuggers, logging, static and dynamic analyzers, etc..., different classes of bugs: memory errors, the heap, the stack, injection, race conditions, etc..., and testing: branch and line coverage, mocking, fuzzing, etc... How to apply the techniques is down to experience.

In fact, that's what I find most disappointing is not juniors programmers struggling with debugging, this is normal, you need experience to debug efficiently and juniors don't have enough yet. The problem is when seniors are missing entire classes of tools and techniques, as in, they don't even know they exist.

Re:You are never taught how to build quality software by usrusr on Saturday December 09, 2023 @09:43AM (#38582299)
I suspect that GP was talking about some notetaking tactics to systematically narrow things down while throwing educated guesses against the wall. Because so much of debugging is running in circles and trying the same thing again. No amount of notetaking can completely remove that, because mistakes in the observation are just as much an error candidate as the code you observe, I'm convinced that some "almost formalization" routine could help a lot.

Good points on the tool side. While "debugger driven development" is rightfully considered an anti-pattern, the tool-shaming that sometimes emerges from that consideration is a huge mistake.

Re:You are never taught how to build quality software by bakul on Saturday December 09, 2023 @12:42PM (#38583865)
The "Monte-Carlo tree search" space is usually far too large for this to work well!

It is true that initially you may not know where the bug is but you have to collect more evidence if possible, see if you can always cause the bug to manifest itself by some tests, explore it further, the goal being to form a hypothesis as to what the cause may be. Then you test the hypothesis, and if the test fails then you form another hypothesis. If the test succeeds, you refine the hypothesis until you find what is going wrong.

Such hypotheses are not formed randomly. You learn more about what may be the problem by varying external conditions or reading the code or single stepping or setting breakpoints and examining program state, by adding printfs etc. You can also use any help the compiler gives you, or use techniques like binary search through commits to narrow down the amount of code you have to explore. The goal is to form a mental model of the program fragment around where the code might be so that you can reason about how things are going wrong.

Another thing to note is you make the smallest possible change to test a hypothesis, at least if the bug is timing or a concurrency related. Some changes may change timing sufficiently that the bug hides. If the symptom disappears, it doesn't mean you solved the problem -- you must understand why and understand if the symptom disappeared or the bug get fixed. In one case as I fixed secondary bugs, the system stayed up longer and longer. But these are like accessories to the real murderer. You have to stay on the trail until you nail the real killer!

Another way of looking at this: a crime has been committed and since you don't know who the culprit is or where you may find evidence, you disturb the crime scene as little as possible, and restore things in case you have to move something.

But this is not usually what happens. People change things around without clear thinking -- change some code just because they don't like it or they think it can be improved or simplified -- and the symptom disappears and they declare success. Or they form a hypothesis, assume it is right and proceed to make the "fix" and if that doesn't work, they make another similar leap of logic. Or they fix a secondary issue, not the root cause so that the same bug will manifest again in a different place.

Re:You are never taught how to build quality software by sn9 on Saturday December 09, 2023 @07:50PM (#38587867)
You can teach systematic debugging: https://www.debuggingbook.org/
Re:You are never taught how to build quality software by speedgoose on Friday December 08, 2023 @04:39PM (#38574861)
Yes, I learned these things as a computer science student in an engineering school. It wasn’t perfect but a good introduction.
Re:You are never taught how to build quality software by __loam on Friday December 08, 2023 @04:39PM (#38574860)
I took one of these kinds of classes in my masters program this year. They were totally obsessed with UML. It would be nice if these classes could move beyond dogma that is decades old.
Re:You are never taught how to build quality software by petsfed on Friday December 08, 2023 @05:32PM (#38575553)
What would be better? Change tools every 3-5 years like the industry does, so by the time any given instructor actually has a grasp on a particular tool or paradigm, its already obsolete (or at least fallen out of fashion) too?

I'm no fan of UML, but the exercise is to teach students how to plan, how to express that plan, and how to reason about other people's plans. The students will certainly draw a lot of flow diagrams in their careers, and will almost certainly deal with fussy micromanagers who demand their flow diagrams adhere to some arbitrary schema that has only limited impact on the actual quality of their work or documentation.

UML is complete, at least.

Re:You are never taught how to build quality software by failbuffer on Friday December 08, 2023 @06:14PM (#38576050)
A whiteboard is complete. Every other way of diagramming software is deficient. Change my mind. ;-)
Re:You are never taught how to build quality software by master-lincoln on Saturday December 09, 2023 @04:59AM (#38580379)
A whiteboard is just a medium to draw. Uml is a standard that says how to express certain ideas as symbols that can be drawn.

It's not clear to me what your argument is. Is it using whiteboards to draw uml instead of special uml software? If so, be prepared to take much longer to draw the diagram.

Or do you mean uml is deficient compared to free drawing of symbols on a whiteboard without a standard? If so, be prepared that nobody will completely understand your diagram without explanation

Re:You are never taught how to build quality software by OnlyMortal on Saturday December 09, 2023 @03:36PM (#38585793)
UML is just the common parlance so that we all understand what’s represented.

No need for a specific tool - unless you’re doing PowerPoint slides. Visio is good enough in that case if you have Windows.

Re:You are never taught how to build quality software by petsfed on Monday December 11, 2023 @01:42PM (#38603649)
Great! So, do you bring your whiteboard to lecture to turn in, or take a picture of it, or just schedule time with your professor to whiteboard in front of them?

All I'm arguing for here is that UML serves the same purpose as those online homework apps. Correctly formatting your calculus homework to be accepted by that interface is as unrelated to calculus as UML mastery is to effective software design, but it resolves some of the same logistical challenges, while introducing others.

Re:You are never taught how to build quality software by Kamq on Friday December 08, 2023 @06:18PM (#38576109)
> Change tools every 3-5 years like the industry does, so by the time any given instructor actually has a grasp on a particular tool or paradigm, its already obsolete (or at least fallen out of fashion) too?

I mean, yeah. Seeing that wave happen over the course of their college career would probably be better prep for a career than most CS classes.

Re:You are never taught how to build quality software by __loam on Friday December 08, 2023 @10:28PM (#38578255)
I haven't seen a UML diagram once in 7 years of working. The approach presented in the book "a philosophy of Software Design" is much better than the outdated bullshit from the 90s.
Re:You are never taught how to build quality software by rvdginste on Saturday December 09, 2023 @09:54AM (#38582375)
I never got the hate against UML. To me, UML is just a language to communicate about several aspects of a technical design, and to visualize a technical design to make it easier to reason about it.

I did not read the book "a philosophy of software design", but I just scanned the table of contents, and it is not clear to me how "a philosophy of software design" contradicts with using UML.

Are you telling me that in those 7 years of working, you never once used a class diagram? Or a database diagram? Or an activity diagram, deployment diagram, sequence diagram, state diagram?

I find that hard to believe... how do you explain your design to other people in the team? Or do you mean that you do make that kind of diagrams, but just use your own conventions instead of following the UML standard?

Personally, I often use UML diagrams when I am working on a technical design and I use those diagrams to discuss the design with the team. On almost every project I create a class diagram for all entities in the system. I rarely make a database diagram because that often is a direct translation of the class diagram. For some of the more complex flows in the system, I create an activity diagram. For stuff that goes through state transitions, I create state diagrams. In my case, this really helps me to reason about the design and improve the design. And all those diagrams are also very useful to explain the whole software system to people who are new on the project.

That does not mean that my diagrams are always strictly UML-compliant or that I make a diagram for every little piece in the software system. The goal is not to have UML-compliant diagrams, but to efficiently communicate the technical design to other people, and UML is nice for this because it is a standard.

Re:You are never taught how to build quality software by PeterisP on Sunday December 10, 2023 @05:26AM (#38590608)
UML is a tool to do something (namely, formal and detailed specification of systems) that in many places nowadays isn't really done. I think it is totally plausible that over 7 years of professional work OP has never been in a situation where one person has made a detailed design and wants to present it in a formal manner to other people in the team using diagrams (as opposed to answering specific questions of "what does this particular thing in the code do"). If they discuss the process, they tell about the process without using an activity diagram. If someone wants to view a database diagram, they use some tool that autogenerates one from the data, and discards it after viewing instead of attempting to maintain it as a formal documentation.

I agree that all those diagrams are also very useful to explain the whole software system to people who are new on the project, however, that doesn't imply that having this ability is common, many (IMHO most, but I don't have the data) companies intentionally don't put in the time and effort to maintain such up to date diagrams for their systems.

Re:You are never taught how to build quality software by titzer on Friday December 08, 2023 @04:52PM (#38575038)
CMU constantly reevaluates its MSE program with input from many different angles. I've participated here and I think we're trying hard to balance important foundational knowledge with practical skills of the day. I don't think we over-emphasize UML or any one particular silver bullet in our program.
Re:You are never taught how to build quality software by ska on Friday December 08, 2023 @05:09PM (#38575253)
To a first approximation, software developers don't have masters degrees. If you are thinking about changing how an industry does its work, focusing on graduate courses seems counterproductive.
Re:You are never taught how to build quality software by HeyLaughingBoy on Friday December 08, 2023 @05:23PM (#38575450)
I disagree. I have a Master's in Software Engineering and the way to change things is for those with the formal education to try and spread good practices as much as possible in the workplace. Sometimes the main benefit is just knowing that good practices exist so you can seek them out.

The biggest impact I've had at the places I've worked have been about procedures and methodology, not how to use UML or draw a dataflow diagram.

- Have a process around software releases. Doesn't matter what as much as it has to be repeatable.

- Review your designs, review your code, don't do things in isolation.

- Have a known location for documents and project information.

- Be consistent, don't do every project completely differently.

- Get data before you try to fix the problem.

- Learn from your mistakes and adjust your processes to that learning.

- And many more things that sound like common sense (and they are) but you'd be amazed at how even in 2023 many companies are developing software in complete chaos, with no discernible process.

Re:You are never taught how to build quality software by ska on Friday December 08, 2023 @05:37PM (#38575613)
What I'm saying is that if your goal is to introduce more engineering rigor and your plan is for for the tiny percentage of graduate school graduates to percolate these ideas through the industry, it's probably a bad plan and likely to fail.

This was a thread about why software developers don't do engineering like other disciplines. One partial answer is that those other disciplines take it much more seriously at the undergraduate level, at least on average.

Probably the more compelling answer is that the industry doesn't' really want them to for the most part.

> but you'd be amazed at how even in 2023

I really wouldn't.

Re:You are never taught how to build quality software by sheepshear on Friday December 08, 2023 @06:48PM (#38576508)
> Probably the more compelling answer is that the industry doesn't' really want them to for the most part.

This is it. Everyone is making money hand over fist despite not doing it. You might want it, but you don't need it.

Re:You are never taught how to build quality software by HeyLaughingBoy on Saturday December 09, 2023 @01:59PM (#38584675)
Sad but true.
Re:You are never taught how to build quality software by crysin on Friday December 08, 2023 @04:46PM (#38574945)
Got my MS in SE at DePaul University in Chicago. Wrote more UMLs for those classes than I’ve done in 10 years of actual software development.
Re:You are never taught how to build quality software by mrweasel on Saturday December 09, 2023 @09:20AM (#38582112)
While I'm not suggesting that UML is necessarily the solution, I hope it's not, but the observation that so few developers touch anything that just looks like UML is a good indication that a lot of software is in fact NOT designed, it's just sort of hobbled together from a few sketches on a whiteboard.
Re:You are never taught how to build quality software by rvdginste on Saturday December 09, 2023 @10:05AM (#38582466)
I hope that people say they hate UML and then just make UML (class, database, activity, ..) diagrams according to their own conventions, but I am afraid you are right and that a lot of software is just "hobbled together"...
Re:You are never taught how to build quality software by hinkley on Friday December 08, 2023 @05:11PM (#38575288)
Wait. This year?

I haven’t touched UML for ten years.

Re:You are never taught how to build quality software by AnimalMuppet on Friday December 08, 2023 @04:47PM (#38574965)
Here's the thing, though: Of a CS graduating class, 90% of them will work as software engineers, not as computer scientists. (All numbers made up, but I think they're about right.)

We don't need these things to be electives. We don't need them to be a master's program. We need an undergraduate software engineering program, and we need 90% of the people in CS to switch to that program instead.

Re:You are never taught how to build quality software by manicennui on Friday December 08, 2023 @08:24PM (#38577323)
A large number of CS programs are already glorified Java training courses.
Re:You are never taught how to build quality software by whstl on Friday December 08, 2023 @10:51PM (#38578376)
Exactly what I see. I know a few cases of CTOs influencing the curriculum of CS courses, pushing it to be more “market ready”. Which was effectively turning it into a 4 year bootcamp.

Which is a big shame, because it’s very common to see developers who would have benefited from a proper CS curriculum, and have to learn it later in life.

Re:You are never taught how to build quality software by titzer on Friday December 08, 2023 @04:50PM (#38575018)
I agree with you! It's hard to change curricula because there are so many competing interests. CS is an evolving field and things like machine learning have burst onto the stage, clamoring for attention. There is also an age-old debate about whether CS departments are trade schools, math departments, or science. Personally I think software engineering skills are paramount for 90% of graduates. How do we fit this into a full curriculum? What gets the axe? Unclear.
Re:You are never taught how to build quality software by BoiledCabbage on Friday December 08, 2023 @06:28PM (#38576225)
> There is also an age-old debate about whether CS departments are trade schools, math departments, or science. Personally I think software engineering skills are paramount for 90% of graduates.

The question as well is: are Chemical Engineering, Mechanical Engineering, Materials Engineering trade schools?

I think it's a key call out as CS touches on so many things.

There are arguments for it being math, science, engineering, a trade school or a combination of the above.

And then if you separate them out completely you end up with people doing CS being out of touch with what happens in the real world and vice versa.

I think in the end you probably need to have a single overall degree with a specialization in (Programming as Engineering, Programming as Math and Programming as Computer Science,) with lots of overlap in the core.

And then you still can have a both a bootcamp style trade school.

Now all of that said, that still doesn't solve the CS equivalent of "Math for business majors". Or the equivalent of "Programming for Scientists", or the like which is already a really important case to offer. Where you major in Bio/Chem/Other but being able to apply programming to your day job is important. Although that probably sits closer to the Applied Software category that you might find in business school like using spreadsheets, basic command lines, intro to databases or python.

But to your point, how rarely software engineering is being taught is a huge problem. Even if only 30% of degree holders took classes in it, it would be huge in helping spread best practices.

Re:You are never taught how to build quality software by stephendause on Friday December 08, 2023 @07:01PM (#38576631)
I don't really think that software engineering is a trade per se. I think it is a much more creative activity that requires a lot more baseline knowledge. I think an automotive engineer is to a mechanic as a software engineer is to an IT administrator. There is still a fair amount of creativity and knowledge required for being a mechanic or IT admin, but I don't think it's nearly the same amount.

Software engineering is interesting, though, because it does not require as much formal education as many other engineering fields to get a job. I think this is in part because it is very economically valuable (in the US at least) and because the only tool you need is a computer with an Internet connection.

With all of that said, I think SWE is probably closer to a trade than other engineering disciplines, but not by all that much.

Re:You are never taught how to build quality software by 3abiton on Friday December 08, 2023 @06:14PM (#38576061)
What does research in this field look like?
Re:You are never taught how to build quality software by stephendause on Friday December 08, 2023 @06:53PM (#38576567)
So I have not done research any software engineering field and have not read all that much either. One example that comes to mind from one of my courses that I took in software engineering is research around mutation-based testing. That form of testing is where you generate random variants of your test by doing things like deleting a statement, adding a statement, changing a less than sign to a greater than sign, etc. Then you check to see that at least one of your tests fails for each variant. If it does not, you either add a test or mark that variant as being effectively the same program. I forget what the term is for it. At any rate, I think there is still research being done on this topic, for example how to effectively generate programs that do not generate as many functionally identical programs. Software testing in general is a big part of software engineering, and I think there is still a fair amount of research that could be done about it.

In my opinion, the intersection of cognitive psychology and software engineering is also ripe for a lot of research. I feel like we as software engineers have a lot of intuitions about how to be productive, but I would love to see various things that could indicate productivity measured in a controlled lab setting.

Re:You are never taught how to build quality software by PeterisP on Sunday December 10, 2023 @05:30AM (#38590623)
It looks like you're talking about fuzzing, which has applications in both reliability and security testing.
Re:You are never taught how to build quality software by stephendause on Sunday December 10, 2023 @10:10AM (#38591989)
No, mutation-based testing is different. Fuzzing varies the input to the program. Mutation testing varies the program itself as a means of testing the quality of the tests.

https://en.m.wikipedia.org/wiki/Mutation_testing

Re:You are never taught how to build quality software by titzer on Friday December 08, 2023 @07:36PM (#38576925)
Testing, fuzzing, and verification are all pretty hot SE topics now, at least in my department at CMU. All of those have some element of program analysis, both static and dynamic, so there's potentially deep PL stuff, which is core CS. There's aspects to SE that are not just that, of course, which are studying social processes, management styles and practices, software architectures, design patterns, API design, etc.
Re:You are never taught how to build quality software by gmadsen on Friday December 08, 2023 @08:04PM (#38577151)
I would assume something like this? https://dspace.mit.edu/handle/1721.1/79551
Re:You are never taught how to build quality software by doubloon on Sunday December 10, 2023 @12:41AM (#38589420)
i feel like the Toyota Production System could be applied, I know they used some of it at Amazon but in general I don't hear much about it in 'software spaces'. It's been studied a huge amount in quality theory but... seems like theres not a lot of crossover between manufacturing and software.

like the idea of a Poke Yoke could cover all manner of automated analysis software tools. from the -Wall in gcc to, Rust borrow checker, basically just Poke Yoke.

Re:You are never taught how to build quality software by fudged71 on Friday December 08, 2023 @07:03PM (#38576643)
I chose software engineering. 3 years into the program the head of the department made a speech at an event to the effect of "Software hasn't changed in the last 10 years". It instantly devalued the entire program for me.
Re:You are never taught how to build quality software by anacrolix on Friday December 08, 2023 @07:09PM (#38576706)
I have news for you... He's not wrong. The porcelain is different, but the same methodologies and processes are in place. The biggest change recently is distributed (mostly ignored) version control, that's 20 years old, and continuous integration/development (probably also around 20 years old, but only catching on in the last 10-15 years).

Computer science has changed more, there are lots of developments in the last 5-10 years.

Re:You are never taught how to build quality software by _a_a_a_ on Friday December 08, 2023 @08:30PM (#38577368)
> there are lots of developments in the last 5-10 years

So tell us what these are so I/we can learn from you

Re:You are never taught how to build quality software by bombcar on Friday December 08, 2023 @08:07PM (#38577177)
The biggest change I’ve seen in 20 years is that things like DVCS and actual good tool chains for languages people actually use are available and in use.
Re:You are never taught how to build quality software by Solvency on Saturday December 09, 2023 @10:30AM (#38582676)
So you're not a JS developer. Got it.
Re:You are never taught how to build quality software by nick__m on Saturday December 09, 2023 @11:03AM (#38582985)
your talking about the porcelain of software engineering, is talking about the core of the profession...
Re:You are never taught how to build quality software by PeterisP on Sunday December 10, 2023 @05:18AM (#38590576)
If you switch to a different framework that does the same things slightly differently and makes something more convenient, and do that three times over the years, that's still perfectly consistent with "Software hasn't changed in the last 10 years" - it's simply not a meaningful change, nor would be switching to a different programming language.
Re:You are never taught how to build quality software by cqqxo4zV46cp on Friday December 08, 2023 @08:46PM (#38577489)
Hah. This is classic knowitall CS/SE student hubris. They were almost certainly right.
Re:You are never taught how to build quality software by corethree on Friday December 08, 2023 @09:45PM (#38577974)
I know where you come from and I know where the people who are responding to you come from too.

Software has changed in the last 10 years, but a lot of it has changed superficially. A green software engineer most likely won't be able to tell the difference between a superficial change and a fundamental change.

It has a lot to do with the topic of this thread. "Quality Software" It's a loaded term. There's no formal definition, everyone has their own opinion on it and even then these people with "opinions" can't even directly pinpoint what it is. So the whole industry just builds abstraction after abstraction without knowing whether the current abstraction is actually close to "quality" then the previous abstraction. It all starts out with someone feeling annoyed, then they decide to make a new thingie or library and then they find out that this new thing has new annoyances and the whole thing moves in a great flat circle.

That's the story of the entire industry just endless horizontal progress without ever knowing if we're getting better. A lot of the times we've gotten worse.

That being said there have been fundamental changes. Machine learning. This change is fundamental. But most people aren't referring to that here.

Re:You are never taught how to build quality software by davidgay on Friday December 08, 2023 @10:16PM (#38578173)
> "Software hasn't changed in the last 10 years". It instantly devalued the entire program for me.

As opposed to maths, physics, philosophy, civil engineering, classical studies which have gone through complete revolutions in their topics, problems and study methods in the last 10 years?

Re:You are never taught how to build quality software by maxFlow on Friday December 08, 2023 @08:04PM (#38577148)
Thanks for sharing, I'm reviewing the curriculum for the program [0] and it looks great.

Do you know if any of these courses has been opened sourced? It would be great to have access to part of the material.

[0]: https://www.ece.cmu.edu/academics/ms-se/index.html.

Re:You are never taught how to build quality software by zogrodea on Saturday December 09, 2023 @07:14AM (#38581308)
Not the person you replied to, but I am aware that a functional programming course by CMU has had lectures (not exercises or content) freely available as YouTube recordings. https://brandonspark.github.io/150/
Re:You are never taught how to build quality software by foobiekr on Friday December 08, 2023 @09:19PM (#38577768)
For years a friend tried to get his department (where he worked as a lecturer) to add a software engineering course where the basic syllabus was to (1) receive a TOI from the last semester and the code base, (2) implement some new features in the code base, (3) deploy and operate the code for awhile, and (4) produce a TOI for the next semester.

The code base was for a simple service that basically provided virus/malware scanning and included the malware scanner and signatures (this ensured there would never be an end to the work - there's always more signatures to add, more features, etc.)

I thought this was a fantastic idea and its a pity he never convinced them. That was more than fifteen years ago, and in his plan it would have just run forever.

Re:You are never taught how to build quality software by AlphaWeaver on Friday December 08, 2023 @10:43PM (#38578337)
In my university, (US, state school,) we had a software engineering course exactly like this. It was great in theory, but in practice, the experience was rushed, the codebase was poor quality, (layers upon layers of nothing features with varying code quality,) and the background knowledge was completely ignored. The application we had to work on was a Tomcat Java Web application with an Angular frontend, when neither of those technologies were taught in any other classes (including electives.)

This approach to education can work, but I think simulating/mocking portions of this would have been more helpful (it could've been a teacher/TA managed codebase we started with rather than the monstrosity passed between generations of students who were inexperienced.)

Re:You are never taught how to build quality software by azemetre on Friday December 08, 2023 @11:10PM (#38578481)
I think like your example where things go wrong is the most realistic exposure to programming you can give someone.

Learning why things are bad, and why it's bad to experience them offers a new level of appreciation or better ways to argue why certain things should be done.

Re:You are never taught how to build quality software by Mtinie on Saturday December 09, 2023 @12:42AM (#38578977)
Am I understanding correctly that your concern was that the course is too close to reality to be useful?
Re:You are never taught how to build quality software by skeeter2020 on Saturday December 09, 2023 @10:46AM (#38582821)
You needed to partner with the business school to get a future MBA to convince the faculty (executives) the biggest return (profitability) was a total re-write!
Re:You are never taught how to build quality software by elptacek on Saturday December 09, 2023 @04:41PM (#38586356)
I had a single phone interview with someone at Northwestern (a long time ago) where they were looking for someone to build a pen of developers to "partner" with MBA students to turn ideas into apps. I laughed so hard my sides hurt.
Re:You are never taught how to build quality software by adastra22 on Saturday December 09, 2023 @02:53AM (#38579684)
That sounds like a very realistic classroom experience. I think you missed the point?
Re:You are never taught how to build quality software by rjzzleep on Friday December 08, 2023 @09:36PM (#38577910)
The thing is for academics quality software sometimes isn't actually quality software.

My experience has been that people who's first jobs were in companies with quality software or who's job included reading through other people's quality software learn to write good software, the other ones learn whatever they saw in the environments they worked in.

Re:You are never taught how to build quality software by maxwelljoslyn on Friday December 08, 2023 @09:20PM (#38577780)
That sounds like an excellent way to do practice that directly mirrors real-world SWE, while still cutting it down to an appropriate size for a pedagogical environment. What a good idea.
Re:You are never taught how to build quality software by steveBK123 on Friday December 08, 2023 @10:02PM (#38578088)
I went to a STEM school and exactly 0 of the professors had been in industry ever or at least in the last 30 years. The only guy with some experience was an underpaid lecturer. He was also the only good lecturer.

A lot of professors just want to do research and mentor students onto the PHD track to self replicate. My mandated faculty advisor was basically like "go to the career center" when I asked about, you know, getting a job of some sort with my degree.

So yes, it is a real problem. CMU may stand out by actually having courses in the space, but it is not the norm by any means.

Re:You are never taught how to build quality software by mwcremer on Friday December 08, 2023 @09:27PM (#38577834)
TOI?
Re:You are never taught how to build quality software by dmux on Friday December 08, 2023 @09:47PM (#38577989)
I’m guessing Transfer of Information.
Re:You are never taught how to build quality software by podviaznikov on Friday December 08, 2023 @10:47PM (#38578354)
100% this. My master program was for software engineering not CS. 15 years ago in Ukraine.

We have that. Maybe not enough. But it's definitely not a new thing.

Re:You are never taught how to build quality software by bhk on Friday December 08, 2023 @11:09PM (#38578475)
How many CS or CE grads from CMU are actually exposed to all of these topics?

Surely, "it is taught", but to whom and how widely?

Re:You are never taught how to build quality software by tdeck on Saturday December 09, 2023 @12:08AM (#38578796)
It seems to vary a lot from school to school. At my university (2010-2014) we were writing unit tests from the first CS class. I can't say we got much instruction on how to structure more complex applications in order to make them testable, however. Things like dependency injection and non-trivial mocking have to be learned on the job, which is a real shame. Even within the industry skills and approaches to designing code for tests feel very heterogeneous.
Re:You are never taught how to build quality software by prendino on Saturday December 09, 2023 @05:15AM (#38580496)
We were taught these things at the Bachelor's program in CS I went to in Sweden. At my first job I then slipped on a banana peel into a de facto tech lead position within a year, and I don't think it was due to my inherent greatness but rather that I was taught software engineering and the other colleagues at my level had not.

Ironically, the software engineering courses were the only ones I disliked while a student. An entire course in design patterns where strict adherence to UML was enforced felt a bit archaic. We had a course in software QA which mostly consisted of learning TDD and the standard tooling in the Java ecosystem, with some cursory walkthroughs of other types of QA like static analysis, fuzzing and performance testing. At the time it felt so boring, I liked to actually build stuff! A couple of years later I joined a team with very competent, CS-educated developers tasked to set up a workflow and all the tooling for testing software with high security requirements. They were dumbfounded when I knew what all the stuff they were tasked to do was!

Re:You are never taught how to build quality software by rockwotj on Saturday December 09, 2023 @09:31AM (#38582204)
Rose Hulman is an undergraduate teaching school that also has a distinction between a Software Engineering Degree and a Computer Science Degree. The Software Engineering degree takes a few less math courses and instead takes classes on QA/Testing, Project Management, and Formal Methods
Re:You are never taught how to build quality software by skeeter2020 on Saturday December 09, 2023 @10:49AM (#38582845)
SE is often taught out of the engineering school while CS the faculty of science, which in my experience makes a huge difference.
Re:You are never taught how to build quality software by rockwotj on Saturday December 09, 2023 @05:44PM (#38586903)
It’s all one department at Rose (my alma mater). The school is a teaching school (meaning research isn’t the faculty’s primary focus)
Re:You are never taught how to build quality software by valand on Saturday December 09, 2023 @09:36AM (#38582244)
It was a mandatory class too in the univ I attended.

What was not taught about were the techniques of QA's, the variety of tests and design pattern enforcements that would reduce QA cost by tenfolds.

Re:You are never taught how to build quality software by nerdyadventurer on Saturday December 16, 2023 @06:41AM (#38663541)
Any plan to make it available to public, MOOC, lecture series etc?