10 karma · joined Oct 11, 2010 (16y ago) · 8 submissions
comment 12y ago · link · parent
When it comes to debugging, I just use the standard chrome dev tools with source maps. Variables and properties on objects all compile using their ruby names, so viewing local vars and ivars in the debugger is easy. I only ever debug the generated javascript when I am debugging a bug with Opals runtime/internals/compiled code.
comment 12y ago · link · parent
comment 12y ago · link · parent
About the raw JS, to use my current app as an example, I have one line of inline JS (using `...` notation) which is just to initialize FastClick. Writing a ruby wrapper wasn't worth it for one method call. Anytime I see more then 1 line of inline JS inside a file, a ruby wrapper ends up being a much better idea, or indeed using the `Native` class which handles all the corner issues of calling native JS libs.
I think the problem with Opal is the documentation, which needs huge improvements, to show the proper/realistic development experience with it.
comment 13y ago · link · parent
Most of the work in the recent weeks has been improving the ruby <=> js bridge so that calling js methods/functions from ruby is possible.