Chapter 19

Tips and Techniques

Every language has its strengths and weaknesses, and every programmer develops ways to take advantage of the strengths and work around the weaknesses. This chapter covers some of the ways you can use Tcl more effectively to accomplish your tasks. This chapter discusses debugging, some common mistakes, some techniques to make your code more maintainable, and a bunch of odds and ends that have not been covered in previous chapters.

19.1 Debugging Techniques

Testing and debugging a program are some of the most tedious parts of computer programming. The testing and debugging phase of a project can easily take more time than it took to write the application.

Testing includes both checking that the code runs at all, ...

Get Tcl/Tk, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.