4 ms·
What are some simple use cases for this?
by jorshman 6y ago
What are some simple use cases for this?
- conjectures 6y agoThe use case is making it take less time to build stuff I imagine.
- brunocvcunha 6y agoNot a user of Reloadr, but hot code reloading is a big thing on my Java development process. There are servers and use cases that take a long time to start or setup, and having the possibility to debug -> edit code -> re-execute a specific method using the same context goes a long way. For production usage, maybe that wouldn't be considered safe, but there are companies that provide services with this purpose (e.g. JRebel).
- nerpderp82 6y agoJRebel literally saved our ** years ago. Compile, restart cycles would have killed us, with JRebel we were able to stay in the zone and iterate way way faster. The difference between rage quitting and going home at 430.
- fouric 6y agoWell, the main benefit is going to be for complex things where you don't want to restart a large program in order to test a small change, but in terms of simple things, programs with event loops (like games or interactive tools) are a good candidate.
- agumonkey 6y agoshorter iteration times when exploring things live
- magicalhippo 6y agoI imagine it can be very useful if you want to debug and fix a problem in a contained area of the code where it can take a significant effort to get the program in a state which can trigger the bug, but once in that state it's easy to trigger repeatedly. Say you have to load a lot of data, but once loaded you can trigger the issue by just hitting a button. With hot code reloading you could incrementally add debugging code and try your fix, without having to restart the program and wait for the data to reload each time.
- the_jeremy 6y agoI wrote a (worse) version of this at my first job, because loading and initial manipulation of the data I was doing analysis on took tens of minutes, and I kept wanting to make changes to what I was doing. Saved me a couple hours.