Tk Library Source Code

View Ticket
Login
Ticket UUID: 459186
Title: counter & stats modules are almost same
Type: Bug Version: None
Submitter: hemanglavana Created on: 2001-09-06 14:24:37
Subsystem: stats - deprecated Assigned To: welch
Priority: 4 Severity:
Status: Closed Last Modified: 2003-04-29 15:42:34
Resolution: Out of Date Closed By: patthoyts
    Closed on: 2003-04-29 08:42:34
Description:
A cursory look at the diffs of counter.tcl and stats.tcl files
gives the impression that both are essentially the same.
Moreover, the ChangeLog file under counter module says:

2000-10-02  Brent Welch <[email protected]>

        * NAME CHANGE from "stats" to "counter"
        * counter.tcl: Changed shading of histogram labels.


I think having two such modules with almost the same 
functionality can lead to several problems, including confusing
users on which module to use as well as code maintenance.

Therefore, it would be best to delete one of the two modules
-- I don't care which one. It it is not possible to delete one of the
modules then the procs common to both should be merged into
a single new library module and then both the modules should 
refer/call the procs in the new library module.
User Comments: patthoyts added on 2003-04-29 15:42:34:
Logged In: YES 
user_id=202636

stats has been deleted.

welch added on 2002-06-11 09:48:18:
Logged In: YES 
user_id=89720

We should delete stats.
When I changed it from "stats" to "counter" I left the old
module in
for a transition period, but that has long since expired. 
There are
no current releases of TclHttpd that depend on stats
anymore.

andreas_kupries added on 2002-06-08 03:58:46:
Logged In: YES 
user_id=75003

Stats is deprecated and not distributed anymore.

lvirden added on 2001-10-02 21:37:23:
Logged In: YES 
user_id=15949

Perhaps a compatibility tool could be made available in a
seperate directory.  If someone needed the stat they could
install it and references to stat would create aliases to
the counter classes.

ericm added on 2001-09-07 07:17:05:
Logged In: YES 
user_id=86324

I don't think it's necessary to be quite so cautious with
the deprecation and
removal of the module.  Tcllib only just hit v1.0; I don't
think we need to have quite the same rigorous procedures
that the tcl core follows.  Just
delete the deprecated module.  If you want to, add a
"package ifneeded stats ..." to counter's pkgIndex.tcl, and
maybe have it print out a warning
on stderr that it's actually loading counter.  Let's try to
keep tcllib nimble
while we can.

Eric Melski
The Other Tcl Guy
Interwoven, Inc.

andreas_kupries added on 2001-09-07 00:00:05:
Logged In: YES 
user_id=75003

As far as I am aware "stats" is deprecated.
Assigned to Brent for verification.

A first step would be to remove the deprecated module
from the installation commands in the makefile.

A second step would be to remove the files and add a README
refering the user to the other module. Or to remove the 
directory completely. The SF cvs supports this.