I use 72 as a soft limit, in all projects I work on. Only for my code though, and not when reviewing other people's code. I personally prefer vertical code, and when I am diffing or splitting terminals, the limit comes in handy. More text editors need to support multiple rulers. Of course, you will occasionally get a senior reviewer moaning about all the line breaks, so in that case I just make it a bit more horizontal, and say, meh, whatever!
Also, because it's a soft limit, if I really can't get it to look clean and organised under 72 characters, then I will break this limit.
One benefit about having your own slightly tighter limit, is that if you rename variables, you won't suddenly find that loads of lines have broken any hard limit that the project has defined.
Also, because it's a soft limit, if I really can't get it to look clean and organised under 72 characters, then I will break this limit.
One benefit about having your own slightly tighter limit, is that if you rename variables, you won't suddenly find that loads of lines have broken any hard limit that the project has defined.
Comment