Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

BBC: Breaking Backward Compatibility
Hello Justin & QA folks,
First I have to admit my aim was not so clear in our last
"[PEAR-QA] BC, testing, BBC" discussion... apologies.
As I review the exchanges, the point is more Breaking Backward
Compatibility (BBC).

Again, BBC should never occur, that's the strength of PHP+pear.
But PHP+pear is deeply involved in some hot world
with the web, technologies ... permanently moving.
So as you mentionned, some objectives as security cannot be skipped
and must eventually lead to a BBC.
It's also sometimes very cruel not to get some better existing
functionnality
just because BBCs are to be avoid.

The way to go over BBC by producing a second package as PHPUnit / PHPUnit2
should be absolutely reserved to major review of the package as here,
PHP4-->PHP5.
(in this case PHPUnit5 could have been more "talking")
Just because a second package can double the maintenance.

So, BBC could be admissible in extreme cases.
Sure it must be then documented and exampled.
Possibly some patches, awk ... to semi-automate scripts' adaptation.

More over, as little people read the doc and changelogs,
explicit warnings are to be introduced,
in the sources, but ALSO during the installation/upgrade.
e.g. package "aPckg" was upgraded with a BBC, and install is run:

$ pear upgrade aPckg
WARNING: due to ... reason, aPckg breaks backward compatibility,
so if you use ... feature, take care to adapt your scripts as documented
in ... URL
Go ahead ? (y/n) : _

If this feature allready exists in pear, how to use it ?
Ã_+
bertrand Gugger (toggg)

Report this thread to moderator Post Follow-up to this message
Old Post
Bertrand Gugger
11-21-04 01:55 PM


Re: BBC: Breaking Backward Compatibility
On Sun, 21 Nov 2004 13:31:35 +0100, bertrand Gugger <bertrand@toggg.com> wrote:
> Hello Justin & QA folks,
> First I have to admit my aim was not so clear in our last
> "[PEAR-QA] BC, testing, BBC" discussion... apologies.
> As I review the exchanges, the point is more Breaking Backward
> Compatibility (BBC).
>
> Again, BBC should never occur, that's the strength of PHP+pear.
> But PHP+pear is deeply involved in some hot world
> with the web, technologies ... permanently moving.
> So as you mentionned, some objectives as security cannot be skipped
> and must eventually lead to a BBC.
> It's also sometimes very cruel not to get some better existing
> functionnality
> just because BBCs are to be avoid.
>
> The way to go over BBC by producing a second package as PHPUnit / PHPUnit2
> should be absolutely reserved to major review of the package as here,
> PHP4-->PHP5.
> (in this case PHPUnit5 could have been more "talking")
> Just because a second package can double the maintenance.
>
> So, BBC could be admissible in extreme cases.
> Sure it must be then documented and exampled.
> Possibly some patches, awk ... to semi-automate scripts' adaptation.
>
> More over, as little people read the doc and changelogs,
> explicit warnings are to be introduced,
> in the sources, but ALSO during the installation/upgrade.
> e.g. package "aPckg" was upgraded with a BBC, and install is run:
>
> $ pear upgrade aPckg
> WARNING: due to ... reason, aPckg breaks backward compatibility,
> so if you use ... feature, take care to adapt your scripts as documented
> in ... URL
> Go ahead ? (y/n) : _
>
> If this feature allready exists in pear, how to use it ?

Sorry Bertrand, but this has been discussed extensively already. The
major version update is there for many reasons that have already been
debated, not the least of which is that people often upgrade without
thinking and end up with unusable scripts. Furthermore many people use
other people's code and if upgrading PEAR breaks that code they may
not be able to fix it.

If updating a package makes lots of BC breaks, then it either hasn't
been architected right or should still be unstable.

--
Justin Patrin

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
11-22-04 01:56 AM


Re: BBC: Breaking Backward Compatibility
Back on one point, justin,
Justin Patrin wrote:

>On Sun, 21 Nov 2004 13:31:35 +0100, bertrand Gugger <bertrand@toggg.com> wr
ote:
>
> 
>Sorry Bertrand, but this has been discussed extensively already.
>
>
Why no archive of it ? Or where is it?
I agree no BC within a given package name.
Anyway what means BC ?
à+
bertrand

Report this thread to moderator Post Follow-up to this message
Old Post
Bertrand Gugger
11-22-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP PEAR Questions and Answers archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:32 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.