I'm working on a project to break up our ball of mud. I'd like to introduce the notion of versioned APIs for packages (essentially different versions of a given package) using semantic versioning (semver.org). My goal is to allow for a structure like:
MyPackage
use YourPackage version 1.0.3;
use OtherPackage version 2.5.6;
YourPackage
use OtherPackage version 3.2.1
Essentially, I don't care what version of OtherPackage YourPackage uses, I only care that the version of YourPackage that I'm using is supported.
Our development team has gotten quite large (well over 200 folks), and trying to synchronize API changes across 5 different timezones and hundreds of developers is a pain. Having some way to allow devs to continue to use older versions of a package, while allowing package maintainers to move forward (i.e. break APIs) without having to worry about breaking everyone else would be fantastic. Obviously there would be a lifecycle, we would deprecate older versions of the packages as needed (and uplift the packages using the deprecated version etc).
Edit: Ideally I'd like this to be mostly on the packaging side. I'd like to avoid littering piles of conditionals in code to handle the versioning. i.e. none of ...
if(some_version){
do this;
}
elsif(some other version) {
do this other thing;
}
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.