DEV Community

Discussion on: I built an online code editor

Collapse
 
nastyox1 profile image
nastyox • Edited

Nice! One of the first full-stack projects I did was similar to this. I always thought detecting infinite loops before running the code to prevent the webpage from stalling would be a good feature, though maybe hard to robustly implement. What happens when the localStorage runs out of memory?

Collapse
 
chr15m profile image
Chris McCormick

Thanks! Slingcode uses IndexDb to store apps which has more space than localStorage. At the moment there is no warning if storage is full but there is a note in the code to implement something sensible in the future like warning the user.

Detecting infinite loops sounds tricky. You may be intersted in the halting problem.