compsoc-edinburgh / betterinformatics

Welcome to Better Informatics. The student run website for students in the School of Informatics.
https://betterinformatics.com
Other
68 stars 94 forks source link

Hiding courses that aren't running #60

Open qaisjp opened 6 years ago

qaisjp commented 6 years ago

Some courses disappear and appear. Courses that aren't running are marked as archived. Archived courses are hidden from the website (even when viewing "all").

Archiving courses manually is a wee bit tedious, so I'd like to derive this information from the course.inf.ed.ac.uk data dump.

The idea is to mark a course as "no longer running" if no such course exists for that acronym (if the course acronym is provided).

What's the problem?

Permalinks use the acronym (Compiling Techniques: https://betterinformatics.com/inf3#ct), and external courses that don't have acronyms defined fall back on a slugified title (Speech Processing: https://betterinformatics.com/inf3#sp-speech-processing).

A fix for this is to provide a made up (but humanly common) course acronym for courses like ILA and CAP to have a nice permalink (/inf1#ila and /inf1#cap).

Speech Processing is a bit more weird since SP is the acronym for Secure Programming. The acronym for this one could be changed to speech (instead of the duplicate sp as it is now). I think sp as an acronym for this course was just made up.

Thoughts?

sleepyfoxen commented 6 years ago

The sluggified link is also fine, though. Did you report the acronym overlap to inf?

qaisjp commented 6 years ago

Speech Processing is not an informatics course

sleepyfoxen commented 6 years ago

oh, I see. In that situation it may be possible to use inf3#ppls-sp as a general way to avoid ambiguity

qaisjp commented 6 years ago

that works perfectly 🙂