News for hackers. Stuff that matters.
Re:The Missing Semester of CS Education by austinl on Friday May 14, 2021 @11:47AM (#27155501)
I was happy to see my alma mater introduce a class called "CS 193 Tools" that is taken by all freshmen. I never took it, but it started when I was a junior or so (~2014). A friend of mine pushed to create the course and helped TA it for a few semesters. Here's the course description:

Learning Outcomes:

1. Understand Unix/Linux commands for navigating directories and files and manipulating files and folders.

2. Understand terminal commands for searching and input/output redirection.

3. Understand shells such as sh, csh, ksh, tcsh, bash, zsh.

4. Understand debugging via print statements and general debugger concepts.

5. Understand version control via Git and Github, source control, workflow, commit, collaboration, pull, push, create and pushing a new repository, cloning, branches, merging, and conflicts.

6. Understand vim including mouseless navigation, normal/insert mode, copy/paste, search/replace, and saving/quitting.

https://selfservice.mypurdue.purdue.edu/prod/bwckctlg.p_disp...

Re:The Missing Semester of CS Education by MaxBarraclough on Friday May 14, 2021 @12:40PM (#27156292)
I broadly agree with having courses to teach the topics listed, but:

> Understand shells such as sh, csh, ksh, tcsh, bash, zsh.

I was taught csh as an undergrad. A complete waste of time, in my opinion, akin to teaching BCPL rather than C. Just teach bash, and perhaps sh. To my knowledge, just about nobody writes scripts in csh, ksh, tcsh, or zsh. You use bash for portability across Unix systems, sh for even better portability across Unix systems, or you use a modern scripting language like Python3.

Students may benefit from learning zsh for interactive use, but I don't think there's enough benefit there to justify spending time teaching it.

Re:The Missing Semester of CS Education by ufo on Friday May 14, 2021 @01:10PM (#27156729)
If I had to guess, putting all those shells in the same basket sounds like they're focusing on the universal functionality. Such as pipes and redirection.
Re:The Missing Semester of CS Education by narwally on Friday May 14, 2021 @01:19PM (#27156893)
That's what I would imagine. I think think shells other than sh or bash are listed more to make students aware of their existence and to reinforce that, in unix, even something as seemingly fundamental as your shell is a self contained tool that can be swapped out for a variety of alternatives.
Re:The Missing Semester of CS Education by jyounker on Tuesday May 18, 2021 @12:44PM (#27197362)
To extend to your comment, lightly examining a number of shells could also serve a few additional pedagogical functions: * Showing students that there are many shells that they could encounter. * Highlighting the differences. * Showing that there is a long history. * Showing that the history is still alive. * Showing that there is no one right way.
Re:The Missing Semester of CS Education by BeetleB on Friday May 14, 2021 @05:51PM (#27160087)
Lots of companies haven't moved on.

In my company the default shell in the UNIX accounts is csh, and tcsh is recommended as a "nicer" csh. They do have bash if you want to use it, but they only "support" csh and tcsh. As a result, many important scripts by engineers are written in csh/tcsh. People who've never used bash. Very annoying, as for those who choose to use bash are often told they have to go into tcsh to get a given program to work, etc.

Re:The Missing Semester of CS Education by pfranz on Friday May 14, 2021 @01:25PM (#27157016)
Most of the places I've ended up working used tcsh (holdovers from Unix days). Both interactively and a large pile of small scripts. A few of us who were willing to troubleshoot ourselves would use Bash, Fish, or another shell interactively. None of the libraries were set up for Bash/sh so it was difficult to write scripts that weren't for personal use. It was an April Fool's joke that we were moving to Bash and I was bummed. I spent some personal time making our libraries agnostic (a bulk of the code was Python, but environment stuff shelled out or inherited from the tcsh scripts).

I think it's worth focusing on Bash, but at least contrasting it with csh and pointing out the lineage and other options. Perhaps spending some time writing some scripts in sh since there is a large install base of outdated or missing Bash.

I have no idea what schools think about this. I generally prefer deep knowledge in a single language, but there is value in learning a bunch of languages so picking up yet another new language is trivial. When I've spent too much time in one specific language I've found it harder to switch around.

Re:The Missing Semester of CS Education by jandrese on Friday May 14, 2021 @02:18PM (#27157789)
I preferred Zsh for a long time because it was much nicer to program in than Bash. But Bash has since then picked up all of the Zsh features I cared about and is installed by default most of the time so I switched.
Re:The Missing Semester of CS Education by bootwoot on Friday May 14, 2021 @01:08PM (#27156701)
I'm guessing the csh curriculum was just old. csh was developed as an improvement to sh (just like bash) that some circles coalesced around before everyone chose bash. I doubt it was that they saw everyone using today and said, fuck that, let's use csh.

My company still does intro lessons with ksh because it's set as the default shell on all of our servers.

Re:The Missing Semester of CS Education by devoutsalsa on Friday May 14, 2021 @11:58AM (#27155662)
Learning the basics of shell scripting has been super valuable to my career.

The only time I found it to be a liability was when I was pair programming. My pair couldn't read a shell script to save their life & had very little interest in learning. When I tried explaining it line by line, they stopped wanting to pair because I was apparently making them feel stupid. They actually reported me to management for being an arrogant mansplainer. I'm pretty sure that was the beginning of the company deciding I was not a culture fit :P I had to learn how to, and how not to, work with someone less experienced in a certain topic after that.

Re:The Missing Semester of CS Education by burnished on Friday May 14, 2021 @02:59PM (#27158354)
Could be more about how you communicate rather than what you are communicating. I love it when people explain difficult or unknown things to me, but if some one sounds like I'm burdening them or that they are incredibly displeased then it becomes a different experience. I'm aware that the other person in your story could easily be the 'difficult one', but your post doesn't make it clear that you understand the way you communicate can be super important too. Not trying to accuse you of anything, just want to point out a super easy avenue of mistake.
Re:The Missing Semester of CS Education by HarryHirsch on Friday May 14, 2021 @02:19PM (#27157812)
There was that incident when my students marched off to the Dean, complaining that I learned them too much. The kids have been screwed over by persistent underfunding of public schools and insist that they continue to be screwed further - what they want isn't an education but a degree certificate.

Yes, cultural fit is real, and it isn't always about white men drinking craft beer.

Re:The Missing Semester of CS Education by ecshafer on Friday May 14, 2021 @12:37PM (#27156243)
This seems like its more of a hacker vs non-hacker mindset. Those of us that grew up with messing with computers and such daily, if we didn't know what the script did, would probably really appreciate someone giving an in depth explanation of the script line by line. People that want to just be hand held, and are not interested in how things actually work, wouldn't appreciate that. Sounds like the pair programmer was the latter.
Re:The Missing Semester of CS Education by tomcam on Friday May 14, 2021 @02:08PM (#27157635)
I would love to hear how that resolved ultimately. And yet I am also a little bit scared as well. I feel like there are at least two or three stories simmering under the surface of that incident.
Re:The Missing Semester of CS Education by devoutsalsa on Friday May 14, 2021 @02:32PM (#27157993)
Like any story like this, you needed to be there to get the context.

One of the downsides of pair programming is that it's great when you both have complimentary skillsets. It's less productive when no one knows what the heck is going on. In this case, the task was to benchmark how many writes one could make to Kafka using our monolith. They wanted to see at least 10K/writes per second. The only problem was no one knew how to use Kafka (well), including the person who was asking for it.

So I wrote some gnarly looking Bash code to fire up Kafka, Zookeeper, the app, etc. Some people wanted to use Docker, but I didn't see the value in using a slower VM w/ limited resources. I wanted to use as much CPU as possible. My pair didn't know Docker, Bash, or Kafka. I lost my pair somewhere around talking about having to clean up zombie processes.

It went downhill from there.

Re:The Missing Semester of CS Education by tomcam on Friday May 14, 2021 @04:06PM (#27159117)
Thanks for sharing. Man I always love working with people smarter than I am, although I always feel a little bad for them. But it’s like leaving money on the table to not learn these things.
Re:The Missing Semester of CS Education by boojing on Friday May 14, 2021 @12:31PM (#27156157)
Can you opt out of the course if you manage to enter a valid tar command on your first try?
Re:The Missing Semester of CS Education by narwally on Friday May 14, 2021 @01:20PM (#27156911)
tar --help
Re:The Missing Semester of CS Education by blaser-waffle on Friday May 14, 2021 @03:10PM (#27158480)
man tar
Re:The Missing Semester of CS Education by SAI_Peregrinus on Monday May 17, 2021 @09:26AM (#27183114)
That's not a `tar` command, that's a `man` command about tar.
Re:The Missing Semester of CS Education by FillardMillmore on Friday May 14, 2021 @12:58PM (#27156553)
Perhaps they can opt out if they know how to fork bomb without looking it up
Re:The Missing Semester of CS Education by gregmac on Friday May 14, 2021 @01:51PM (#27157398)
I've heard some courses require submitting assignments via git, and that's something that makes a lot of sense. I wish everywhere would do that.

Even if (at first) students just do a single `git add --all && git commit -m "finished project"` it goes a long way to just exposing people to the concepts. Provided the infrastructure is in place (eg GitHub or gitlab instance), it really isn't much different than dealing with a zip file, but provides 10x the educational value.

Bonus points to the prof that builds assignments that involve git branching from an earlier assignment.

Re:The Missing Semester of CS Education by jimbob45 on Friday May 14, 2021 @12:32PM (#27156177)
That class would have been super useful. Would’ve been good to add Make or CMake to that list too.
Re:The Missing Semester of CS Education by MaxBarraclough on Friday May 14, 2021 @12:42PM (#27156326)
I agree that build systems like CMake should be taught, but I'd put them in a course on C/C++ programming, not on a general course about Unix and the command line.

Builds work quite different in Java, for instance.

Re:The Missing Semester of CS Education by mxcrossr on Friday May 14, 2021 @01:40PM (#27157240)
The trick is to find a CS professor who actually knows how to write makefiles instead of just copying and pasting his last one!
Re:The Missing Semester of CS Education by kritr on Friday May 14, 2021 @08:43PM (#27161186)
So I actually took this class in 2018. Unfortunately I don’t think it’s good enough just yet.

CS 193 was a very low effort class (1cr), where you could follow the command by command instructions and perform all the tasks necessary to pass.

Unfortunately tools like git, vim, and shells all possess philosophies and concepts that are very hard to grasp without context, and constant use.

We were on multiple occasions told the mantra, add-commit-push, which I will say is enough for basic git usage, but since pretty much none of the subsequent classes used git to any capacity, I would assume many students lost all familiarity within the next semester (Makefiles that automatically git added and pushed code were used for submitting code).

I also think most people were hindered by vim, lacking sufficient instruction but still being presented it as the primary option.

I think if you’re going to implement a similar class / program, the tools really have to have uptake beyond a single course.

Sidenote, the different shell types weren’t covered in my semester, we just used bash / dash.

Re:The Missing Semester of CS Education by austinl on Saturday May 15, 2021 @01:39PM (#27167247)
That’s interesting (and definitely unsurprising) to hear! I think freshman year might be a bit too early to appreciate the curriculum, before students have seen how ubiquitous some of these tools are in engineering jobs. Maybe it would be better spread out over time.

I think the trade-off on timing here is with internships during the summer after freshman year. I think you’ll have a much better chance of success if you’re at least roughly familiar with these workflows vs. interns who are totally unfamiliar with version control systems, for example. And perhaps that’s all the course is meant to accomplish at 1cr.

Re:The Missing Semester of CS Education by arduinomancer on Friday May 14, 2021 @12:55PM (#27156522)
Unpopular opinion but I as a student wouldn’t be interested in a course like that since everything listed is easily Google-able.

IMO it’s better to focus on fundamentals like math/algorithms that can be applied in multiple areas rather than specific tools.

Re:The Missing Semester of CS Education by quesera on Friday May 14, 2021 @01:21PM (#27156941)
> everything listed is easily Google-able

Everything in a CS curriculum is easily Google-able.

Being functionally illiterate at the command line is harmful for productivity, so I think it's deserving of some in-class attention.

Re:The Missing Semester of CS Education by HarryHirsch on Friday May 14, 2021 @01:46PM (#27157330)
To become a mature mathematician you need interaction with other mathematicians. To become a passable bash programmer a book and a jar of aspirin is enough.
Re:The Missing Semester of CS Education by dfabulich on Friday May 14, 2021 @02:40PM (#27158120)
I think that's right if you already know how to use a shell, but if you don't yet know how to use any shell, or even know what a shell is, the bash book is not going to do you any favors.

Imagine handing this to a person who's never heard of a shell, doesn't know how to `cd` or `ls`:

https://www.gnu.org/software/bash/manual/html_node/What-is-a...

> 1.2 What is a shell?

> At its base, a shell is simply a macro processor that executes commands. The term macro processor means functionality where text and symbols are expanded to create larger expressions.

> A Unix shell is both a command interpreter and a programming language. As a command interpreter, the shell provides the user interface to the rich set of GNU utilities. The programming language features allow these utilities to be combined. Files containing commands can be created, and become commands themselves. These new commands have the same status as system commands in directories such as /bin, allowing users or groups to establish custom environments to automate their common tasks.

"Macro processor?" "Expressions?" "Unix?" "Command interpreter?" "GNU utilities?" "Directories?" (you mean folders?) "/bin?" "Environments?"

Re:The Missing Semester of CS Education by HarryHirsch on Friday May 14, 2021 @05:59PM (#27160149)
In school we were programming in Turbo-Pascal, so I had some exposure and then took a week-long Unix evening course at my university's computer center. So that was helpful. But you are right, for someone who hasn't done much hands-on computering a semester-long introductory lab to get everyone to the same speed.

My undergraduate advisor said since the second-semester lab was the basic lab, the first-semester lab had to be the basement lab.

Re:The Missing Semester of CS Education by millimeterman on Friday May 14, 2021 @02:00PM (#27157523)
> Everything in a CS curriculum is easily Google-able.

Not in my experience, it isn't. Maybe for the first two years of undergrad but after that I've found that Google rapidly becomes useless.

Re:The Missing Semester of CS Education by dls2016 on Friday May 14, 2021 @02:14PM (#27157740)
I taught intro programming twice this year. Having never taught a CS class at all (I am a math phd)... I would just like to point out that at least at "satellite state U", most students are not like you.

The class almost went off the rails the first time before I realized half the students didn't know what a text editor or shell was. I ended up writing a document at a slightly lower level than this "missing semester" course (though taking some inspiration from it).

If I teach the course again, I plan to do one week shell bootcamp with "get to know your system" exercises spread throughout.

Re:The Missing Semester of CS Education by ghaff on Friday May 14, 2021 @02:17PM (#27157776)
I wouldn't make it a degree requirement. A lot of student may already know a lot of it or may be fine with picking it up on the side. But I don't really have an issue with presenting everything you need to know about programming 101 for people entering CS who don't have a lot of experience with using computers under their belt. If someone really doesn't have experience, they also don't really know what they don't know.
Re:The Missing Semester of CS Education by Izkata on Saturday May 15, 2021 @04:50AM (#27163547)
> since everything listed is easily Google-able.

There are four quadrants of knowledge:

1) What you know you know

2) What you know you don't know

3) What you don't know you know

4) What you don't know you don't know

College is in large part about covering (4) and turning it into (2) or (1). You're describing turning (2) into (1) - you need to know what to Google in the first place.

Re:The Missing Semester of CS Education by sjg007 on Friday May 14, 2021 @12:58PM (#27156558)
It's worth having it in a central place especially with respect to tools needed to meet academic objectives.
Re:The Missing Semester of CS Education by HarryHirsch on Friday May 14, 2021 @01:51PM (#27157400)
I think it's more suited for informal study groups. To learn glue scripting and debugging you need playtime. What happened to MIT, students are too overworked to play?
Re:The Missing Semester of CS Education by hnxs on Friday May 14, 2021 @01:38PM (#27157219)
Fundamentals and algorithms are just as Google-able...
Re:The Missing Semester of CS Education by 908B64B197 on Friday May 14, 2021 @03:57PM (#27159028)
I've seen it in Software Engineering programs.

The good ones are really CS + one extra year worth of projects and practical coursework, like learning what Agile is, Source Control, Build Systems and so on.

Re:The Missing Semester of CS Education by toomanybeersies on Friday May 14, 2021 @02:47PM (#27158217)
Maybe it's my smug sense of intellectual superiority, but if I could go back and do university again, I'd still rather learn language theory and discrete algebra than how to use vim and tmux (neither of which I use more than once a month).

I didn't study Computer Science to learn how to write bash scripts.

Re:The Missing Semester of CS Education by sokoloff on Friday May 14, 2021 @02:34PM (#27158024)
All freshmen? Or only CS candidates? If it's the former, that seems like a giant waste for most of the people in the class and requiring any additional basic sciences or math course would likely be more beneficial.