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

Name Well

One of the hardest parts of programming—and computer science—is choosing names. This is no joke—it really is difficult, and it is critically important. No, the computer and phone don’t care what you named your button. But for humans, this is a big deal.

Names are more than just a word or two to describe what something does. The process of naming causes you to think about what it should do and what it should not do. You might have a button named submit_button, for example. This name makes it clear to others, and to you, that the button is used in the process of submitting something. It is not for clearing the screen or any other function. It is for submitting.

As another example, a variable might be named sum, and that could be a good ...

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