obsolete

Why are C# collection-properties not flagged as obsolete when calling properties on them?

筅森魡賤 提交于 2019-11-29 13:14:06
I tried to flag a collection property on a class as Obsolete to find all the occurances and keep a shrinking list of things to fix in my warning-list, due to the fact that we need to replace this collection property with something else. Edit : I've submitted this through Microsoft Connect, issue #417159 . Edit 16.11.2010 : Verified that this now works in the C# 4.0 compiler, both when compiling for .NET 3.5 and 4.0. I get 4 warnings in the posted code, including the one with the comment "Not OK?". However, to my surprise, the list only contained a few occurances, far fewer than I knew there

Usage of the Obsolete attribute

牧云@^-^@ 提交于 2019-11-29 11:00:03
问题 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 it was a quick and safe way to denote to the rest of the team that these methods should not be used, and provided a message to suggest alternatives. Others felt that I should have removed the methods entirely, rewriting or refactoring existing

why is Android API level 9 obsolete?

。_饼干妹妹 提交于 2019-11-29 06:36:54
Android version 2.3 - 2.3.2 (API 9) are declared as obsolete, and according to Android Market statistics, are very rare (0.5% of market users). The question is: Why is API 9 declared obsolete and more importantly, is there any reason why should I not use it? I've been using API 9 and see no problems with it... am I missing something? Better not fix it if it's not broken, right? EDIT: Clarification: If I would update my applications' API from 9 to 10, what would be the benefits? I can only see negative effects: 1% of users will suddenly find out that the app doesn't work on their phones any

Is Swing Still in Use Today? [closed]

感情迁移 提交于 2019-11-29 02:51:47
Is Java Swing still in use? is the most recent post I found, and it is 4 years old (now 9 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 not asking about a Swing-AWT comparison...just whether or not Swing is obsolete in the workforce.) Majority of existing GUI java codebases are Swing and likely will stay that way until the codebase rots and nobody maintains it anymore. Majority of new GUI java codebases are using JavaFX , which is the Swing replacement in Java8 and is part of the

Move semantics == custom swap function obsolete?

家住魔仙堡 提交于 2019-11-27 20:25:54
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 move assignment operator (or one that uses pass-by-value). Now, with that given, is it actually necessary to write your own swap functions in C++11? I could only think of non-movable types, but then again, the custom swap s usually work through some kind of "pointer exchange" (aka moving). Maybe with certain reference variables? Hm... Howard Hinnant

Is Swing Still in Use Today? [closed]

点点圈 提交于 2019-11-27 14:22:48
问题 Is Java Swing still in use? is the most recent post I found, and it is 4 years old (now 9 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 not asking about a Swing-AWT comparison...just whether or not Swing is obsolete in the workforce.) 回答1: Majority of existing GUI java codebases are Swing and likely will stay that way until the codebase rots and nobody maintains it anymore. Majority

Move semantics == custom swap function obsolete?

吃可爱长大的小学妹 提交于 2019-11-26 20:20:17
问题 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 move assignment operator (or one that uses pass-by-value). Now, with that given, is it actually necessary to write your own swap functions in C++11? I could only think of non-movable types, but then again, the custom swap s usually work through some

Why isn't ArrayList marked [Obsolete]?

拈花ヽ惹草 提交于 2019-11-26 18:54:39
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, better than using a generic class? If yes, please give an example. Thanks. EDIT Let's take List<T> as an example, it provides all functions of ArrayList , and it's strongly-typed. So when do we need to use ArrayList ? Maybe sometimes it has a better performance? I don't know. I appreciate if you can show me something special of ArrayList . I think it

Are IFrames (HTML) obsolete? [closed]

落花浮王杯 提交于 2019-11-26 17:29:27
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? In my opinion the W3C jumped the gun in dumping iframes from the Strict HTML and XHTML doctypes. In theory you would use the <object> element to add foreign objects to your document, but browser differences and limitations have made this a nonstarter for many developers. With the much-more-pragmatic HTML 5 (which is still a draft), iframes are back and even

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

北慕城南 提交于 2019-11-26 15:37:56
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 practices? Deprecated Functions Insecure A perfect example of such a function is gets() , because there is no way to tell it how big the destination buffer is. Consequently, any program that reads input using gets() has a buffer overflow vulnerability . For similar reasons, one should use strncpy() in place of strcpy() and strncat() in place of