Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] debugging rebol apps Re:(2)

From: jeff:rebol at: 18-Sep-2000 8:06

Incrementally. Each time I make a change that I think is trivial, I still go make sure it works as expected. I break out common code into functions, and then debug those functions individually. Always add type specifiers to function arguments to be sure you're being passed what is expected. The thing that always seems to help for me is I'll try to make each module do something very simple successfully before elaborating. Like, for instance, if the goal of a function is to generate some data and then display it (or have another function display it) I make my first goal to successfully: print mold data When a script reaches the couple pages mark, I find it helps to break out common parts, like utility functions, to go into their own file. They can always be recombined later, but the more scrolling you end up doing the more confusing it can become. Nothing revolutionary in those approaches, but I find them helpful in building larger apps. -jeff