Think of them as guidelines. Use your own common sense, remembering that you can't expect readers to work to decipher what you're trying to say. There are two basic systems of punctuation 1. The loose or open system, which tries to capture the way body language punctuates talk. The tight, closed structural system, which hews closely to the sentence's grammatical structure.
Most writers use a little of both.
In any case, we use much less punctuation than they used 200 or even 50 years ago. If you have to struggle over commas, semicolons and dashes, you've probably built a sentence that's never going to fly, no matter how you tinker with it. Throw it away and build a new one to a simpler design. The better your sentence, the easier it is to punctuate. Choosing the right tool There are 30 main punctuation marks, but you'll need fewer than a dozen for most writing.