DEV Community

Discussion on: What are some funny lines of code you've run/written into a project?

Collapse
 
hdennen profile image
Harry Dennen

In South Africa we have power issues which the government mitigates with "load shedding" - turning off parts of the grid during high load times.

Our app suffered similar high load call stacks causing jank, so I created a load shedding service that will spread computation across animation frames or ticks in order to keep frame rate at 60fps.