Re: Multiple datepicker
Grant Wagner wrote:[color=blue]
> Richard Cornford wrote:[/color]
<snip>[color=blue][color=green]
>> ... is still very fractionally faster than
>> the original - LastOfMonth -.[/color]
>
> And any execution time you might have gained was time lost
> figuring all that out. The users' time waiting for the number
> of days in a month is effectively "free" (since it is so short
> on a per instance basis) and your time is not. I get it though,
> producing the optimal algorithm for a given problem can be fun,
> I do it myself sometimes.[/color]
<snip>
There is the (not everyone's idea of) fun aspect of optimum algorithms,
but I find that activity useful anyway because recognising an efficient
formulation in one context may make its applicability more obvious in
another (where it may be more significant).
In most respects the speed of date calculations in form validation is
not significant, but the Date object is not without its limitations.
There are, for example, implementations with a 32 bit milliseconds
representation so they are range limited to between some time in 1901
and 2039 (as I recall). Not a problem in most current (and especially
commercial) contexts but for something like a DHTML animation relating
star positions to date a combination of a large (and known) date range
and fast execution might be useful.
<snip>[color=blue]
> Again, don't get me wrong, I'm not criticizing at all. I'm just
> contributing something to the discussion (I hope), but pointing
> out that sometimes the "optimal" solution isn't necessarily the
> "best" solution (especially if someone else is paying for the
> "optimal" solution).[/color]
<snip>
I wouldn't argue with that.
Richard.
Grant Wagner wrote:[color=blue]
> Richard Cornford wrote:[/color]
<snip>[color=blue][color=green]
>> ... is still very fractionally faster than
>> the original - LastOfMonth -.[/color]
>
> And any execution time you might have gained was time lost
> figuring all that out. The users' time waiting for the number
> of days in a month is effectively "free" (since it is so short
> on a per instance basis) and your time is not. I get it though,
> producing the optimal algorithm for a given problem can be fun,
> I do it myself sometimes.[/color]
<snip>
There is the (not everyone's idea of) fun aspect of optimum algorithms,
but I find that activity useful anyway because recognising an efficient
formulation in one context may make its applicability more obvious in
another (where it may be more significant).
In most respects the speed of date calculations in form validation is
not significant, but the Date object is not without its limitations.
There are, for example, implementations with a 32 bit milliseconds
representation so they are range limited to between some time in 1901
and 2039 (as I recall). Not a problem in most current (and especially
commercial) contexts but for something like a DHTML animation relating
star positions to date a combination of a large (and known) date range
and fast execution might be useful.
<snip>[color=blue]
> Again, don't get me wrong, I'm not criticizing at all. I'm just
> contributing something to the discussion (I hope), but pointing
> out that sometimes the "optimal" solution isn't necessarily the
> "best" solution (especially if someone else is paying for the
> "optimal" solution).[/color]
<snip>
I wouldn't argue with that.
Richard.
Comment