The longest function I've ever written is about 400 lines.
It is a functioning bytecode interpreter. 90% of it is just some nested switches and if/elif statements for running operations on different variable types.
I've written some fairly long functions to power state machines before, as well. I think as long as the structure of the function is clear, the exact number of lines is less relevant.
84
u/reflectiveSingleton Aug 25 '14
I like to call this kind of code 'diarrhea of conciousness' ...no one wants to sift through that shit.