In the process of authoring computer software, its standards or documentation, or other technical standards - deprecation is a status applied to features, characteristics, or practices to indicate that they should be avoided, typically because they have been superseded.
Questions tagged [deprecation]
24 questions
116
votes
4 answers
Why is Web SQL database deprecated?
I am making a hybrid Android app.
At first I decided to use localStorage, after spending 2 days, I realized that it is very strange and so dropped it.
Then, I picked up indexedDB, after spending today's whole day and actually getting the output in…
user52009
111
votes
6 answers
Why are the and tags deprecated?
This question came up in one of my college classes. The professor only gave the answer that it was more descriptive, but it seems as though and are rather explicit in their meaning and is easier to type than and .
What were the…

LanceLafontaine
- 1,241
- 2
- 9
- 8
68
votes
12 answers
Prevent deprecated code from compiling after reaching a deadline
In my team we have been cleaning a lot of old stuff in a big monolithic project (whole classes, methods, etc.).
During that cleaning tasks I was wondering if there is a kind of annotation or library fancier than the usual @Deprecated. This…

Arcones
- 797
- 1
- 5
- 11
39
votes
8 answers
How long to wait before deleting a deprecated method?
I am maintaining a public API and have to deprecate a method.
Is there a general rule on how many months/years/versions before the deletion I should deprecate a method?

deviDave
- 2,933
- 5
- 26
- 30
29
votes
2 answers
Why is universal newlines mode deprecated in Python?
I just noticed that the universal newline feature of file operations seems to be on its way out.
The documentation for Python 3.5 open's mode parameter indicates that it's deprecated:
'U' universal newlines mode (deprecated)
At least as far…

jpmc26
- 5,389
- 4
- 25
- 37
29
votes
1 answer
How to deal with a misnamed function in production code?
I've recently come across a Python library on GitHub. The library is great, but contains one glaring typo in a function name. Let's call it dummy_fuction() while it should be dummy_function(). This function is definitely "in the wild" and most…

Jamie Bull
- 464
- 3
- 11
14
votes
1 answer
Is it time to deprecate synchronized, wait and notify?
Is there a single scenario (other than compatibility with ancient JVMs) where using synchronized is preferable to using a Lock? Can anyone justify using wait or notify over the newer systems?
Is there any algorithm that must use one of them in its…

OldCurmudgeon
- 778
- 5
- 11
8
votes
3 answers
Migration strategies for deprecating in-house scripting language
We have a scripting language that we use internally for many things. It began as a simple evaluation statements for dynamic labels to become a Turing complete language used pervasively throughout our system.
Problem is that it was never designed…

Newtopian
- 7,201
- 3
- 35
- 52
5
votes
7 answers
Why do certain code elements (classes, methods etc.) in public APIs get deprecated over time?
Today our professor discussed with the class that what "class X or method X get deprecated" means? From what I understood, it means, for example, that we are not going to get that method or class in the Java API in the future so we better use…

user18651
- 201
- 1
- 5
5
votes
3 answers
How to properly deprecate methods in Java?
Today I lost a method that I was using since my co-worker redefined it to take its superclass instead. So after synchronizing with the repository I had trouble. Would it had been better in this case to use some annotation like @Deprecated instead of…

Niklas Rosencrantz
- 8,008
- 17
- 56
- 95
5
votes
2 answers
Is mysql_* deprecated after PDO was introduced?
I have been noticing for a long time on Stack Overflow that most users recommend to use PDO instead of mysql_*, because PDO is more secure than mysql_*. But my question is if websites which are already running with mysql_* will stops working? Or…

Harshal Mahajan
- 231
- 2
- 5
4
votes
2 answers
Deprecated Methods in Code Base
A lot of the code I've been working on recently, both professionally (read: at work) and in other spheres (read: at home, for friends/family/etc, or NOT FOR WORK), has been worked on, redesigned and re-implemented several times - where…

Jamie Taylor
- 480
- 1
- 4
- 12
3
votes
4 answers
What log level use for deprecated features?
There is a feature that is now deprecated and going to be removed. Adding a logging statement, observed by some alerting mechanism, can help finding out whether the feature is still being actively used and upgrade the clients that do so.
Although…

Glutexo
- 147
- 4
3
votes
0 answers
Ripple Effect Analysis using coupling metrics
How can I observe ripple effect using coupling attributes alone?
I first find the common coupling metrics for a set of deprecated classes in a project, like CBO(Coupling Between Objects), RFC(Response For Classes), Import/Export coupling, Afferent…

neyrah
- 39
- 2
3
votes
2 answers
What's a good way to deprecate your NPM modules?
One of my NPM modules is, frankly, pretty lame, hasn't been worked on in years, has no watchers, no stars, and only ~50 downloads per month. I'm going to abandon it, and eventually delete it so it doesn't clutter up my github page. Just in case…

user949300
- 8,679
- 2
- 26
- 35