OPAL-HOT-RELOADER
FORREST CHANG
FKCHANG2000@YAHOO.COM
HOT RELOADING
Anyone heard of it?
FRONT END WEB DEVELOPMENT
incrementally make small changes
faster you can see changes, the faster you can develop
WITHOUT HOT RELOADING
Make the change in your code
Refresh the page in your browser
Re-add the data and push all of the same buttons, type etc.
HOW ABOUT LIVE REFRESH?
Refreshing loads everything
New code, but loses state
Starting from scratch can be life sucking
WHERE YOU MIGHT'VE HEARD OF LIVE RELOADING
React Hot Loader
Need to use stores (typically Redux) to preserve state
Webpack hot module reloader
MODERN WEB DEV
Hot loading for opal
React.rb Opal version of react.js
OPAL-HOT-RELOADER
Modern web development for Opal
React.rb support built in
Code and css reloading, Rails asset pipeline coming soon
Intend on making it even easier to use
https://github.com/fkchang/opal-hot-reloader
DEMO
Without Hot Reloading
With Hot Reloading
VIDEO
Similar demo to live demo, before css reloading was implemented
opal- hot-reloader quick demo
https://www.youtube.com/watch?v=NQbzL7fNOks
CONCLUSION
All the benefits of leading edge front end Web dev w/o the pain of
Javascript
Joys of Ruby via Opal, no JS fatigue
QUESTIONS?

Opal-hot-reloader