Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Writing code can sometimes be the most difficult part of any project. If you don’t organize everything from the start – especially for big projects — the coding processes and code management afterwards may end up not just time consuming, but also a big headache.

Good code is maintainable, reusable, and testable. The following tips address how you can approach different coding tasks and how to keep everything as neat as possible.


Panel
borderColor#dfe1e5
bgColor#eff9ff
borderWidth2
titlePage content

Table of Contents


Plan your coding

When starting up a big project og an advanced function, having a pre-made plan will often save you a lot of time. Even though everything seems clear at first, you may have forgotten or will forget something crucial while writing.

A good plan should contain information about your coding approach, when the different variables are known and unknown, and what the output of each code block is supposed to be. Knowing all this information in advance will help you locate difficult sections of your code, as well as preventing unnecessary code or rewriting.