Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Lua, etc
 
The fragility of pancakes - and better structures

Have you ever hunted around a directory for a file ... you KNOW it's there, but you can't find it - can't see the wood for the trees, if you like, in a listing that spills over many pages?

I call such directory structures "pancakes" as they're thin and flat, and they tend not to be very easy to work with as they grow and grow. It's usually best to avoid a pancake if you can - either set up a directory structure if you require ad-hoc access to all the various different data pieces, or use a database such as MySQL to hold the data ... this is the technique we're using for images in our database, as described in the current edition of "Of Course".

The Authors of Tcl had an issue with a pancake of commands that could have been provided in the language, so that came us with a hierarchy of commands and subcommands. Within a top level around a hundred top level commands, you'll find commands that have subcommand in particular areas such as
string - most commands to do with string handling
file - most commands to do with file handling
array - all commands to do with array handling
clock - all commands to do with time handling
info - commands that provide information
(written 2006-06-26, updated 2006-06-30)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
T205 - Tcl/Tk - String Handling in Tcl
  [4455] Working out distance between places, using OS grid references and a program in Tcl - (2015-03-11)
  [4454] Everything is a string - even a list - (2015-03-11)
  [4205] Regular Expression Substitution - Tcl - (2013-11-12)
  [3576] Tcl - apparently odd behaviour of string trimleft - (2012-01-13)
  [3285] Extracting data from a string / line from file - Tcl - (2011-05-10)
  [3192] Tcl - Some example of HOW TO in handling data files and formats - (2011-03-04)
  [2472] split and join in tcl and expect - (2009-10-23)
  [1601] Replacing the last comma with an and - (2008-04-04)
  [1410] Tcl / regsub - changing a string and using interesting bits - (2007-10-27)
  [1403] Square Bracket protection in Tcl - (2007-10-23)
  [943] Matching within multiline strings, and ignoring case in regular expressions - (2006-11-25)
  [404] How to check that a string contains a number in Tcl - (2005-08-06)

T208 - Tcl/Tk - Arrays and dicts
  [3638] Sorting dicts and arrays in Tcl - (2012-03-04)
  [3614] Tcl - dicts - a tutorial and examples - (2012-02-14)
  [3582] Tcl collections - lists, dicts and array - (2012-01-16)
  [3415] User defined sorting and other uses of callbacks in Tcl and Tk - (2011-09-02)
  [2466] Tcl - passing arrays and strings in and back out of procs - (2009-10-22)
  [1614] When an array is not an array - (2008-04-17)
  [1427] Arrays in Tcl - a demonstration - (2007-11-10)
  [1405] Sorting in Tcl - lists and arrays - (2007-10-24)
  [1283] Generating traffic for network testing - (2007-07-29)
  [1282] Stringing together Tcl scripts - (2007-07-29)
  [122] Passing arrays to procs in Tcl - (2004-11-18)

T209 - Tcl/Tk - File and Directory Handling
  [4524] Tcl - a new example for data reformatting - (2015-10-10)
  [4523] Catching failed commands and not crashing the program in Tcl - (2015-10-10)
  [4461] Reading from a URL, and reading Json, from your Tcl script - (2015-03-12)
  [3617] The fileutil package and a list of file system commands in Tcl - (2012-02-18)
  [3429] Searching through all the files in or below a directory - Ruby, Tcl, Perl - (2011-09-09)
  [3320] Reading the nth line from a file (Perl and Tcl examples) - (2011-06-09)
  [2467] Tcl - catching an error before your program crashes - (2009-10-22)
  [1467] stdout v stderr (Tcl, Perl, Shell) - (2007-12-10)
  [1426] Buffering up in Tcl - the empty coke can comparison - (2007-11-10)
  [1407] Reading from another process in Tcl (pipes and sockets) - (2007-10-26)
  [785] Running external processes in Tcl and Tcl/Tk - (2006-06-29)


Back to
Weekend in Ireland
Previous and next
or
Horse's mouth home
Forward to
Separation and Integration
Some other Articles
Good follow up ... my thanks
Converting between Hex and Decimal in Tcl
Tcl - lappend v concat
Separation and Integration
The fragility of pancakes - and better structures
Weekend in Ireland
On Crosby sands
Naming Rooms
Do not duplicate your code
Bed and Breakfast, or Hotel?
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2019: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/779_The- ... tures.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat