Author Topic: coding style question: what is the line length limit?  (Read 4428 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
coding style question: what is the line length limit?
« on: September 03, 2014, 05:00:07 pm »
I don't see this on Coding style - CodeBlocks
So, what is the preferred value?
My screen is still 1280*800, and I think 100 or 80 is OK, but if it is 120, then I can not see the whole line in the screen.  :(
Maybe, you have a bigger screen resolution. :)
what do you think?
« Last Edit: September 03, 2014, 05:05:42 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline SteelRat

  • Multiple posting newcomer
  • *
  • Posts: 45
  • Stainless
Re: coding style question: what is the line length limit?
« Reply #1 on: September 03, 2014, 05:54:58 pm »
I'm trying to stick to 80. With any resolution. I think it's just tradition for me.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: coding style question: what is the line length limit?
« Reply #2 on: September 03, 2014, 09:40:57 pm »
120...
80 makes the code pretty ugly.
1600x1200 or full hd monitors.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]