Hello, Goodbye Example Code

This trivial example is written in REBOL and requires the free, cross-platform REBOL interpreter (Core or View, both under .5MB). REBOL can be downloaded here.

The app (a pop-up, really) was written in reply to RMH's blog post How Big Is Your Soure Code? over at the Curl developer's blog.


The REBOL Code

REBOL [title: "Hello, Goodbye"]
gui: layout [
   across
   t: text 300 font-size 36 center "" return
   btn "Hello"   [ t/text: "You say hello..."  show t ]
   btn "Goodbye" [ t/text: "and I say goodbye" show t ]
]
view center-face gui

Yep, that's it

A handful of lines of script. Showing a simple window with a set of buttons is easy as pie with REBOL/View.