View · Index

Unit 1 / Best Practice

Best practices
  • Always provide a application-specific package manager, it facilitates both content management and request processing (in www/* scripts)
  • Declare your package manager in a library (*-procs.tcl) script, e.g. tcl/note-procs.tcl
  • It is good practice to declare application-specific code in a proper TCL namespace; in our example everything goes into: namespace eval ::demo { ... }