1. Organizing code visually

 

Organizing code visually

Learning the language of coding and programming is really about learning to solve problems. And, like a lot of complex problems, it sometimes helps to look at things a little differently. Follow along with the example below.


  • SAMPLE LESSON: USING POST-IT® PRODUCTS TO ORGANIZE CODE

    A large part of learning to write computer code is figuring out why your code doesn’t work the way you expect. Breaking up your code and laying it out on Post-it® Products can help you see it more clearly, so you can figure out where coding errors are.

  • 1

    Start with your code compiler open on your computer, so you can see the program that’s not compiling correctly.

  • 2

    Next to your computer, write the code out on Post-it® Super Sticky Notes and Post-it® Page Markers and lay it out so you can see it clearly. Use blue for any essential or static parts of the code, and then use one color for each method or function. Use a new Post-it® Super Sticky Note or Post-it® Page Marker color after each bracket. 

    Next to your computer, write the code out on Post-it® Super Sticky Notes and Post-it® Page Markers and lay it out so you can see it clearly

  • 3

    Writing the code on Post-it® Products and laying it out visually can make it easier to see coding errors. Once you see the errors, move any lines of code that are out of order to the correct place in your Post-it® Super Sticky Notes layout.

    Writing the code on Post-it® Products and laying it out visually can make it easier to see coding errors

  • 4

    Now move the lines of code in the compiler so they are in the correct order. When you type your code into the compiler and it doesn’t work, you’ll have any easy visual tool you can use to help solve the problem.

    Now move the lines of code in the compiler so they are in the correct order.

study technology programming development code super_sticky_notes page_markers

TAGS
    Follow Post-it® Brand
    Post-it Brand is a trademark of 3M.