|
|
|
|
|
by Tloewald
3638 days ago
|
|
Code never runs in a vacuum, so arguing about the size of the elephants on the way down is pointless, which is my point. What I do see is that the JavaScript does all of this much more cleanly and intelligibly, and has an honest line count. Incidentally, I also think that cleanly separating presentation from logic is an advantage of the JS / CSS divide, even is JavaScript if far from perfect and CSS is actively horrible. |
|
https://gist.github.com/greggirwin/8d0b1c02ccdbd5520d9c77d49...
The reactive logic is all lifted from the original. Around line 40 you can see where styles are defined inline. Originally I had them just defining visual aspects, but then moved the actors into the cell style as well.
With native widgets, you don't get complete control, and they won't match across platforms. Rebol had its own GUI system, and I wouldn't be surprised to see something similar done by a clever Red...we don't have a name for folks who write Red yet. Racket got the best name, with Racketeers.