On Fri, 10 Jun 2016 15:31:11 +0300, Marko Rauhamaa wrote: > alister <alister.w...@ntlworld.com>: > >> Or more simply a hard fixed RULE (MUST be less than X lines) is Bad. > > It's not X lines, it's "you must see the whole function at once." > > If your display can show 1,500 lines at once, that's your limit. Mine > shows 70. > >> a flexible GUIDELINE on the other hand is reasonable. > > There are rare exceptions to every rule. > >> after all an efficient function could be be X=1 lines, abriatrily >> spliting this could make the final function less readable & possibly >> even longer in total. > > Splitting functions requires taste and skill but, when done properly, > guarantees easier reading and higher quality. As you refactor your > function, you notice clumsy and questionable idioms and end up tidying > the logic up in the process. > > > Marko
you think I am arguing? i am not (excpet possibly on symantics) your "you must see the whole function on one page" stipulation should be treated as guidance & not a rule preferably it should read "You 'SHOULD' be able to see the whole function on one page. and as you quite rightly state there are always exceptions as enshrined in the zen "Practicality beats Purity" -- Must I hold a candle to my shames? -- William Shakespeare, "The Merchant of Venice" -- https://mail.python.org/mailman/listinfo/python-list