I have a #toDo: method instead of #revisit: wich for me is more representative.<br><br>I also have a test that verifies that I have no #toDo: senders, and I run all the tests before closing a new version. But that&#39;s just a bonus.<br>

<br>For me it&#39;s not cheating, it&#39;s just a simple tool, programmed in Smalltalk. It&#39;s the same thing as #halt. It&#39;s a breakpoint, but you have to send the message in a method body when you want to add it. It&#39;s a hack, but it works great.<br>

<br>Cheers,<br><br clear="all">Mariano.<br>
<br><br><div class="gmail_quote">On Sat, Jul 31, 2010 at 10:05 AM, Kannan Thambiah <span dir="ltr">&lt;<a href="mailto:pygospa@web.de">pygospa@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Squeakers,<br>
<br>
I&#39;ve just been reading through the Laser Game Manual by Stephan B Wessels, and stumbled upon the section where he suggested a method for leaving notes, i.e. ToDos in the source code (<a href="http://squeak.preeminent.org/tut2007/html/035B.html" target="_blank">http://squeak.preeminent.org/tut2007/html/035B.html</a>).<br>


<br>
He suggests to enhance the Object class with a new method &quot;revisit: aString&quot;, that doesn&#39;t have a method body. Instead every subclass of Object where we want to leave notes, we&#39;ll just send us a message, e.g. &quot;self revisit: &#39;I still need to think about a more effective algorithm here&#39;&quot;.<br>


<br>
The trick is that now you can search for all senders of &quot;revisit:&quot; and have all your ToDos in one place.<br>
<br>
What do you think about this approach?<br>
<br>
<br>
<br>
Personally I dislike it. Though it is an interesting approach I somehow feel like cheating on the purpose of methods and messages. I don&#39;t know how to put it into better words, it just doesn&#39;t feel like neat, clean object oriented programming to me.<br>


<br>
What do you think? And, more important, how do you keep track of your ToDos? How do you keep them in your comments, and how do you make them available to yourself in an overview?<br>
<br>
Greetings,<br>
pygospa<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG/MacGPG2 v2.0.11 (Darwin)<br>
<br>
iEYEARECAAYFAkxUH7sACgkQSspvMUAssY4ipQCcDtbuAA4ixx+15WKq+qc6y2Tg<br>
lgIAn2VrWRaslTgv4mSgRSb9KICnlJnp<br>
=eVRL<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br>