Re: Function size
| From: | Tedd Sperling | Date: | Tue, 29 May 2012 15:56:47 +0000 |
| Subject: | Re: Function size | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318021@lists.php.net to get a copy of this message | ||
On May 29, 2012, at 10:20 AM, Stuart Dallas wrote:
> -snip-
> Besides, truth is subjective, but then so is everything, including that assertion.
>
> -Stuart
You reply was longer than my monitor was high so I can't give an immediate reply -- I have to
scroll. :-)
However, with that said, you made good points and I don't disagree with any of them.
As for me, I was speaking from my experience where the size of my functions over the last few
decades has grown (up to a point) with my increasing monitor size. However, my eyesight has not
improved and thus should be figured into this somehow.
As I said before, mine is just an observation that supports the limits in reception/comprehension
articles I have read.
I think your 24 line terminal vs the 30" monitor argument is a valid one, up to a point. But I
think the problems (if any) would depend upon many factors -- too numerous to elaborate here.
But let me pose an idea.
When I was in college, my degrees were in Geology. My Summer Field study (6 weeks) was to map out
Geologic outcrops on a USGS topographic map. At the end of the study, all maps that matched the
Professors' maps, were given the highest grades (mine the highest in all modesty). Not because
they were alike, but because they approached the "truth" of the matter. The truth here was
not subjective for there was only ONE defining truth and that could be discovered by detailed
mapping. We all (including the Professors) approached the same problem in the same way and reached
similar results. The closer to the truth, the more similar the maps.
Over the years I've seen programming languages converge producing single solutions for common
tasks, such as a FOR loop and IF statements. These seem to be universal constructs in programming
logic. So my question is, as in my Geology study "Is this convergence in programming logic
discovering the truth of the task?" Do you see what I mean?
If so, then maybe the way we break down problems into smaller subsets might also be approaching an
optimum method as well. I used to use (30+ years ago): 1) Input; 2) Calculation; 3) Display; as the
main categories in my division logic to tackle problems and that was long before I heard of MVC.
So, what I am saying is that we might all be approaching and contributing to an overall optimal
logical solution in programming. Kind of an ant-colony think sort of thing. The solution is
certainly not simple, but it might be an universally single solution to all the problems we
perceive.
Said only for "Food for thought".
Cheers,
tedd
_____________________
tedd.sperling@gmail.com
http://sperling.com