This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Smircer, Clone of the Little Tcl IRC Client
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
I saw the link floating around for the IRC client written in 38 lines of Tcl and I just wondered. Obfuscation is so lackluster this season, so here’s a clone in nice, clean 70-something lines instead.
The code is here: smircer.rb.
It uses the FOX bindings by Lyle Johnson. It’s a great library, but I couldn’t figgr how to italicize only portions of the blamin text.
The Tcl example is much more interesting than this one, though, because Tk fits Tcl so well. Ours will be much better once:
class SmIrcer < FXMainWindow
dimensions 600, 400
add_vertical_frame :layout => :fill do
add_text :text => [:readonly, :wordwrap], :layout => :fill
add_text_field :frame => [:sunken, :thick], :layout => :fill_x
end
end