General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Winnetou17
Mental Outlaw
comments
Comments by "Winnetou17" (@Winnetou17) on "Dwm, Suckless, Simple, yet Powerful 👍" video.
But that would not count ifs and fors and whiles. And sometimes there's significant work done there.
20
@mrmoinn True, for loops usually have 3 declaration parts, separated by semicolons. What I was thinking was more on the test condition. On ifs in particular, sometimes you have multiple expressions there, and a few of them can be quite complicated. And it's no semicolons there.
3
@mrmoinn LoL, haven't thought that far. Regarding code that's like all the statements in a single line, eventually also "glued" together by gimmicks like comma or !! in Javascript - these cases I'd say they can simply be ignored. Just have a beautify/code formatting tool do its thing and count the lines of the result. While we're here, any binary operator (binary as in takes two operands) should be counted as a semicolon. Yeah, I agree that attributes/decorators/whatever should also count. This thing is hard! Maybe we should just count the abstract syntax tree size and be done with it, lol.
1