Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Consistency (Score 1) 175

Not all institutions have the same initial programming pathway, but it seems like a lot of US institutions (according to a CS professor friend of mine) do three foundational courses: CS 0 (Introduction to Programming), CS 1 (Object-Oriented Programming), and CS 2 (Data Structures). CS 0 is often a general education course designed for non-majors that majors with HS experience skip over. That one can be taught in any language and probably Python makes the most sense. I do think it is helpful if CS 1 and CS 2 are taught in the same language. I warn my AP CS A students (who learn Java) that if CS 2 is being taught in C++ at their university, they should probably retake CS 1 even if they already have AP credit for it. At least one of my former students who just finished undergrad took CS 1 in Java and CS 2 in C++ at the same institution (he said it made everything about the course harder).

For the parents of CS students out there, I do think AP CS A prepares students well for Data Structures. I've probably a dozen students who passed the AP CS examination as juniors to a local university for Data Structures during their senior year, and they typically get As and Bs. Sometimes they've been the best student in their sections, probably because AP CS is taught in a full year so the students get a lot more programming experience; we have time for more projects.

Comment Re:Medium-Level (Score 1) 16

Generally the problems get much more difficult as the month goes on. Later in the month it is not unusual to have problems that are very hard to solve if you don't have a solid understanding of various CS concepts and algorithms.

This year, the first few problems have actually been relatively difficult compared to in years past. A few participants have speculated that they're being intentionally designed to make it harder to solve them by just plugging them into a LLM (which got very popular last year.)

I agree with you -- I feel that the challenges have been getting harder. I've done various of these going back to 2015. In 2020, I actually did the whole thing (one of my solutions was pretty inefficient, but it worked). This year, the fourth day, second part requires some skills that first year college students don't have (skills taught in a data structures course). I teach AP CS A, which is generally the course right before data structures. I won't say more because some people here probably haven't done it yet but intend to do it later.

The person you responded to mentioned using regular expressions. I'm embarrassed to admit that I never learned regular expressions (I understand the idea, but never learned the practicalities of using them). It just never came up. So I actually do everything for these using the methods of the String class. That sometimes is a big hassle, and often (including today) I say to myself, "you should take the time to learn how to use regular expressions."

I'm not sure I understand why they are worried about cheating -- people often post their solutions on GitHub or alternatives. It's just for fun. If I get frustrated, I stop. Sometimes after thinking for a while about it, I come up with an alternative approach that works better.

Comment Some thoughts from an AP CS teacher / AP reader (Score 4, Informative) 226

I teach this course and this year for the first time I was a grader. I graded Question 1. The week after I graded, I attended a professional development session led by a professor who has done the reading for around 30 years (back into the days of Pascal). For those of you not familiar with AP, the readers are typically divided about 60/40 between high school teachers and university professors. The exam committee is similarly split (although that one I think they keep at 50/50). The professor I was with addressed many of the points above which are valid. I think they may have had an "off" year. CS professors and teachers are just as opinionated about some of these things :)

Several posters above made good comments about the detailed requirements specification. I agree with their points, and the AP CS people are also aware of it. The amount of text present per question is being discussed on a national level. We practice AP questions like this in my class so that the students are familiar with the exam format. I tell my students that careful reading is a necessity. But in this case, 22.5 minutes per question seems short to me.

The questions themselves were hard this year. Each question is graded on a nine-point rubric so partial credit is a definite thing (some of those nine points are fairly easy to get). Those rubrics and student samples get released in September to the public if you are curious (just search 2023 AP Computer Science A FRQ Scoring Guidelines).

Another poster made the comment about there being two correct ways to finish a problem -- and I agree, that was dumb, and it is unusual. I've looked at exams going back to 2009, and almost always you are told "this is exactly the state it should be in when finished."

