The best class I ever took in uni had 3 examinations taken by all students simultaneously, with variations between each exam making cheating nearly impossible. There was no attendance taken, all course materials were posted online, and the only grading for the entire class was the exams. I showed up to 2 classes the entire semester yet still learned all of the material and obtained an A.
At least for certain STEM classes, I think this should be the norm.