Follow an arbitrary rule they said.
It'll be fine, they said.
We have discovered the source of all the perfection that they said.
There can never be anything that violates the rules they have said.
You obviously never wrote code …
A formatting guide is great and helps people answer the same question with a predictable answer.
But – and there is always a but – you write code because it never had to be written that way for that purpose.
That's why it's new, novel (even if it's a non-original copy, paste, and rename), and you've never seen it before.
How would they have a & # 39; rule & # 39; can write that is universally applicable without having considered the entire universe? Note – you could not have …
At best, this limit of 80 characters may be generally useful rule of thumb, And I can see that it has some basis in print media and well formatted documents.
However you forgot something – usefulness, What I mean for the original intention of the rule of thumb Maximum 80 characters.
- The URL does not work if you manually wrap it in lines by inserting unnecessary spaces.
Which is more professional for a newsreader, a book author or a web designer? It is likely that the link will be word-wrapped at approximately 80 characters, using the media's conventions and standards to alert the reader, or using the available technologies to render the link in a user-friendly manner.
Which is more professional for a programmer?
If you had the choice to hire two programmers:
- one who has nicely formatted the URL,
- and one who did not.
But same in every other way. Which one would you hire?
I would hire the one who did not, because he was professional enough to understand the goal by not making life more difficult for the next developer.