| |||||||||||
| |||||||||||
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 18:09:20) Associated topics are indexed under T208 - Tcl/Tk - ArraysT209 - Tcl/Tk - File and Directory Handling T205 - Tcl/Tk - String Handling in Tcl
Some other Articles
Good follow up ... my thanksConverting 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? 1638 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 at 50 posts per pageThis 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). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||