They are also struggling with whether the exam format should be revised. They piloted a project/portfolio exam this year but then the whole ChatGPT thing happened. And they seem terrified of digital exams (probably because most schools don't have dedicated, controlled, computer labs any more). They are convinced that some students would find a way to cheat (esp. in a course like AP CS A). Some students who have issues writing by hand are allowed to type their exams, but it's a relatively small number.

Comment Clarification (Score 1) 52

The 30+ years refers to the total of all of the sentences. It seems as if they decided to start their own streaming service using pirated content. A couple of the guys made seven figures (in pounds, not dollars) on this. This is not one guy stealing cable in his house and watching the big game (or do you say "match" in the UK?).

I understand that the official provider was probably ridiculously overpriced, but I'm not sure how you could think you'd get away with this. They must have had some serious infrastructure running this.

Comment Surface camera trouble nothing new (on tablets) (Score 2) 45

I used to own a Surface Pro 6 at work. I tried putting Linux on it using the work of the linux-surface project at GitHub. They have had a heck of a time getting camera support working under Linux on many of the models. And they've spent years trying. I'm not sure what's so special about the cameras in surface devices -- I suspect it has something to do with them being capable of handling the facial recognition Windows Hello uses. You can go to this page to see what I mean. Only the first three generations of surface tablets have cameras working under Linux.

Comment It's great for reducing screen recordings on Macs (Score 1) 81

If I record a 45 minute lecture on my Mac using the built-in recording application (I have a M1 air) I get a video in excess of 1 GB. ffmpeg reduces that by an order of magnitude, with a very simple terminal command. And I'm not an expert on video editing or using ffmpeg at all -- I bet others could do better.

Comment Re:How stable is the upgrade? (Score 3, Interesting) 34

I cannot get over the decision Ubuntu made to go with Snaps. It's the main reason I run Mint. Mint has its issues also, but I cannot abide the idea that Firefox cannot start quickly on an Ryzen 5850U. On Mint, the dosbox package has some issues, so I grabbed the dosbox-staging flatpak. It starts immediately, no issues -- completely different than the Firefox snap experience. If someone here wants to explain to me why Canonical has invested so much in Snap, I would love to here the explanation. Maybe there is something I'm missing, but I've never had issues with either Appimage or Flatpak.

Comment This says something about the success of Asahi (Score 2) 69

I have been following Asahi Linux because I also have an M1 mac. I have a separate machine running Linux, so I'm fine with staying with macOS. I remember watching a long question/answer session on YouTube where Linus is at a Debian conference, and he says that he is "not an IT guy". The point he seemed to be making at the time is while he obviously enjoys working on the development of the kernel, he doesn't have time to waste debugging the other small, common issues that arise with most Linux distributions (he was complaining about root access being needed to add a printer on one of his kids' machines, IIRC). Asahi is apparently in good enough shape that he's willing to use it. I know they don't have the GPU figured out yet (they seem to be making progress) but from what Linus has described, his work environment is a bunch of terminals, so he's probably fine with that.

One of the things that concerns me about ARM and Linux is that a lot of the software that exists for Linux and is (usually because it is nonfree) not included in package managers is only available for x86. Wine is also an issue (although I did manage, on a Raspberry Pi 4, to get Box86 + Wine working together well enough to run some simple Windows applications). Even when Asahi gets to the point of fully supporting the M1 hardware, that's going to be an issue for people who are trying to just run Linux and do everything they need to do. I have a license for Microsoft Office 2007 (which is good enough for most Office documents) that works flawlessly in Wine, but it's not going to work well on a Linux machine running ARM (although maybe the M1 would be powerful enough with Box86, who knows).

Comment Actual economics of solar (Score 3, Interesting) 418

There's been a lot of discussion on the economics of installing rooftop solar. I thought I would give my perspective because we installed solar on our house about a year ago. Our system cost $30,500. It was financed for 1.5% APY for twenty years with zero down. The monthly payment is about $150. We received a tax refund of $8322, which we did not apply to the principal, since the interest rate is so low. You should know that if you redo your roof at the same time, you can claim the part of the roof that is underneath the panels. That's why our credit is a little higher than 26% of the system cost. Our cost was higher, because we do not have a south-facing roof. Our panels face to the west. We live in Wisconsin, which is not the best environment for solar power either.

So, in terms of economic impact to us, we started with a "balance" of 8322. Our electric bill has been reduced in two ways. One, power we generate and consume is subtracted from our bill at the rate the utility charges. Two, power we generate and sell back is subtracted from our bill at 1/3 of the wholesale rate (that varies from state to state). When you take these amounts for the last year, and subtract our loan payments, the net expense is about $1100 per year. I have spreadsheets tracking this because I am curious about the economics also; we did it more for environmental concerns.

This means it will be about 7.5 years before we actually "pay" anything for our solar installation (before we wipe out the $8322 in cash we were handed for installing the system). After that 7.5 year grace period, we spend $1100 per year helping the environment. Assuming we stay in our house for the full length of the loan, we would then be saving money from that point onward.

There are some other economic factors which probably reduce that cost. First of all, the $8322 is being invested in a conservative portfolio which typically earns a return around 6%. Second, we think (we're not sure) that our house is cooler in the summer since we installed the panels; it definitely is not making the house hotter. Third, the forecasting is conservative because it assumes the cost of electricity does not increase (unlikely). Fourth, while I have a hybrid vehicle now, if we get an electric vehicle, we will save more money, because we'll be using more of the electricity we generate instead of selling it back.

Finally, we give a considerable amount of money to charity, and we view this expense as a component of our charitable contributions. That's probably the most important point I would make here. The other point is that installing this system does not make sense if you anticipate relocating to another area. If we did move, we'd probably realize some savings also from the increased value of the house, but it's hard to say.

Comment My thoughts as a high school CS teacher (Score 4, Insightful) 168

I have a bachelor's degree in electrical engineering, and a master's in computing (that was an interdisciplinary program which in my case focused mostly on graduate work in analytics and databases). Generally in education in the United States, the presumption is that teachers in a discipline are one-level-above their students. High school teachers typically have an undergraduate degree in the subject they teach; sometimes, if a teacher has multiple licenses, one of they may only have a minor in the subject. Undergraduate instructors have a master's degree in the subject they teach; and (ideally) graduate instructors have a PhD (this one is often violated, I've had lots of graduate courses taught by people with just master's degrees).

Speaking as a department head, it's hard to find people with undergraduate degrees in CS who are willing to teach. That's why there's so much non-degree professional development aimed at creating CS teachers (many of these programs try to recruit math teachers because math teachers are generally analytical thinkers and many have had one programming course). Some of this PD is good, some of it is too dumbed-down, in my opinion.

Based on the limited availability of candidates, my criteria for someone who wants to teach high school computer science is that they should at least have a course in object-oriented programming and a course in data structures. If they want to teach something above AP CS A (some schools teach data structures to their students as a follow-up to AP CS A) they should have an undergraduate degree in CS. This ensures that intelligent students who ask deeper questions about the material can be served appropriately. Last week I taught recursion to my students, and I was able to talk about some topics (like memoization) that many books omit. Having been to many training sessions with AP CS A teachers, I doubt even the ones who have a lot of industry experience (which doesn't mean they have a degree in CS, incidentally) can give a good explanation of those topics.

More importantly, though, the teacher should like to write code; he or she should be passionate about the subject. I do a lot of recreational programming, like Advent of Code and Project Euler (I'm also a math teacher), and I enjoy solving problems.

Comment Teachers/professors will like this (Score 3, Insightful) 71

I am no big Microsoft fan (I run desktop Linux at home) but I gave this a try because I teach two courses using Java at the high school level. This offering has a few advantages:

1) It automatically adds itself to the system path in Windows, which means the students just need to install this and a lightweight IDE like Geany and they are ready to compile Hello, World*.

2) It does not require users to create an account to download the installer (unlike both the Oracle JDK and the Red Hat OpenJDK I had been using because Red Hat also has their installation put java/javac on the system path).

3) It allows me to use the same product on both macOS and Windows (and the same IDE also, since I use Geany typically). Red Hat's OpenJDK does not have a macOS installer.

4) It is licensed GPL2 so I don't have to worry about distributing something with bizarre license restrictions (like the Oracle JDK).

This will no doubt make the first day of future semesters a lot easier to manage. I would never use this myself for my own work because I just grab OpenJDK from my distribution's repos, but it will simplify things for instructors of elementary programming classes.

*Of course, we still have to edit the system path if the student has installed the Oracle JDK because they are on our FIRST Robotics team, which will conveniently add "java" but not "javac" to the system path. I wish Oracle would stop doing that. Either set up the paths correctly or not at all.

Comment Re:Dual Monitor Support? (Score 2) 189

I agree with what you are saying here, but given that the Raspberry Pi 4 has dual monitor support (which works surprisingly well with Raspberry Pi OS and Xfce), I'm surprised that Apple wasn't willing to put it in. I work with two principals at my school who have Macs, and they are both running dual monitors off of their Macbook Pro. I think we'll see it come back even if it takes a generation or two. I'm reassured by the news that HDMI ports and SD card slots are coming back, that's the first time I've seen evidence lately that they listen to complaints.

Comment Related question (Score 1) 145

I teach AP CS A which is essentially an introduction to object-oriented programming using Java. For a while now I have been looking for a version of OpenJDK that satisfies the following requirements:

1) It has Windows and macOS installers
2) Those installers do not require you to set up an account (like Oracle / RedHat)
3) The Windows installer automatically puts java and javac on the system path

