Skip to main content

Questions tagged [deprecation]

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.

Filter by
Sorted by
Tagged with
8 votes
2 answers
1k views

Is there a term that's kind of the opposite of 'deprecated' - that's 'in future major versions this thing will be required'

In terms of deprecation strategies, we can mark a value as deprecated and this can imply that 'this thing exists now and should work, but in future major releases this thing may disappear and will ...
dwjohnston's user avatar
  • 2,677
3 votes
4 answers
868 views

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 ...
Glutexo's user avatar
  • 147
1 vote
1 answer
125 views

Terminology - Changing the behaviour of a function but not it's name [closed]

Consider this situation: there is a method getFoo(). It now becomes appearent that the method as-is is not useful or even encourages faulty code to be written upon it. A breaking change (e.g. ...
istrasci's user avatar
  • 135
39 votes
8 answers
10k views

How long to wait before deleting a deprecated method? [closed]

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's user avatar
  • 2,953
3 votes
0 answers
162 views

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(...
neyrah's user avatar
  • 39
69 votes
12 answers
23k views

Prevent deprecated code from compiling after reaching a deadline [closed]

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 ...
Arcones's user avatar
  • 817
0 votes
1 answer
682 views

Best practices for data deprecation

I have inherited a 10+ year old project that has been handed down through many developers. Needless to say, there are many instances where there is some class or object property that no one knows what ...
Origin's user avatar
  • 111
1 vote
1 answer
1k views

What is the best use of @Deprecated Java annotation for a monolithic server code with multiple clients?

There is that @Deprecated annotation which suits well for Java libraries. A minor release change would not break an existing code if a deprecated library method remains. The library compilation will ...
KoichiSenada's user avatar
1 vote
1 answer
108 views

Mechanically measuring/enforcing diminishing use of a deprecated API over time?

One of the last projects I worked on had a lot of deprecated methods. Are there any good strategies for making sure that the use of these methods actually decreases over time? The example below is ...
Greg Nisbet's user avatar
1 vote
1 answer
312 views

Is it proper to deprecate a method/class temporarily?

Based upon definitions I have read of the term deprecation, I get a general sense that deprecation is usually reserved for moving on to other methods/classes for good for reasons such as (and I borrow ...
demongolem's user avatar
3 votes
2 answers
2k views

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 ...
user949300's user avatar
  • 8,919
3 votes
1 answer
878 views

How to deprecate an entire mobile application? [closed]

Six months ago I launched a free app that I developed and self-funded. From peak usage of a few thousand users, it has now bottomed out at a few hundred. It was an interesting project, from which I ...
another_user10293412's user avatar
28 votes
2 answers
13k views

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' ...
jpmc26's user avatar
  • 5,469
113 votes
7 answers
47k views

Why are the <b> and <i> 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 <b> and <i> are rather explicit in their meaning ...
LanceLafontaine's user avatar
29 votes
1 answer
1k views

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 ...
Jamie Bull's user avatar
1 vote
2 answers
895 views

How to annotate method signature changes?

I'm developing a mini framework and I want to perform changes to existing methods. I know in order to deprecate a method I can use the @deprecated annotation. However, what annotation should I use to ...
Mosty Mostacho's user avatar
117 votes
4 answers
97k views

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 ...
user avatar
5 votes
3 answers
3k views

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 ...
Niklas Rosencrantz's user avatar
1 vote
2 answers
188 views

@Deprecated as of version x.y in JavaDoc

This question & its answers are useful but not sufficient for my problem. My Question is if I want to add a javadoc as @Deprecated As of version x.y, replaced by {@link SomeClass} in my current ...
Soumyadip Das's user avatar
15 votes
1 answer
5k views

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 ...
OldCurmudgeon's user avatar
5 votes
2 answers
544 views

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 ...
Harshal Mahajan's user avatar
4 votes
2 answers
476 views

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 ...
Jamie Taylor's user avatar
8 votes
3 answers
351 views

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 ...
Newtopian's user avatar
  • 7,211
1 vote
1 answer
541 views

Handling Deprecated Methods [closed]

As many of you already know Apple released a new OS last week so I installed it on my system to see if the project I'm working on works. Well, absolutely nothing works. There are a lot of deprecated ...
Samantha Catania's user avatar
5 votes
7 answers
554 views

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 ...
user18651's user avatar
  • 201