Smircer, Clone of the Little Tcl IRC Client #
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
hal
Ok first it was the cool book, then tryruby, then you weren’t satisfied you had to call a web service from a batch file(marvelous). Winking hood and all(rubyexe!!). Camping thown in just for fun and prose. Now rich clients simplified(on the edge of my seat).
_Why you are a machine!
Thanks for the code, prose and the comics(fanboy)!!
Matt Todd
Agreed, you are an awesome inspiration machine. Camping is sexy, for sure, and the book is awesome. Thanks for taking part in the community.
Rock on!
M.T.
Bil
What’s with the tabs; it looks like Python.
phil602
I’ll have you know I predicted this yesterday
Good stuff.
floyd
TABS are great for spacing! half the keystrokes for (more than) twice the spacing. mac << widescreen
Pelle
I love Why and I love ruby. Very cool. I’ve dugg it. Go Digg it here
Pelle
I love Why and I love ruby. Very cool. I’ve dugg it. Go Digg it here
Pelle
It appears I am an idiot. Please disregard the first of my previous comments.
Branstrom
Yeah, tabs are the stuff of gods. We should all be using them. The width can be adjusted, they’re easier to deal with, they can be visualized separate from spaces… I’m a tabguy for sure.
drew
@Branstrom: fantaboy
drew
@Branstrom: fantaboy
floyd
@bjork: fantabulous
drew
@Branstrom: fantaboy
Comments are closed for this entry.