A couple of days ago, a super fun joke stormed the programming forums: a 7 line Cosmic Ray Detection function :) I agree that it is very funny but unfortunately, it does not work as intended!
Why? Lets learn see and learn more about assembly, optimization and a less-known C commands called "volatile" to solve the problem and make sure that Cosmic Ray won't harm our spaceship.
00:00 - Cosmic Ray Detection Function
05:07 - Implementing in C
07:20 - Checking the assembly for optimization
14:50 - Solving the issue using Volatile
I would be happy if you subscribe :)
...
https://www.youtube.com/watch?v=_DS8jCMJFSE