If anyone knows of a good option here, I would greatly appreciate it. It's on my to-do list of things to check out myself over the summer. I know that there a lot of people packaging OpenJDK.

Thanks in advance if anyone has an answer.

Comment If Google copies Zoom features, they're in trouble (Score 2) 34

I'm a teacher and so I've had to use it every school day for the last year or so. We were hybrid for a while (first half of the alphabet attended on A days, second half on B days). I have a lot of of issues with Zoom that have nothing to do with fatigue. I think we went with Zoom because the security features were better (and they seemed to learn quickly, while there were problems in March 2020, most were resolved by April 2020). I use Linux (mostly Fedora, sometimes Debian/Ubuntu) and while there are RPM/DEB installers for Zoom they do not allow auto-updating through the package manager (like other proprietary software I have to use on Linux) nor do they alert you when your version is out of date. This was a big problem in the beginning because there were a couple of moments where having the wrong version meant you couldn't connect.

I also think the experience on Linux is worse than on Windows (I use Windows at work, and Linux at home). I experience a lot more freezing and other video/audio problems on Linux. I think you'll see Google Meet copy a lot of the essential functionality (mainly the security features) and then Zoom is going to get hit hard. Many schools already have a relationship with Google (hosting email, Google Classroom, etc.). I am no fan of Google but because Chromebooks run on Linux, Google browser applications typically work well on Chrome/Chromium running on Linux. I can't say the same for Zoom or Teams (which also has the same installers available but no auto-updates/update notifications issues).

Many teachers already had experience with Google Meet, and many of us kept using Google Meet for some purposes (online office hours are an example). So moving away from Zoom towards Meet is not an issue. While universities are using Teams if they have a strong Microsoft relationship, I haven't heard about Teams being used in K-12. If Google can figure out how to enhance Meet, they will probably beat Zoom (especially because schools had to pay for Zoom this year, unlike last year when it was free).

Slashdot Top Deals

Just because he's dead is no reason to lay off work.

Working...