Undergrad students have priority registration for upper division classes. Unfortunately for me, Programming Languages was full long before my enrollment appointment. Even worse, the professor informed us that he would be unable to give out any PTEs (special code to enroll in a class that is already at capacity) because of the sheer volume of students interested in enrolling. Usually, attending the lectures and asking is all it takes to get a PTE.
The UCLA Registrar publishes enrollment counts in real time. One option was to incessantly check the page. That’s tedious and boring. I’m lazy. I wrote a small script that uses
curl to download a given page,
grep to search for the word “Open”, and
I’m in the class :-)