summaryrefslogtreecommitdiff
path: root/lib/Dancer2/DeprecationPolicy.pod
blob: 2954cabf5eb78aaeb0c68d1aedde15c03a179906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package Dancer2::DeprecationPolicy; 

# ABSTRACT: Define the process by which outdated, broken, or unused code is removed from Dancer2

__END__

=pod

=encoding UTF-8

=head1 NAME

Dancer2::DeprecationPolicy - Define the process by which outdated, broken, or unused code is removed from Dancer2

=head1 VERSION

version 1.1.0

=head1 DESCRIPTION

While there are conflicting ideas about deprecation, in Dancer2, deprecated
code is code that:

=over

=item * Is in the way of implementing important features or fixes that provide
more value.

=item * Has a negative impact on the integrity and security of user code,
whether by misusing it to not.

=item * Provides a negative experience for the users.

=back

Deprecated code is code we either had to write and can now remove or we thought
was a good idea and were wrong. It is code that doesn't overall benefit users
or the developers.

Deprecated code is code that is marked for eventual removal and we do not
intend to keep in the Dancer2 codebase.

=head1 DEPRECATION PROCESS

=over

=item * Code to be deprecated is posted/discussed publicly (see below)

=item * Deprecated code enters soft deprecation phase

=item * After 12 months or 2 major releases, code is hard deprecated

=item * After 6 months or 1 major release, hard deprecated code is removed

=back

Deprecated code is marked with warnings and the version and/or date in which it
will no longer be available.

=head2 Public Notice

When a feature/code is to be deprecated, the Dancer Core Team will create a new
GitHub issue for the code/feature to be deprecated, and announce this in a
public manner (blog post, Twitter, and the mailing list, at minimum). The
notice should provide the reason for the deprecation, what Dancer2/the
community is gaining as a result of the deprecation, and what the officially
recognized alternative to the deprecated code is.

The public notice period will provide the developer/user base an opportunity to
voice objections or provide feedback or alternatives to deprecation. It also
allows the Core Team to better assess the potential long range effects of
deprecation.

While the deprecated feature/code can be discussed by community, the decision
will be ultimately made by the Dancer Core Team. There is no definitive time
for the public notice period to end; some deprecations are more urgent than
others, and each situation is left to the discretion of the Core Team, with
feedback from the community.

=head2 Soft Deprecation

When code is soft deprecated, a warning will be thrown to indicate that the
code is to be considered deprecated. Apps will continue to function normally
otherwise.

=head2 Hard Deprecation

After 12 months or two major releases (whichever comes first), the code is
considered to be hard deprecated. An error will continue to be thrown, but
unlike soft deprecation, continued usage of the deprecated code will cause the
application to die.

There is one caveat to this: code will B<never> be deprecated for less than 6
months. So if we deprecate code after v0.500000, become unusually productive,
and produce Dancer 0.600000 and 0.700000 in a two month timeframe, no
deprecated code will be removed because 6 months hasn't elapsed.

=head2 Removal

Six months following hard deprecation, or one major release after hard
deprecation, the deprecated code is removed from Dancer2.

=head1 EXCEPTIONS

In special cases, based on community feedback, these timelines may be extended.
But we expect this to be a rare occurrence, at best.

=head1 PLUGINS

We strongly encourage (but cannot/do not require) plugin authors to adopt the
same policy.

=head1 AUTHOR

Dancer Core Developers

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Alexis Sukrieh.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut