One of the guidelines that annoy me the most is the Maximum Line Length guideline.
I can follow it most of the time, but when I have a REALLY long string, I just can’t.
The following example violations the < 80 characters rule:
text = "We hereby declare the establishment of a Jewish state in Eretz-Israel, to be known as the State of Israel."
A quick fix would be to break the text to multiple lines and add
Not the prettiest solution, but there’s no other way, right?
text = "We hereby declare the establishment " \
I just found out that breaking the text and adding parenthesis has the same effect:
text = ("We hereby declare the establishment "
Not life changing, and I’m a bit embarrassed that it took me five years to figure this out.
I believe some of you didn’t know that either, so I’m taking one for the team :)