Review:Tcl/Tk in a Nutshell 44
Despite his long turnaround time, I still have not yet killed CowboyNeal for his long-delayed review of Jeff Tranter and Paul Raines' Tcl/Tk in a Nutshell. Part of the well known O'Reilly Nutshell series, this is a great book for those getting seriously into Tcl/Tk, or those who need a desktop reference. Click below for more information.
Tcl/Tk in a Nutshell | |
author | Paul Raines & Jeff Tranter |
pages | ? |
publisher | O'Reilly and Associates |
rating | 7/10 |
reviewer | CowboyNeal |
ISBN | |
summary | Not for beginners, this book makes a wonderful desktop reference. Rating: 7/10 |
What's Good?
Being another book in the "nutshell" series, it's no surprise that this book contains all the commonly used commands in Tcl/Tk. Designed to sit on your desktop and help you look up those commands you forgot, this book is a weclome aid to any forgetful Tcl/Tk programmer. Each description has just enough to help one remember the command, without going too in-depth. Each section is devoted to the most oft-used Tcl/Tk tools, such as Expect and [incr Tcl]. The chapters covering the C interfaces use the same style as Java in a Nutshell's class reference, simply listing the function name, it's arguments, and the argument types. While not the best instructional aid, if you already know the function, it's just enough to remind you of how to use it. I really liked the compactness and simplicity of this in previous "nutshell" books, and I like it here as well. When covering some of the extentions of Tcl/Tk (Tix, for example), longer, more in-depth explanatations of each option and/or argument are given, as many people may not have used Tix before. Chapter 15, "Hints and Tips for the Tcl Programmer," is particularly useful, as it contains many "gotchas," the "Tcl way" of doing things, and things that might confuse beginning Tcl/Tk programmers (such as Tcl's parsing), and even a few things that Tcl/Tk gurus may want to brush up on.What's Bad?
What I like about some "nutshell" books is that they often provide enough background for one to learn the language that is the subject of the book and begin programming in it. An example of this "Java in a Nutshell", one of my favorites. This book, however, assumes the reader is already a competent Tcl/Tk programmer, and makes no attempts to give an introduction to Tcl or Tk. I read this book in the hopes of picking up Tcl/Tk, but unfortunately it was not written to teach. When I do learn Tcl/Tk, however, I'll have a valuable resource handy to assist me in my coding. Some of the Tcl/Tk tools covered may not be used by everyone (such as Tclodbc), which may make some people as if some parts of the book will go unused. I found that if one uses only the core Tcl/Tk commands, then the majority of the book won't even aid you, as it is aimed at Tcl/Tk extensions. What else is bad? In all seriousness, I couldn't even nitpick further. For a desktop Tcl/Tk reference, this one is tough to beat. I even found myself liking the index.Who should buy this book?
If you already know Tcl/Tk, then this book will be a great aid, especially of you use extensions, such as Oratcl or [incr Tcl], then this book will be a great help in remembering the commmands you don't use often, but need to get a quick synopsis of. If you're looking to learn Tcl/Tk, I wouldn't recommend this book, as it doesn't got into a great amount of detail. It would probably help one who hasn't written Tcl/Tk in a while, and is feeling a little rusty get back up to speed quickly.You can pick it up at Amazon.
Table of Contents
Preface
- Introduction
- Tcl Core Commands
- Tk Core Commands
- The Tcl C Interface
- The Tk C Interface
- Expect
- [incr Tcl]
- [incr Tk]
- Tix
- TclX
- BLT
- Oratcl
- Sybtcl
- Tclodbc
- Hints and Tips for the Tcl Programmer
Appendix - Tcl Resources
Index
Very good book, even for *some* beginners (Score:1)
Damn Trolls...Re:Tcl is dead (Score:1)
Too early to say this (Score:1)
Re:Tcl is dead (Score:1)
Re:Very good book, even for *some* beginners (Score:1)
Re:Tcl is dead (Score:1)
Frankly makes me want to go out and buy this
book, just to keep an alternative to perl alive.
Re:Tcl is dead (Score:1)
Non-experienced reviewer. (Score:1)
As someone who is a very experienced Tcl/Tk programmer, I cannot trust a Tcl/Tk book review done by someone who admittedly has little or no experience with the language. Although the reviewer mentions that the book is not for the beginner, he lacks the understanding of the language to adequately comment on the ability of the book to address advanced issues.
Please understand that this is not an attack. As I said, I found the review gave a good overview of what is covered, all things concidered.
Wrong series of books... (Score:1)
Simply stated, it's a (very large and detailed) command reference card, not a howto.
Re:Tcl is dead (Score:1)
Re:Too early to say this (Score:1)
Re:Non-experienced reviewer. (Score:1)
What revision does it cover?
Re:Wrong series of books... (Score:1)
1) They're generally cheap. As a starving student, I was much more willing to spend $19.95 on Java in a Nutshell than one of the more expensive titles.
2) Long term value. Once you get through the tutorial book, it's often not useful as a reference, you want shorter & more succint info instead of pages and pages of detail. If the book can be a reference AND teach you the language, you get more value for your dollar.
3) Previous titles in the Nutshell series have been useful as learning aids. I picked up most of my Java knowledge from the Scribble example in Java in a Nutshell.
The reviewer was simply anticipating how many of us would try to use the book and advising us accordingly.
-dl
Re:Non-experienced reviewer. (Score:1)
Another point: CowboyNeal wrote
Well, to be fair this isn't what a Nutshell book is for. However, chapter 15 is exactly what he was looking for.
A rundown on what I, a non-reviewer, liked.
Tcl/Tk core language : 136 pages
- Essential. This is what I bought it for. I can never remember if it's -bg or -fill, so I really like this section.
The C interface : 37 pages
- I doubt I will ever use this. But hey, it's nice to have.
Expect : 19 pages
- I have used this already. Expect rocks.
[Incr Tcl] : 11 pages
- I will never use this.
Tix : 96 pages
- I like this section, but wish there were pictures to go with the examples. This is a minor gripe.
TclX : 33 pages
- I will never use this.
BLT : 74 pages
- I like this section. I got stuck trying to install BLT one time, and gave up on it. Now I will give it another try.
Oratcl : 8 pages
Subtcl : 7 pages
Tclodbc : 8 pages
- I am not a database guy.
"Hints and Tips for the Tcl Programmer" : 16 pages
- Great section. Much of the material came from comp.lang.tcl FAQ's, but it is still great to have. Should it be up front?
There is also a pocket ref for Tcl/Tk, at 90 pages, which is written by Paul Raines, one of the authors of the nutshell book.
Final advice: it is usually cheaper to buy these books online. I bought this book online for $16.50, as opposed to the $24.95 list price.
Re:Non-experienced reviewer. (Score:1)
man listbox
Seriously. I am a Tcl expert and have used many of the extensions, um, extensively. The man pages are all well written and concise. I use tkman to read them and tkman also lets me highlight important sections for future reference.
what _is_ a good tcl/tk book for starters? (Score:1)
Re:Wrong series of books... (Score:1)
However, if he had that purpose in mind, that is fine. It's still noteworthy that, though some books may be useful for learning from the "ground up", that is not their primary intention. I would never recommend that a newbie go out and purchase a "Nutshell" book to learn from, unless they had other sources. Of course, with the number of tutorials on the web these days, one can usually pick up the basics of a given topic and then grab a "Nutshell" book and augment their skills.
Re:You should not use TCL (Score:1)
Re:what _is_ a good tcl/tk book for starters? (Score:1)
Amen to that (Score:1)
Toby
Re:Tcl is dead (Score:1)
-- a Perl and Tcl programmer
Re:what _is_ a good tcl/tk book for starters? (Score:1)
It is also good starting point for people wanting to learn Tcl/tk, especially Tk.
A good piece of work.
tcl is NOT dead (Score:1)
Re:what _is_ a good tcl/tk book for starters? (Score:1)
Amazon more expensive than at least one location: (Score:1)
http://www.addall.com;
results:
A1BOOKS: $16.25 + $3.95 s/h = $20.20
BOOKPOOL: $16.50 + $3.80 s/h = $20.30
FATBRAIN: $19.95 + $4.95 s/h = $24.90
AMAZON: $19.96 + $7.95 s/h = $27.91
I Just Bought the Book Yesterday (Score:1)
The book Tcl/Tk In a Nutshell is cryptic for beginners like me. For instance, the group listing of commands starting on page 11 contains three columns. The first seems to be a package type of some kind (file, info,array...) The second is the command, and the third explains what the command does.
But the book never explains what the first column is, and at that point in the book (page 11!) it is by no means obvious to a beginner.
Even so I am glad I got it. I wanted something reliable and up to date, and I have usually had good luck with O'Reilly books in the past. Plus, my wife enjoys it when I read her the descriptions of the animals on the cover. This one features an ibis.
Re:You should not use TCL (Score:1)
Re:Amazon more expensive than at least one locatio (Score:1)
Amazon is just the spammest. Links in the face everywhere.
Experienced reviewer. (Score:1)
Just to point out that I do a number of reviews on C++ and programming in general, and am quite a competent C++ programmer.
My GIMP review should be posted shortly, and I'll admit I'm not a GIMP god but I do use it for graphics needs (whenever I have such needs).
I'll probably review another UML book shortly, if anyone's up for that.
Re:what _is_ a good tcl/tk book for starters? (Score:1)
Practical programming is an excellent reference, but it's not written as a tutorial. If you prefer to learn from a tutorial, you'll probably be better off with something different. That said, anyone who's serious about Tcl should probably have it for more advanced topics.
While the Nutshell Book may not be a good -only- book for absolute beginners, it's definitely a great second book. My only complaint with it is a one of formatting-- on commands with subcommands (such as 'string length'), the subcommand should be bolded, or otherwise made to stand out a bit better. Otherwise, It's a great book, Personally, I'd give it 9 out of 10.
Re: (Score:2)
Re:Too early to say this (Score:1)
Re:Tcl is dead (Score:1)
Do your comments apply to C++ programs as well?
Why isn't Tcl dead yet? (Score:1)