DEV Community

Discussion on: I built an online code editor

nastyox1 profile image
nastyox • Edited on

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?

chr15m profile image
Chris McCormick Author

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.