10
Should I close the PHP tag <?php
with the ?>
? A friend with more experience recommended me not to close saying that it was a "good programming practice", I never understood why, but I follow the recommendation since then.
Is this really good practice? Why?
So "good practices" are always hideous, they’ve seen repeated mantras without context. Never use good practice. Do the right thing in each context. If you don’t know "the right thing" you are missing in some way, even following a "good practice". Programming by coincidence is still a mistake. The advice I can give you is to always ask for a reasoned explanation of what the person is saying when they suggest you do something in programming (this goes for blogs and answers in Sopt :) ). Know "why?" is the most important part of programming and probably any area of knowledge.
– Maniero
It’s a Newbie coding style Recommendation. That’s Why it’s typically mentioned in Introductory Books. I’ve grown accustomed to removing since I spent hours and hours hunting for the extra space bug at the end of the file.
– brasofilo