7 ms·
why is such feature of reloading needed in the first place? I am a beginner thanks
by tbt43p 6y ago
why is such feature of reloading needed in the first place?
I am a beginner
thanks
- vermilingua 6y agoAccellerates the dev process by removing a whole bunch of steps: terminating the running program, relaunching the running program, repeating any steps to get back to the code in question. While these things only take maybe a few seconds each, thats a few seconds that you’ll perform maybe hundreds of times. Reducing context switches is always a good thing.
- okso 6y agoalbertzeyer's example with Notch explains the issue pretty well: When working on a video game, restarting the game every time you are tweaking the behaviour of an entity takes a lot of time. Hot code reloading while keeping the state of the game makes development much easier. On the other hand, when the entire state is stored outside of the Python app (eg: a web app using a database), restarting the entire process and reloading the page is fast enough and more reliable.