concept sense in category ios

appears as: sense, sense
Anyone Can Create an App: Beginning iPhone and iPad programming

This is an excerpt from Manning's book Anyone Can Create an App: Beginning iPhone and iPad programming.

You may have fewer steps or more steps than what I’ve written down, but that doesn’t mean that either of our lists is “more correct” or “less correct.” You should be clear on the steps needed for painting when you look at your list. Does it make sense to you? Is it complete enough that you can walk through it logically and understand it? Then it’s good. You wrote pseudocode for painting. There is no right or wrong pseudocode, unless your end result doesn’t produce a beautifully painted wall. You go through the steps as many times as needed to get the result you want.

The steps say, “Get out rollers, drop cloths” and so on. They don’t say “Get out rollers, drop cloths, make sure they are clean, set them in the room to paint, take the wrapper off the roller if it is new,” and so forth. I’ve painted so many rooms that I think of this step as part of the “Get out the rollers” step. It makes sense to me. You need to make sure your steps make sense to you. We’ll walk through many pseudocode examples for the exercises and code in this book, so you’ll have plenty of time to practice and learn. Remember: the key is to list out what it will take to accomplish the steps so it makes sense to you. There is no right or wrong way to do it, as long as the end result is achieved in a logical, ordered way.

Make sense? Try coding the entire statement and make i and j equal to 5. Then code the final else statement yourself. Figure 9.5 shows what mine looks like.