News for hackers. Stuff that matters.
Re:The true cost of linked lists by Jtsummers on Monday June 06, 2022 @12:06PM (#31642238)
This is CS 101 material here, if it's obscure to people in the software industry, that speaks poorly of the industry and who it hires.
Re:The true cost of linked lists by sitkack on Monday June 06, 2022 @03:08PM (#31644530)
It isn't CS 101. You are being overly dismissive and even CS people from top schools get this stuff wrong.

The courses that introduce big-O are often the weeder courses, they don't aim to education, they aim to flunk out the people that might be hard to teach so that CS departments can gate keep.

When you have top CS researchers having to give talks to remind people that layout matters more than instruction selection, the CS as a whole has focused on the wrong things.

https://www.youtube.com/watch?v=7g1Acy5eGbE

Figure how to build people up, not tear them down.

Re:The true cost of linked lists by funcDropShadow on Tuesday June 07, 2022 @03:37AM (#31650985)
> The courses that introduce big-O are often the weeder courses, they don't aim to education, they aim to flunk out the people that might be hard to teach so that CS departments can gate keep.

That is an often re-iterated conspiracy theory. In practice nothing could be further from the truth. Professors have nothing to gain from weeding out students. They have to gain by ensuring a certain standard. By the way it is also better for a student to encounter the difficult parts of their subject as early as possible, so that they can decide whether they have chosen their subject wisely. On the other hand, not failing students on fundamentals means complicating advanced subjects even further --- for everybody.

At some point in life students have to accept that neither their time in university nor their time in the industry will consist only of externally motivating tiny bites of tasks that are awesome. In order to understand complicated matters, you have to put in the work. Spending hours in the gym is also quite boring, but most people accepts that it is necessary for certain results.

I've been involved with undergrad teaching in a University. And the amount of time we spend on finding ways to teach and test better was way more than I could have expected as a student myself. On the other hand I couldn't have imagined the arrogance and sometimes stupidity of first year student claiming to know already what they will need in there career and what not.

Re:The true cost of linked lists by sitkack on Tuesday June 07, 2022 @09:42AM (#31654180)
> That is an often re-iterated conspiracy theory. In practice nothing could be further from the truth. Professors have nothing to gain from weeding out students. They have to gain by ensuring a certain standard. By the way it is also better for a student to encounter the difficult parts of their subject as early as possible, so that they can decide whether they have chosen their subject wisely. On the other hand, not failing students on fundamentals means complicating advanced subjects even further --- for everybody.

So much to unpack there. Some rhetorical hyperbole, other false dichotomy and we are both arguing from anecdote.

Weeder courses exist and as you even admit, they aren't solely meant to educate. That is the point. Anything that is designed to test students resolve as well as not waste professors time is not designed to educate, it is designed to reduce the size and shape of the student population. I applaud that CS departments are adding more and more courses for non-majors. But lets look at the syllabus for a 10 week quarter for the first UW CS course, Foundations of Computing [1] which also expects the students to layout their homework (proofs) in LaTex. Jesus. This is mostly a hazing ritual. In my 3 minute sampling of Reddit, most CS students rank 311 as the hardest course in the major and it is the first. [2]

> At some point in life students have to accept that neither their time in university nor their time in the industry will consist only of externally motivating tiny bites of tasks that are awesome.

I never said anything of the sort, you putting words in my mouth.

[1] https://courses.cs.washington.edu/courses/cse311/21sp/

[2] https://www.reddit.com/r/udub/comments/cdb5kp/cse_311_cse_33...

Re:The true cost of linked lists by Jtsummers on Tuesday June 07, 2022 @10:47AM (#31655145)
> But lets look at the syllabus for a 10 week quarter for the first UW CS course, Foundations of Computing [1] which also expects the students to layout their homework (proofs) in LaTex.

Your argument might make more sense if 311 were the first CS course, but it's not. You can easily verify that by looking at the course listings which reveals it has a prereq, CSE143, which has a prereq of CSE142. So short of skipping those, it's the third course at the earliest.

https://www.cs.washington.edu/education/courses

Re:The true cost of linked lists by sitkack on Wednesday June 08, 2022 @01:11PM (#31670565)
You are being overly pedantic and arguing for the sake of arguing. The rhetorical language you are using "might make more sense" and "easily verify" is demeaning and insulting and doesn't add to the discussion.

311 is the first course of the major and is also by the sample of folks in the reddit discussion also the hardest, covering the most advanced material in the shortest amount of time. It is a weeder course for the major. The 100 level classes are open to everyone.

Re:The true cost of linked lists by jcranberry on Monday June 06, 2022 @04:18PM (#31645625)
After an introductory programming course, the next course is data structures which will introduce you to Big O.
Re:The true cost of linked lists by tadfisher on Monday June 06, 2022 @01:32PM (#31643283)
Weird, we didn't get into complexity theory until CS 350. Before that we mostly focused on logic, data structures, and languages (with a bit of computing thrown in). This was at Portland State in the late 2000s though.
Re:The true cost of linked lists by bluefirebrand on Monday June 06, 2022 @12:49PM (#31642798)
It's stuff that every CS student encounters but probably relatively few people who are self taught or do coding bootcamps will ever encounter.

Also probably a part of a course many people snooze through.

Re:The true cost of linked lists by ironmagma on Monday June 06, 2022 @01:38PM (#31643347)
People who've only done coding bootcamps probably shouldn't sign on to Hacker News and start preaching about how Big O is wrong.
Re:The true cost of linked lists by bluefirebrand on Monday June 06, 2022 @01:47PM (#31643466)
Sure, but they still get jobs building software is what I mean.
Re:The true cost of linked lists by mcguire on Monday June 06, 2022 @03:30PM (#31644918)
I don't know when the original article was published, but Jon Bentley's book Programming Pearls (IIRC) contains essentially this same essay (actually, reversing an array) and was published in 1986.
Re:The true cost of linked lists by cgriswald on Monday June 06, 2022 @02:03PM (#31643664)
I see it mentioned somewhat frequently by learners on 'learn-to-code' platforms when discussing code. Even when thinking about it wrongly, it can useful.