Avoid dead notes
If you are a programmer, you know dead code. But do dead notes exist as well. They do. I will give you a comoposition, with jumps and you will find that the notes in bar 5 will never be played. A picture displays this even better.
Avoid this kind of composition as dead notes are even worse than dead code.