I'm new to VW and in the process of reading through the AppDevGuide. I've come across Pragmas and was wondering if there is a package(s) in the public repository that help with discovery of pragmas? What I'm look to use them for is a way to tag methods during development to say, for instance,
<todo: 'flesh out this method'> or <fix: 'broken'>. Is there a package that would make this easier or, perhaps, is this something the Store could do for me more efficiently? Thanks
Sean |
On Oct 28, 2006, at 6:44 PM, Sean McGinty wrote:
> I'm new to VW and in the process of reading through the > AppDevGuide. I've come across Pragmas and was wondering if there is > a package(s) in the public repository that help with discovery of > pragmas? What I'm look to use them for is a way to tag methods > during development to say, for instance, <todo: 'flesh out this > method'> or <fix: 'broken'>. Is there a package that would make > this easier or, perhaps, is this something the Store could do for > me more efficiently? Thanks > Such reminders can be created using other programming constructs. For instance with self-sends: self fixme. self fixme: 'foobar is not always reset'. or with sends to a global or class: Reminder needsMoreWork. Reminder tooSlow. Reminder tooSlow: 'use dictionary'. Tools are already in place to find such constructs with 'senders of...' or 'references to...', no need to make your own pragma browser. HTH, R - |
I used to just leave a note #todo. "blah" in the code and then find references to todo. Worked great.
On 10/28/06, Reinout Heeck <[hidden email]> wrote: On Oct 28, 2006, at 6:44 PM, Sean McGinty wrote: -- Troy http://www.cincomsmalltalk.com/userblogs/troy/blogView |
Le 28 oct. 06, à 19:35, Troy Brumley a écrit : > I used to just leave a note #todo. "blah" in the code and then find > references to todo. Worked great. Yes !! simple and effective idea !! > On 10/28/06, Reinout Heeck < [hidden email]> wrote:On Oct 28, 2006, at > 6:44 PM, Sean McGinty wrote: >> >> > I'm new to VW and in the process of reading through the >> > AppDevGuide. I've come across Pragmas and was wondering if there is >> > a package(s) in the public repository that help with discovery of >> > pragmas? What I'm look to use them for is a way to tag methods >> > during development to say, for instance, <todo: 'flesh out this >> > method'> or <fix: 'broken'>. Is there a package that would make >> > this easier or, perhaps, is this something the Store could do for >> > me more efficiently? Thanks >> > >> >> Such reminders can be created using other programming constructs. >> >> For instance with self-sends: >> >> self fixme. >> self fixme: 'foobar is not always reset'. >> >> >> or with sends to a global or class: >> >> Reminder needsMoreWork. >> Reminder tooSlow. >> Reminder tooSlow: 'use dictionary'. >> >> >> >> Tools are already in place to find such constructs with 'senders >> of...' or 'references to...', no need to make your own pragma browser. >> >> >> HTH, >> >> R >> - >> > > > > -- > Troy > > http://www.cincomsmalltalk.com/userblogs/troy/blogView |
In reply to this post by Troy Brumley
I'm using <strip: #demo>, <strip: #commercial> or <protect: #commercial> to tag methods for custom treatment during runtime deployment independently of the package structure. This way, for example, I make sure that certain code does not appear in demos and public freeware versions, although it's part of the included packages. This saves me from creating dozens of tiny packages for each different product configuration. Andre Troy Brumley schrieb: I used to just leave a note #todo. "blah" in the code and then find references to todo. Worked great. |
In reply to this post by Sean McGinty
See the class side of class Pragma.
HTH, Martin Sean McGinty wrote: > I'm new to VW and in the process of reading through the AppDevGuide. > I've come across Pragmas and was wondering if there is a package(s) in > the public repository that help with discovery of pragmas? What I'm look > to use them for is a way to tag methods during development to say, for > instance, <todo: 'flesh out this method'> or <fix: 'broken'>. Is there a > package that would make this easier or, perhaps, is this something the > Store could do for me more efficiently? Thanks > > Sean |
Free forum by Nabble | Edit this page |