Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Incr-Tcl - Object Oriented extension to Tcl

WHAT IS TCL?

Tcl is an excellent scripting language, based on a true interpreter and a large number of commands. It's found its niche in a number of engineering applications (system testing, IC and circuit design, numerical control work, etc.) where it's often embedded within larger programs written in languages such as C to allow the system user a tailoring capability - indeed, that's the who origin of the language.

The Tk toolkit provides a Graphic User Interface (GUI) that sits on top of Tcl. With Tcl/Tk, you can write effective scripts that are controlled through a series of buttons, sliders, entry boxes, etc. ... allowing a Tcl application to be very easy to use by the widest range of users. Tk uses the look and feel of the platform it's running on, so that Windows users, Motif (Linux) users and Mac users all see windows that look very familiar to them.

Expect is another extension to Tcl. It provides the user with the ability to automatically control other applications, including ones that are designed for purely manual use, in an effective way. A great tool if you want (as we do, for example) to check out a network by "ping"ing all the systems that should be on line.

AND [INCR-TCL]?

As your programs grow, they'll get harder to maintain and it gets harder to share the code too. Named blocks of code (often known as functions, but called procs in Tcl) are a huge help for a while, but eventually even that approach gets tricky to maintain. That's when you want to use Object Oriented programming.

The Tk toolkit has some aspects of OO in its design, and this OO approach is taken further by the [incr-Tcl] extension. Using [incr-Tcl], you can define whole classes of objects on which you can perform operations, and you get a command who's name is the name of the object concerned. Very neat, if a trifle baffling if you're not used to Object Orientation. What it really means is that you can hide the complexities of how you handle certain types of data within the procs concerned, providing the writer of the application program that's going to use that type of data with an easy way of doing so. ((If I was writing the sentence above in proper OO terms, I would have said that you ENCAPSULATE the complexities in METHODS)).

[Incr-Tcl] goes further than Tk too. For example, you have a full inheritance capability. In other words, if you want to define a type of data that's like one that already exists, but has a number of extra or modified features / behaviours, you can define a new type of object that's based on the the one that's already available ... by coding just the changes and not the whole thing again you make a big time saving, and when it comes to maintenance, you've only got one set of procs to change as the rule that "a is like b but with the following changes" is automatically re-applied every time; change "b" and you've automatically changes "a".

WHERE CAN I LEARN MORE ABOUT [INCR-TCL]

At present, [incr-Tcl] is a bit of a niche; not many of the Tcl books cover it and on our public courses we only include an introduction. If you're already familiar with OO techniques and are an experienced user of them in other languages, you'll pick up [incr-Tcl] quite easily once you've learnt Tcl.

If you're NOT already an Object Oriented programmer (in other words, if you've programmed only in structured languages, or you're a newcomer to any programming), then some instruction would be worth its weight in gold. OO is NOT something that's easy to learn for the first time from a book, even supposing you have an appropriate book.

If you have a group of people who need to learn [incr-Tcl], we can arrange a private course.
See our Custom training course page
If you're wanting to learn about [incr-Tcl] and Object Orientation, but you're working on your own or with just one or two others, we can provide you with a top-up "extra day" after your public Tcl and/ or Tk course.
See our extra days page

See also [incr-Tcl] training

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site

Related Material

Tcl/Tk - [incr-Tcl]
  [290] - ()
  [656] - ()
  [1528] - ()
  [1819] - ()
  [1925] - ()
  [3142] - ()
  [4456] - ()
  [4460] - ()

Object Orientation and General technical topics - Object Orientation: Individual Objects
  [227] - ()
  [507] - ()
  [1543] - ()
  [1864] - ()
  [1925] - ()
  [2171] - ()
  [2173] - ()
  [2393] - ()
  [2651] - ()
  [3436] - ()
  [3721] - ()
  [4021] - ()
  [4448] - ()
  [4591] - ()
  [4650] - ()

Tcl/Tk - Tcl, Tcl/Tk and Expect - General
  [2429] - ()
  [2474] - ()
  [2504] - ()
  [2681] - ()
  [3192] - ()
  [3286] - ()
  [4206] - ()
  [4434] - ()
  [4460] - ()
  [4616] - ()

resource index - TclTk
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Lua, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2021: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/solutions/tcl-incr ... o-tcl.html • PAGE BUILT: Wed Mar 28 07:47:11 2012 • BUILD SYSTEM: wizard