RotherOSS / doc-otobo-dev

OTOBO Developer Manual
GNU Free Documentation License v1.3
0 stars 6 forks source link

Consistent and concise Boilerplate code #27

Open bschmalhofer opened 4 years ago

bschmalhofer commented 4 years ago

Inspired by https://www.perl.com/article/announcing-perl-7/ I thought about adapting the standard boilerplate. I propose the following:

use v5.24;
use strict;
use warnings;
use namespace::autoclean;   # for modules
use utf8;
use open qw(:std :utf8);
use autodie qw(:2.29);
use Feature::Compat::Try;

# core modules

# CPAN modules

# OTOBO modules

See http://mvp.kablamo.org/cpan/exceptions/ and https://www.nntp.perl.org/group/perl.perl5.porters/2021/01/msg258856.html regarding Feature::Compat::Try.

There are many other suggestions for boilerplates:

The critical questions are:

bschmalhofer commented 4 years ago

Set milestone to 11.0, because this might have repercussions.

bschmalhofer commented 3 years ago

The issues with https://metacpan.org/pod/feature#The-'unicode_eval'-and-'evalbytes'-features most likely no longer apply. The test scripts now run as separate scripts, eval is no longer involved there.

bschmalhofer commented 3 years ago

Updated the proposal to use https://metacpan.org/pod/Feature::Compat::Try.

svenoe commented 1 year ago

I'm against open and autodie, not for their respective features, but because in OTOBO for open Kernel::System::Main should be used anyways, and thus this and probably also autodie are mostly two lines which won't have any effect.