O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Why Use Procedures?

Using procedures to name sequences of code gives you two advantages:

Image You can hide the work required to perform a task, which could be big and complicated, behind a single block that has a descriptive name.

Image You can reduce duplicate code, which makes your app easier to debug, update, and read. Having an excessive number of duplicated blocks can make debugging or changing an app needlessly difficult.

When creating a procedure, it is always a good idea to assign it a descriptive name. This adds meaning and makes it easier for you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required