Back to the Learning

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

Tell, Don't Ask

Run Time 19:29

As a general rule of thumb, it's best to tell your objects what to do, rather than asking them for their state, and then deciding what to call next, based upon this output. This is referred to as "Tell, Don't Ask." Let's about it more in this lesson.

Publish Date: November 5, 2014