Pages as unit of measurement for source code?
I occasionally see pages to describe length of source code and I've always wondered what does this mean exactly. A good example is this coding standard that states:
Functions should limit themselves to a single page of code.
This makes sense if the code is printed on paper. But what does this mean in other contexts? The amount of code that fits on the screen at once?
Posted Dec 23, 2018, 11:13 PM UTC
Yah they mean a single screen's worth or code. It's a pretty soft measurement for a pretty soft rule. On the spectrum from vertical monitor to stereotypical IDE user could be hundreds of lines or 4.
This is the correct answer. It's just a soft guideline. If your method/function doesn't fit on a single screen it's generally a good indication it's too long.