deprecation

Java: De-deprecated-ing Tools

Once a method is marked as deprecated, are there any tools which replace these methods with non-deprecated workarounds ? ...

Agile practices to avoid deprecated code?

I am converting an open source Java library to C#, which has a number of methods and classes tagged as deprecated. This project is an opportunity to start with a clean slate, so I plan to remove them entirely. However, being new to working on larger projects, I am nervous that the situation will arise again. Since much of agile developme...

Is os.popen really deprecated in Python 2.6?

The on-line documentation states that os.popen is now deprecated. All other deprecated functions duly raise a DeprecationWarning. For instance: >>> import os >>> [c.close() for c in os.popen2('ps h -eo pid:1,command')] __main__:1: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module. [None, None] The function os.pop...

OpenGL: What's the deal with deprecation?

OpenGL 3.0 and 3.1 have deprecated quite a few features I find essential. In particular, the use of fixed function in shaders. Can anyone explain what's really the deal with that? Why do they find the need to deprecate such useful feature that its obvious everybody uses and that no sane hardware company is going to remove support for? ...

How to avoid deprecation warning by replacing session_unregister with $SESSION[]?

I just installed PHP 5.3 and am weeding out consequent "deprecated" warnings. It says session_unregister() is deprecated in: session_unregister($serverWideUniqueIdCode); and the replacement seems to be $_SESSION[]. So what would be the syntax with $_SESSION[] to express the same thing? ...

BaseException.message deprecated in Python 2.6

I get a warning that BaseException.message is deprecated in Python 2.6 when I use the following user-defined exception: class MyException(Exception): def __init__(self, message): self.message = message def __str__(self): return repr(self.message) This is the warning: DeprecationWarning: BaseException.message has been dep...

Will the <b> and <i> tags ever become deprecated?

(This is more of a curiousity question than any pending disaster :D ) So the <b> and <i> tags have been around since near the beginning of the web (I assume). But now we have CSS and many people apposing "stylistic html tags." They are stylistic tags, but they're really not so bad, as they save us from having to make a <span class="bold...

How can I make my Ruby on Rails 2.3.4 application "Rails 3-ready"

I'm developing an application with Ruby on Rails that I want to maintain for at least a few years, so I'm concerned about the next version coming up soon. Going from Rails 1 to Rails 2 was such a big pain that I didn't bother and froze my gems and let the application die, alone, in the dark. On this project I don't want to do that. Fi...

Python Deprecation Warnings with Monostate __new__ -- Can someone explain why?

Hi all, I have a basic Monostate with Python 2.6. class Borg(object): __shared_state = {} def __new__(cls, *args, **kwargs): self = object.__new__(cls, *args, **kwargs) self.__dict__ = cls.__shared_state return self def __init__(self, *args, **kwargs): noSend = kwargs.get("noSend", False) ...

When, if ever, would you expect classes marked as obsolete to be removed from the .NET framework?

As we approach the 4th major release of the .NET framework we are likely to see an increase in the number of classes and methods marked as obsolete (to indicate they are deprecated). I found this page listing all the obsolete members and types, which is growing quite large now. So, I was wondering whether: Have any members or types ma...

How can I mark Perl code as deprecated?

In my project I'm currently preparing a step-by-step move from legacy code to new, properly-designed and tested modules. Since not every fellow programmer follows closely what I do, I would like to emit warnings when old code is used. I would also strongly prefer being able to output recommendations on how to port old code. I've found t...

deprecated function's usage

Why are certain functions in PHP (such as eregi) deprecated? I normally use eregi for email validation. Should I use it, or is there another function that can be used in its place? ...

String formatting expressions (Python)

String formatting expressions: 'This is %d %s example!' % (1, 'nice') String formatting method calls: 'This is {0} {1} example!'.format(1, 'nice') I personally prefer the method calls (second example) for readability but since it is new, there is some chance that one or the other of these may become deprecated over time. Which do y...

How to get functionality of hidesAccessoryWhenEditing

Since hidesAccessoryWhenEditing is depricated in the iPhone 3.0 SDK, what is the replacement? How do you get the same functionality? ...

[Java] new Date(2009, 12, 9) is deprecated

What Can I used to replace this ? Thanks for your help ...

Mark element as deprecated in XSD

I have an XSD that's going through a transition from one set of elements to another. During the transition, there'll be code expecting the new elements and code expecting the old elements. Therefore I need to keep the old elements in the XSD; I'm documenting them as deprecated (using free text in an xs:documentation element). Is there a...

New to OpenGL and deprecation.

Hello, I've begun playing around with OpenGL in Python using PyOpenGL 3.0.1b. I looked at some sample code and started running it and modifying it etc. All was well until I became a little less ignorant. On http://pyopengl.sourceforge.net/documentation/manual-3.0/index.xhtml the OpenGL functions are listed as well as whether or not th...

Why were the case classes without a parameter list deprecated?

Why were the case classes without a parameter list deprecated from Scala? And why does compiler suggest to use () as parameter list instead? EDIT : Someone please answer my second question... :| ...

CFNetwork still passing CFStreamErrors even though its deprecated?

I'm writing some code that is wrapping up some CFNetwork stuff to do DNS resolution in Objective-C. Everything is fine and it's working, but I have a few questions: The callback function prototype for CFHost's asynchronous resolution is passing references to CFStreamError structures even though the documentation says CFStreamError is d...

Rails Custom Deprecation Notices

Is there a way to create custom deprecation notices for methods and/or associations in my application that I plan on removing and want to log their usage? I have a relationship in one of my models that I don't want to use moving forward and plan to refactor the code at a later time. I would like to create a notice in my development log e...