Questions tagged [deprecated]

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded. Use this tag for questions about deprecated features or how to deprecate features yourself (e.g. using annotations).

In the process of authoring computer software, its standards or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future.

Features are deprecated—rather than immediately removed—in order to provide backward compatibility and give programmers who have used the feature time to bring their code into compliance with the new standard.

2508 questions
1
vote
0 answers

activityModule is deprecated | dagger2

I got a very useful blog to start my hand with Dagger2. All going I guess going pretty well except an deprecate warning about to Builder.addModule(). I got this link about Unused Modules and Component Dependencies link related but it still not clear…
CoDe
  • 11,056
  • 14
  • 90
  • 197
1
vote
1 answer

What are the technical reasons for why one shouldn't use deprecated methods or classes?

I was wondering why some methods and classes are marked @Deprecated when they work perfectly fine. What are the technical reasons for why one shouldn't use methods marked @Deprecated? Why should I use something else when they work fine? If there's…
Coder
  • 1,175
  • 1
  • 12
  • 32
1
vote
1 answer

Nesting components in Angular4 (RC5)

Getting into Angular and watching an outdated tutorial which is in fact for Angular2 (y, I know). Angular4: @NgModule({ imports: [ BrowserModule ], declarations: [ AppComponent , MyChildComponent ], bootstrap: [ AppComponent ] }) Seems that…
1
vote
0 answers

Apple Mach-O Linker Warning: -flat_namespace is deprecated on iOS

I recently updated an old iOS project of mine for the latest version of iOS. I'm running Xcode 8.2.1 and I'm getting the following warning: -flat_namespace is deprecated on iOS I've looked online but have been unable to figure out what this means.…
Charles
  • 4,372
  • 9
  • 41
  • 80
1
vote
0 answers

mcrypt methods are deprecated from PHP 7.x, need alternative

The mcrypt related methods are removed from PHP 7.x. We are using below methods which are deprecated in PHP 7.x. mcrypt_get_block_size mcrypt_module_open mcrypt_generic_init mcrypt_generic mcrypt_generic_deinit mcrypt_module_close Is there any…
Rohit Suthar
  • 2,635
  • 1
  • 22
  • 27
1
vote
3 answers

Is Delphi TClientSocket (still) deprecated?

In the resolution comments for bug report 12266 ("Error on socket connect causes resource leak"), Robert Ehteshamzadeh wrote TClientSocket is deprecated. This report is left open to allow for suggested workarounds. This was for Delphi 6. In…
mjn
  • 36,362
  • 28
  • 176
  • 378
1
vote
1 answer

Alternatives for deprecated Javascript RegExp properties

I refer to the MDN Documentation for Javascript here. It says the following RegExp properties are deprecated: $1-$9 $_ $* $& $+ $` $' input lastMatch lastParen leftContext rightContext Why have they become deprecated? Aren't they all…
Chong Lip Phang
  • 8,755
  • 5
  • 65
  • 100
1
vote
1 answer

Is using fill_parent still a proper practice?

During my research on what's the difference between match_parent and fill_parent, I found that at the time of API 8 epoch Google just 'renamed' fill_parent to match_parent since the latter better describes the effect and made fill_parent…
Alexander Abakumov
  • 13,617
  • 16
  • 88
  • 129
1
vote
1 answer

Can I use pre-"profiles" OpenGL versions on Macs?

I want to use a deprecated GL function - glPushAttrib. Ideally, I'd do that by using the Compatibility profile of a recent GL version, but Macs don't support that. So I'm happy to settle for using an old GL version, from before GL profiles existed.…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
1
vote
2 answers

Mock call to external API

Today, I've tried to upgrade my project to the new version of Symfony (3.3), and I'm encountering a problem with my mocks. Until today, I was doing my mocks like this: $client = $this->makeClient(); $mockObject = new \stdClass(); $mock =…
Kevin Pires
  • 115
  • 1
  • 6
1
vote
0 answers

ParsleyJS: What to do about deprecated .pipe?

I'm upgrading jQuery from 2 to 3, running through the site with jQuery-migrate looking for and replacing deprecated or removed methods. However, one of my dependancies (Parsley.js) is apparently using the deprecated (but not removed)…
price84
  • 11
  • 6
1
vote
3 answers

Using & to get object's reference in PHP is redundant?

In PHP, all object-variables are actually pointers to objects (no?), the language handles this implicitly (right?), yet I see many php code specifying references in parameters such as this: function someMethod(SomeClass& $obj) { //... } I've also…
fabio
  • 2,269
  • 5
  • 22
  • 34
1
vote
0 answers

Why have Laravel Middleware contracts been deprecated?

I just discovered that Laravel 5.1 deprecated (and 5.2 removed) Middleware contracts. I used them for long time, but I have never noticed this removal. Just a simple question, why? Why do I have to define a method (handle) without any contract…
alberto-bottarini
  • 1,213
  • 9
  • 21
1
vote
1 answer

Dealing with deprecated symbols and methods when building for multiple iOS versions

I'm a c++ developer who is transitioning into the iPhone world, and I would love to get help around something. Let's say for example, MPMoviePlayerController used to post the MPMoviePlayerContentPreloadDidFinishNotification notification in iOS 3.1…
Idan
  • 5,717
  • 10
  • 47
  • 84
1
vote
2 answers

LinearLayout setBackgroundDrawable bitmap from url

I am trying to set a background image from URL to a linear layout with bitmap but the method BackgroundDrawable() is deprecated and i cannot find any alternative for it. private LinearLayout linearLayout; linearLayout = (LinearLayout)…
Citrix
  • 257
  • 4
  • 14