3 ms·
PSA: Read the "simplified explanation" near the bottom of the wiki page (https://en.wikipedia.org/wiki/Duff%27s_device#Simplified_explanation https://en.wikiped
by rramadass 4y ago
PSA: Read the "simplified explanation" near the bottom of the wiki page (https://en.wikipedia.org/wiki/Duff%27s_device#Simplified_explanation https://en.wikipedia.org/wiki/Duff%27s_device#Simplified_exp...) before looking at the actual code. I always found Duff's device confusing to understand (i.e. walk-through in my mind) and this section was what made it click.