![]() |
Forward |
|
| Run This Program | return to table of contents | Order from Amazon. |
Tcl is a scripting language something like Perl but extensible and somewhat cleaner. Many extensions are available. Tk is an extension developed by the creator of Tcl and used for creating scripts that interact with users through windows. Tcl can act as a Unix shell and Tk was originally developed to create windows for the X Windows environment. Tcl was meant to be portable and Tcl/Tk has been ported to versions of Microsoft Windows and to the MacIntosh.
Some advantages of Tcl:
This book is aimed at programmers who want to learn Tcl/Tk because they find these advantages attractive. It is a self-teaching book with more than 200 solved exercises. All exercises run on both Windows and Unix versions of Tcl/Tk. Only a couple require code variations to accomplish this. The material in this book comes close to being platform independent.
Programmers and systems administrators with other interests may wish to learn from this book as well:
Although this book is meant to be studied sequentially by someone who works on the exercises, it can serve the purpose of an "introductory manual" as well. The index is designed to send you to the main place for any given topic. At that place you find cross references to other places.
The material is detailed but not inclusive. I have been concerned that descriptions not be so long or so detailed that few people would wish to study them and that descriptions not be so short that many people would need to go to another source before accomplishing anything useful.
This book is not a simple-minded introduction, not a comprehensive manual, and not a collection of production-quality scripts. It bridges the gaps between those things.
Here is the background I suggest you will need. My suggestions are based on the assumption that you are studying the material on your own. A good instructor can fill in some gaps so that you could study the material with less preparation.
Ways to write maintainable, reusable code have long been an interest of mine. You will see this interest reflected in the way I have solved some of the exercises.