This likely is the equivalent of having sore muscles the day after runnning a marathon.
Phrased bluntly, "don't do that" likely is the way to prevent this from happening.
If there are no other reasons than "I was coding on my 13" MBP for 5 hours straight" to explain your symptoms, and the symptoms really are limited to "tight and sore" (as opposed to painful) I would expect your doctor to tell you just that, but a bit more politely, likely with the tip to take regular breaks.
If your doctor refers you to a specialist, I would hope it to be one on ergonomics, to prevent future problems.
That's exactly the kind of specialist I was thinking of.
Please don't get a diagnosis from random anecdotes. There are people who've studied the subject and are qualified to diagnose and prescribe a treatment. Wouldn't it be best to go to them? Also, for posture, an ergonomic specialist might be able to help.