Hello, Igniters.
Right now, we have a code style rule [1] - the line should fit in 120 characters. But, this rule violated in many and many places through code. I have a plan to add a check style rule to force maximum line length. For me, personally, 120 characters a bit old-fashioned restriction. Should we increase the maximum line length to 150 or even 180 characters? [1] https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines |
Hello! Please find attached the distribution of line lengths in the project, in the form of (count, line length). I think that we can enforce a hard limit of 140 chars per line. I think that having longer lines is excessive and does not benefit readability. Having a limit of 150 or 180 does not give us much since there's still a long tail which has to be fixed. Regards, -- Ilya Kasnacheev чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov <[hidden email]>: Hello, Igniters. |
Hello, Ilya.
Thanks for the feedback. 140 characters is fine for me. > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev <[hidden email]> написал(а): > > Hello! > > Please find attached the distribution of line lengths in the project, in the form of (count, line length). > > I think that we can enforce a hard limit of 140 chars per line. I think that having longer lines is excessive and does not benefit readability. > > Having a limit of 150 or 180 does not give us much since there's still a long tail which has to be fixed. > > Regards, > -- > Ilya Kasnacheev > > > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov <[hidden email]>: > Hello, Igniters. > > Right now, we have a code style rule [1] - the line should fit in 120 characters. > But, this rule violated in many and many places through code. > I have a plan to add a check style rule to force maximum line length. > > For me, personally, 120 characters a bit old-fashioned restriction. > Should we increase the maximum line length to 150 or even 180 characters? > > [1] https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines > <linelengths.txt> |
Hi!
Personally, I suppose that 120 chars per line is OK. Moreover, many codestyles suggests less chars per line. For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 codestyle checks it). Google java codestyle insists on 100. More than 120 chars is too long as for me and is not convenient for 3-way merges. чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov <[hidden email]>: > Hello, Ilya. > > Thanks for the feedback. > > 140 characters is fine for me. > > > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev <[hidden email]> > написал(а): > > > > Hello! > > > > Please find attached the distribution of line lengths in the project, in > the form of (count, line length). > > > > I think that we can enforce a hard limit of 140 chars per line. I think > that having longer lines is excessive and does not benefit readability. > > > > Having a limit of 150 or 180 does not give us much since there's still > a long tail which has to be fixed. > > > > Regards, > > -- > > Ilya Kasnacheev > > > > > > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov <[hidden email]>: > > Hello, Igniters. > > > > Right now, we have a code style rule [1] - the line should fit in 120 > characters. > > But, this rule violated in many and many places through code. > > I have a plan to add a check style rule to force maximum line length. > > > > For me, personally, 120 characters a bit old-fashioned restriction. > > Should we increase the maximum line length to 150 or even 180 characters? > > > > [1] https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines > > <linelengths.txt> > > -- Sincerely yours, Ivan Daschinskiy |
Hello!
Let me clarify: I think that we should keep the "soft" 120 chars limit in CC, but introduce a hard limit of 140 in checkstyle, since it should not be too much work or annoy too much. In the future we may wish to harmonize the two. Regards, -- Ilya Kasnacheev чт, 15 апр. 2021 г. в 12:37, Ivan Daschinsky <[hidden email]>: > Hi! > Personally, I suppose that 120 chars per line is OK. Moreover, many > codestyles suggests less chars per line. > For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 > codestyle checks it). Google java codestyle insists on 100. > > More than 120 chars is too long as for me and is not convenient for 3-way > merges. > > чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov <[hidden email]>: > > > Hello, Ilya. > > > > Thanks for the feedback. > > > > 140 characters is fine for me. > > > > > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev <[hidden email]> > > написал(а): > > > > > > Hello! > > > > > > Please find attached the distribution of line lengths in the project, > in > > the form of (count, line length). > > > > > > I think that we can enforce a hard limit of 140 chars per line. I think > > that having longer lines is excessive and does not benefit readability. > > > > > > Having a limit of 150 or 180 does not give us much since there's still > > a long tail which has to be fixed. > > > > > > Regards, > > > -- > > > Ilya Kasnacheev > > > > > > > > > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov <[hidden email]>: > > > Hello, Igniters. > > > > > > Right now, we have a code style rule [1] - the line should fit in 120 > > characters. > > > But, this rule violated in many and many places through code. > > > I have a plan to add a check style rule to force maximum line length. > > > > > > For me, personally, 120 characters a bit old-fashioned restriction. > > > Should we increase the maximum line length to 150 or even 180 > characters? > > > > > > [1] > https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines > > > <linelengths.txt> > > > > > > -- > Sincerely yours, Ivan Daschinskiy > |
> I think that we should keep the "soft" 120 chars limit in CC, but introduce a hard limit of 140 in checkstyle
Works for me. > 15 апр. 2021 г., в 14:21, Ilya Kasnacheev <[hidden email]> написал(а): > > Hello! > > Let me clarify: I think that we should keep the "soft" 120 chars limit in > CC, but introduce a hard limit of 140 in checkstyle, since it should not be > too much work or annoy too much. > > In the future we may wish to harmonize the two. > > Regards, > -- > Ilya Kasnacheev > > > чт, 15 апр. 2021 г. в 12:37, Ivan Daschinsky <[hidden email]>: > >> Hi! >> Personally, I suppose that 120 chars per line is OK. Moreover, many >> codestyles suggests less chars per line. >> For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 >> codestyle checks it). Google java codestyle insists on 100. >> >> More than 120 chars is too long as for me and is not convenient for 3-way >> merges. >> >> чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov <[hidden email]>: >> >>> Hello, Ilya. >>> >>> Thanks for the feedback. >>> >>> 140 characters is fine for me. >>> >>>> 15 апр. 2021 г., в 12:25, Ilya Kasnacheev <[hidden email]> >>> написал(а): >>>> >>>> Hello! >>>> >>>> Please find attached the distribution of line lengths in the project, >> in >>> the form of (count, line length). >>>> >>>> I think that we can enforce a hard limit of 140 chars per line. I think >>> that having longer lines is excessive and does not benefit readability. >>>> >>>> Having a limit of 150 or 180 does not give us much since there's still >>> a long tail which has to be fixed. >>>> >>>> Regards, >>>> -- >>>> Ilya Kasnacheev >>>> >>>> >>>> чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov <[hidden email]>: >>>> Hello, Igniters. >>>> >>>> Right now, we have a code style rule [1] - the line should fit in 120 >>> characters. >>>> But, this rule violated in many and many places through code. >>>> I have a plan to add a check style rule to force maximum line length. >>>> >>>> For me, personally, 120 characters a bit old-fashioned restriction. >>>> Should we increase the maximum line length to 150 or even 180 >> characters? >>>> >>>> [1] >> https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines >>>> <linelengths.txt> >>> >>> >> >> -- >> Sincerely yours, Ivan Daschinskiy >> |
In reply to this post by Ivan Daschinsky
Python is not so verbose as java ) +1 for 140 >Hi! >Personally, I suppose that 120 chars per line is OK. Moreover, many >codestyles suggests less chars per line. >For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 >codestyle checks it). Google java codestyle insists on 100. > >More than 120 chars is too long as for me and is not convenient for 3-way >merges. > >чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov < [hidden email] >: > >> Hello, Ilya. >> >> Thanks for the feedback. >> >> 140 characters is fine for me. >> >> > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev < [hidden email] > >> написал(а): >> > >> > Hello! >> > >> > Please find attached the distribution of line lengths in the project, in >> the form of (count, line length). >> > >> > I think that we can enforce a hard limit of 140 chars per line. I think >> that having longer lines is excessive and does not benefit readability. >> > >> > Having a limit of 150 or 180 does not give us much since there's still >> a long tail which has to be fixed. >> > >> > Regards, >> > -- >> > Ilya Kasnacheev >> > >> > >> > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov < [hidden email] >: >> > Hello, Igniters. >> > >> > Right now, we have a code style rule [1] - the line should fit in 120 >> characters. >> > But, this rule violated in many and many places through code. >> > I have a plan to add a check style rule to force maximum line length. >> > >> > For me, personally, 120 characters a bit old-fashioned restriction. >> > Should we increase the maximum line length to 150 or even 180 characters? >> > >> > [1] https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines >> > <linelengths.txt> >> >> >-- >Sincerely yours, Ivan Daschinskiy |
But super long lines are a real problem while merging. It is super
inconvenient. 120 chars is a good compromise. чт, 15 апр. 2021 г. в 14:39, Zhenya Stanilovsky <[hidden email] >: > > Python is not so verbose as java ) > +1 for 140 > > >Hi! > >Personally, I suppose that 120 chars per line is OK. Moreover, many > >codestyles suggests less chars per line. > >For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 > >codestyle checks it). Google java codestyle insists on 100. > > > >More than 120 chars is too long as for me and is not convenient for 3-way > >merges. > > > >чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov < [hidden email] >: > > > >> Hello, Ilya. > >> > >> Thanks for the feedback. > >> > >> 140 characters is fine for me. > >> > >> > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev < [hidden email] > > > >> написал(а): > >> > > >> > Hello! > >> > > >> > Please find attached the distribution of line lengths in the project, > in > >> the form of (count, line length). > >> > > >> > I think that we can enforce a hard limit of 140 chars per line. I > think > >> that having longer lines is excessive and does not benefit readability. > >> > > >> > Having a limit of 150 or 180 does not give us much since there's still > >> a long tail which has to be fixed. > >> > > >> > Regards, > >> > -- > >> > Ilya Kasnacheev > >> > > >> > > >> > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov < [hidden email] >: > >> > Hello, Igniters. > >> > > >> > Right now, we have a code style rule [1] - the line should fit in 120 > >> characters. > >> > But, this rule violated in many and many places through code. > >> > I have a plan to add a check style rule to force maximum line length. > >> > > >> > For me, personally, 120 characters a bit old-fashioned restriction. > >> > Should we increase the maximum line length to 150 or even 180 > characters? > >> > > >> > [1] > https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines > >> > <linelengths.txt> > >> > >> > >-- > >Sincerely yours, Ivan Daschinskiy > > > > -- Sincerely yours, Ivan Daschinskiy |
Folks,
I've briefly checked the total amount of the max length violations: 120 line length - 5540 violations 130 line length - 1891 violations 140 line length - 895 violations 150 line length - 478 violations I think the 140 max line length might be the best option for us. On Thu, 15 Apr 2021 at 14:51, Ivan Daschinsky <[hidden email]> wrote: > > But super long lines are a real problem while merging. It is super > inconvenient. > 120 chars is a good compromise. > > чт, 15 апр. 2021 г. в 14:39, Zhenya Stanilovsky <[hidden email] > >: > > > > > Python is not so verbose as java ) > > +1 for 140 > > > > >Hi! > > >Personally, I suppose that 120 chars per line is OK. Moreover, many > > >codestyles suggests less chars per line. > > >For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 > > >codestyle checks it). Google java codestyle insists on 100. > > > > > >More than 120 chars is too long as for me and is not convenient for 3-way > > >merges. > > > > > >чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov < [hidden email] >: > > > > > >> Hello, Ilya. > > >> > > >> Thanks for the feedback. > > >> > > >> 140 characters is fine for me. > > >> > > >> > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev < [hidden email] > > > > > >> написал(а): > > >> > > > >> > Hello! > > >> > > > >> > Please find attached the distribution of line lengths in the project, > > in > > >> the form of (count, line length). > > >> > > > >> > I think that we can enforce a hard limit of 140 chars per line. I > > think > > >> that having longer lines is excessive and does not benefit readability. > > >> > > > >> > Having a limit of 150 or 180 does not give us much since there's still > > >> a long tail which has to be fixed. > > >> > > > >> > Regards, > > >> > -- > > >> > Ilya Kasnacheev > > >> > > > >> > > > >> > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov < [hidden email] >: > > >> > Hello, Igniters. > > >> > > > >> > Right now, we have a code style rule [1] - the line should fit in 120 > > >> characters. > > >> > But, this rule violated in many and many places through code. > > >> > I have a plan to add a check style rule to force maximum line length. > > >> > > > >> > For me, personally, 120 characters a bit old-fashioned restriction. > > >> > Should we increase the maximum line length to 150 or even 180 > > characters? > > >> > > > >> > [1] > > https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines > > >> > <linelengths.txt> > > >> > > >> > > >-- > > >Sincerely yours, Ivan Daschinskiy > > > > > > > > > > > > -- > Sincerely yours, Ivan Daschinskiy |
+1 for 140 lines compromise.
+1 if someone is ready to fix everything to fit 120. BTW, was there any progress with this? 2021-04-15 21:41 GMT+03:00, Maxim Muzafarov <[hidden email]>: > Folks, > > I've briefly checked the total amount of the max length violations: > > 120 line length - 5540 violations > 130 line length - 1891 violations > 140 line length - 895 violations > 150 line length - 478 violations > > > I think the 140 max line length might be the best option for us. > > On Thu, 15 Apr 2021 at 14:51, Ivan Daschinsky <[hidden email]> wrote: >> >> But super long lines are a real problem while merging. It is super >> inconvenient. >> 120 chars is a good compromise. >> >> чт, 15 апр. 2021 г. в 14:39, Zhenya Stanilovsky >> <[hidden email] >> >: >> >> > >> > Python is not so verbose as java ) >> > +1 for 140 >> > >> > >Hi! >> > >Personally, I suppose that 120 chars per line is OK. Moreover, many >> > >codestyles suggests less chars per line. >> > >For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 >> > >codestyle checks it). Google java codestyle insists on 100. >> > > >> > >More than 120 chars is too long as for me and is not convenient for >> > > 3-way >> > >merges. >> > > >> > >чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov < [hidden email] >: >> > > >> > >> Hello, Ilya. >> > >> >> > >> Thanks for the feedback. >> > >> >> > >> 140 characters is fine for me. >> > >> >> > >> > 15 апр. 2021 г., в 12:25, Ilya Kasnacheev < >> > >> > [hidden email] >> > > >> > >> написал(а): >> > >> > >> > >> > Hello! >> > >> > >> > >> > Please find attached the distribution of line lengths in the >> > >> > project, >> > in >> > >> the form of (count, line length). >> > >> > >> > >> > I think that we can enforce a hard limit of 140 chars per line. I >> > think >> > >> that having longer lines is excessive and does not benefit >> > >> readability. >> > >> > >> > >> > Having a limit of 150 or 180 does not give us much since there's >> > >> > still >> > >> a long tail which has to be fixed. >> > >> > >> > >> > Regards, >> > >> > -- >> > >> > Ilya Kasnacheev >> > >> > >> > >> > >> > >> > чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov < [hidden email] >> > >> > >: >> > >> > Hello, Igniters. >> > >> > >> > >> > Right now, we have a code style rule [1] - the line should fit in >> > >> > 120 >> > >> characters. >> > >> > But, this rule violated in many and many places through code. >> > >> > I have a plan to add a check style rule to force maximum line >> > >> > length. >> > >> > >> > >> > For me, personally, 120 characters a bit old-fashioned >> > >> > restriction. >> > >> > Should we increase the maximum line length to 150 or even 180 >> > characters? >> > >> > >> > >> > [1] >> > https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines >> > >> > <linelengths.txt> >> > >> >> > >> >> > >-- >> > >Sincerely yours, Ivan Daschinskiy >> > >> > >> > >> > >> >> >> >> -- >> Sincerely yours, Ivan Daschinskiy > -- Best regards, Ivan Pavlukhin |
Hello.
> BTW, was there any progress with this? Patch is ready, please, join the review - https://github.com/apache/ignite/pull/9106 > 10 мая 2021 г., в 09:47, Ivan Pavlukhin <[hidden email]> написал(а): > > +1 for 140 lines compromise. > +1 if someone is ready to fix everything to fit 120. > > BTW, was there any progress with this? > > 2021-04-15 21:41 GMT+03:00, Maxim Muzafarov <[hidden email]>: >> Folks, >> >> I've briefly checked the total amount of the max length violations: >> >> 120 line length - 5540 violations >> 130 line length - 1891 violations >> 140 line length - 895 violations >> 150 line length - 478 violations >> >> >> I think the 140 max line length might be the best option for us. >> >> On Thu, 15 Apr 2021 at 14:51, Ivan Daschinsky <[hidden email]> wrote: >>> >>> But super long lines are a real problem while merging. It is super >>> inconvenient. >>> 120 chars is a good compromise. >>> >>> чт, 15 апр. 2021 г. в 14:39, Zhenya Stanilovsky >>> <[hidden email] >>>> : >>> >>>> >>>> Python is not so verbose as java ) >>>> +1 for 140 >>>> >>>>> Hi! >>>>> Personally, I suppose that 120 chars per line is OK. Moreover, many >>>>> codestyles suggests less chars per line. >>>>> For example PEP8 recommends 80 (but we use 120 in pyignite and flake8 >>>>> codestyle checks it). Google java codestyle insists on 100. >>>>> >>>>> More than 120 chars is too long as for me and is not convenient for >>>>> 3-way >>>>> merges. >>>>> >>>>> чт, 15 апр. 2021 г. в 12:28, Nikolay Izhikov < [hidden email] >: >>>>> >>>>>> Hello, Ilya. >>>>>> >>>>>> Thanks for the feedback. >>>>>> >>>>>> 140 characters is fine for me. >>>>>> >>>>>>> 15 апр. 2021 г., в 12:25, Ilya Kasnacheev < >>>>>>> [hidden email] >>>>> >>>>>> написал(а): >>>>>>> >>>>>>> Hello! >>>>>>> >>>>>>> Please find attached the distribution of line lengths in the >>>>>>> project, >>>> in >>>>>> the form of (count, line length). >>>>>>> >>>>>>> I think that we can enforce a hard limit of 140 chars per line. I >>>> think >>>>>> that having longer lines is excessive and does not benefit >>>>>> readability. >>>>>>> >>>>>>> Having a limit of 150 or 180 does not give us much since there's >>>>>>> still >>>>>> a long tail which has to be fixed. >>>>>>> >>>>>>> Regards, >>>>>>> -- >>>>>>> Ilya Kasnacheev >>>>>>> >>>>>>> >>>>>>> чт, 15 апр. 2021 г. в 11:30, Nikolay Izhikov < [hidden email] >>>>>>>> : >>>>>>> Hello, Igniters. >>>>>>> >>>>>>> Right now, we have a code style rule [1] - the line should fit in >>>>>>> 120 >>>>>> characters. >>>>>>> But, this rule violated in many and many places through code. >>>>>>> I have a plan to add a check style rule to force maximum line >>>>>>> length. >>>>>>> >>>>>>> For me, personally, 120 characters a bit old-fashioned >>>>>>> restriction. >>>>>>> Should we increase the maximum line length to 150 or even 180 >>>> characters? >>>>>>> >>>>>>> [1] >>>> https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines >>>>>>> <linelengths.txt> >>>>>> >>>>>> >>>>> -- >>>>> Sincerely yours, Ivan Daschinskiy >>>> >>>> >>>> >>>> >>> >>> >>> >>> -- >>> Sincerely yours, Ivan Daschinskiy >> > > > -- > > Best regards, > Ivan Pavlukhin |
Free forum by Nabble | Edit this page |