Tell, Don’t Ask

The post over at pragmatic programmer is timely for me because Tell, Don’t Ask is a concept that I have outlined in a programming style presentation for my new team.

The quote at the beginning of the article is perfect:

     Procedural code gets information then makes decisions. Object-oriented code tells objects to do things.
     — Alec Sharp 

This is a great example of taking a complex concept and boiling it down to one phrase. That is something that I try to do as much as possible. It forms a great foundation for effective communication.

This entry was posted in programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>