3 ms·
I did a VID version of the demo, that shows a hint at how styling works in Red. https://gist.github.com/greggirwin/8d0b1c02ccdbd5520d9c77d49ea91ada https://gis
by greggirwin 10y ago
I did a VID version of the demo, that shows a hint at how styling works in Red.
https://gist.github.com/greggirwin/8d0b1c02ccdbd5520d9c77d49ea91ada 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.
- Tloewald 10y agoThat's much clearer, thanks! Folks who use Red could be referred to as communists ;-) If it takes off, you'll be Big Red.
- eggy 10y agoGood to see that. After all, the article was close to code golfing and not using the new VID to keep it succinct. More VID demos and the type of FRP in RED would be more enticing to me. But truth be told, I stumbled upon Red when looking at short programs translating text to morse code. The Red example (from Rebol actually) was very short, yet easy to read. I program in J, so I know what short, and unreadable means to others; I personally like J.