Questions tagged [obsolete]

Methods and ideas that are no longer used in the current versions of various technologies.

190 questions
738
votes
5 answers

Why is Java Vector (and Stack) class considered obsolete or deprecated?

Why is Java Vector considered a legacy class, obsolete or deprecated? Isn't its use valid when working with concurrency? And if I don't want to manually synchronize objects and just want to use a thread-safe collection without needing to make fresh…
fjsj
  • 10,995
  • 11
  • 41
  • 57
98
votes
13 answers

Are IFrames (HTML) obsolete?

Getting contradictory messages about that, hope they're not. I cannot imagine support for it would stop, since a gazillion sites use them. Some additional questions about that: Why should they phase out this tag? Any alternative for it?
Peter
  • 47,963
  • 46
  • 132
  • 181
96
votes
13 answers

Which functions from the standard library must (should) be avoided?

I've read on Stack Overflow that some C functions are "obsolete" or "should be avoided". Can you please give me some examples of this kind of function and the reason why? What alternatives to those functions exist? Can we use them safely - any good…
Andrei Ciobanu
  • 12,500
  • 24
  • 85
  • 118
40
votes
3 answers

Is Swing Still in Use Today?

Is Java Swing still in use? is the most recent post I found, and it is 4 years old (now 12 years old), so... Is Swing used at all in a professional environment? I am a student, and wondering if it is worth learning, or if its day has passed. (I am…
Evorlor
  • 7,263
  • 17
  • 70
  • 141
40
votes
5 answers

If is obsolete, what is preferred?

The HTML code text is very useful for creating links to specific sections of a page (e.g., page.html#some_bookmark). However, the W3C spec now marks the name attribute of the a tag as "obsolete." If this is the case, then…
wchargin
  • 15,589
  • 12
  • 71
  • 110
39
votes
3 answers

Why isn't ArrayList marked [Obsolete]?

After a deep thought and looking into the implementation of ArrayList, personally I really want to say It's obsolete, I have no reason to use this class after 2.0. But since it's not marked as [Obsolete], is there any usage that I didn't know,…
Cheng Chen
  • 42,509
  • 16
  • 113
  • 174
34
votes
5 answers

Move semantics == custom swap function obsolete?

Recently, many questions pop up on how to provide your own swap function. With C++11, std::swap will use std::move and move semantics to swap the given values as fast as possible. This, of course, only works if you provide a move constructor and a…
Xeo
  • 129,499
  • 52
  • 291
  • 397
28
votes
1 answer

EDSAC - 17-bit and 35-bit integers

I'm trying to write a program for EDSAC and am stuck on understanding the short and long integer stuff - sometimes I enter something and get a zero, and at others I get a one. So, for example: If I enter P0F, 0 is stored. If I enter P0D, 1 is…
Sam Heather
  • 1,493
  • 3
  • 19
  • 42
24
votes
5 answers

Usage of the Obsolete attribute

I was recently told it was bad practice to haved marked a number of methods in our code with the [Obsolete] attribute. These methods were internal to our codebase, rather than being on an API. The methods handled an older encryption function. I felt…
g t
  • 7,287
  • 7
  • 50
  • 85
20
votes
5 answers

How can I mark a specific parameter as obsolete/deprecated in C#?

I would like to be able to keep a C# API the same as it is now, but simply deprecate one of the parameters in a method call. Is it possible to do so, or do I need to create a new method without the parameter and mark the original one as Obsolete?
Brian
  • 3,457
  • 4
  • 31
  • 41
20
votes
1 answer

What should I use instead of LoadWithPartialName()?

I'm loading an assembly with LoadWithPartialName(), but VS tells me that it's obsolete and to use Load() instead. However, I can't find any convenient overload. There is a Load(string) with asks for a "full-name" which, if I understood correctly the…
raven
  • 2,574
  • 2
  • 27
  • 49
19
votes
1 answer

Does ASP.NET Core still use OWIN?

I noticed when using C# to build an older MVC project, that there is a lot of references to an OWIN library. But when creating a .NET Core web application in VS2015 SP3, seems there's no reference to it. Is this library obsoleted?
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
16
votes
3 answers

ConfigurationSettings.AppSettings is obsolete

The following code works fine: string api_url = ConfigurationSettings.AppSettings["api-url"].ToString(); with a warning message as follows: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: '"This method is obsolete, it has…
Daniel Kmak
  • 18,164
  • 7
  • 66
  • 89
15
votes
5 answers

Why does this code compile without error even though the class is marked Obsoleted?

This is Visual Studio 2008. Obviously has to do with the static class for an extensions. public class Dummy { public readonly int x; public Dummy(int x) { this.x = x; } public override string ToString() { …
Cade Roux
  • 88,164
  • 40
  • 182
  • 265
15
votes
13 answers

How to prevent your code from becoming obsolete?

Some programmers here have been developing a project in VB6, and they say they now need to upgrade to vb.net if they want their apps to run on newer/future systems as vb6 is going to be history soon. So there is this huge application they have been…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
1
2 3
12 13