in reply to Code should be version-aware
This is very much analagous to the situation with html and web browsers.
No, it's certainly not. Web browsers are mostly used by end users, people who hardly have any knowledge on how to install software. Furthermore, there are many browsers and many platforms; for webpages it's good to be conservative.
OTOH, writing programs or module, which will only run on the newest version of Perl is not a problem. A box can have many installations of Perl. People seem to have this notion that there can only be one version of Perl on a machine, and never ever more than one. This is of course utter bullshit. Boxes regulary have several complete Java installations, because an application comes with its own Java environment. That's how you should roll out a Perl based application as well (and believe me, there are more application that you'd think that work that way). Just deliver your application with the appropriate Perl versions/configuration/modules.
And note that it's not just the Perl version you have to take care off. Threads as well. 64 bit integers. 64 bit pointers. Large file support. Choice of random generator. Perlio, sfio or stdio? Perl malloc or system malloc? GCC, native compiler, or something else?
Should it be best practice to start all programs with:#/usr/bin/perl -w
And turn on warnings for code that might not be warning free? I don't think so. 5.6, the version that gave us lexical warning is three years old. If all new code would have to be backwards compatible with old Perl versions, there wouldn't be any initiative to further develop Perl.
If you prefer using ancient, unsupported, versions of Perl, that's ok. But it's unreasonable to ask people who write new code not to use three year old features because your ancient versions can't support them. You will just have to satisfy yourself with old versions of the modules - you're satisfied with an old version of perl itself as well.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Code should be version-aware
by BUU (Prior) on Aug 12, 2003 at 02:34 UTC | |
by Abigail-II (Bishop) on Aug 12, 2003 at 06:51 UTC | |
by ajdelore (Pilgrim) on Aug 13, 2003 at 16:58 UTC | |
Re^2: Code should be version-aware
by Aristotle (Chancellor) on Aug 12, 2003 at 03:00 UTC | |
Re: Re: Code should be version-aware
by mpeppler (Vicar) on Aug 12, 2003 at 08:08 UTC |