If you don't want people to use deprecated code, it's essential to document what the replacement should be. In JavaWorld, this can be done through Javadoc. Just tagging a method or class with @Deprecated and leaving it there is the sort of thing that makes me want to hurt people.
That’s because you don’t understand what deprecated means. Deprecated means “still supported but its use is discouraged.” It does not mean “no longer supported.”
Shitlist Driven Development (2016)
51–60 of 148 posts
Re: Shitlist Driven Development (2016)
#52Never use profanity in your code, nor in your comments. Lets keep things professional.
Re: Shitlist Driven Development (2016)
#53Earlier quoted context omitted.
Is supporting the article's position frowned upon?
No. But when it's not explicitly mentioned as support, it can appear as an implicit contradiction to readers. We also want the discussion about an article to build on what the article proposes, and explicitly tying comments to the article help with that.
1. That gives the appearance of a user who hasn't read the article
2. Even if the user did read the article I'm not sure what their comment adds to discussion of the article. For comparison, imagine participating in a conversation with a few friends in real life, friend X says "It's a good idea to write tests for your code," then friend Y replies "It's a good idea to write tests for your code." Usually the way people discuss things is to reply or offer addendums to the original idea. It's not a rule, it's just good conversation.
Re: Shitlist Driven Development (2016)
#54Earlier quoted context omitted.
That’s because you don’t understand what deprecated means. Deprecated means “still supported but its use is discouraged.” It does not mean “no longer supported.”
I've always understood Deprecated to mean "This works, but we don't want you to use it in new code, and we plan/hope to remove it in the future."
C++/Wikipedia uses the definition of the original poster, while Java's @Deprecated annotation literally has a `forRemoval` boolean value attached. Personally, I am used to how it is used in semantic versioning where it is just a helpful hint for what the next release's breaking changes may be while introducing the migration behavior if possible in this release. This allows for clients to incrementally migrate instead of making it all or nothing.
Re: Shitlist Driven Development (2016)
#55Much better to annotate those functions with @deprecated and allow running in "deprecated allow mode" and a "deprecated fail mode"... Never use profanity in your code, nor in your comments. Lets keep things professional.
Why not use profanity in code? We're all adults.
Re: Shitlist Driven Development (2016)
#56Love the concept, hate the name. To me this seems like the recycle bin concept. Allow the code to exist temporarily, but encourage permanent deletion. Perhaps a better name could be a "screamlist" or "needstochange" list.
All arbritary rules like this just makes the process a mess.
Also the same people doing the shitlist will most likely be the dug in senior ones responsible for all the shit code being there in the first place and include the wrong things.
Re: Shitlist Driven Development (2016)
#57Re: Shitlist Driven Development (2016)
#58Much better to annotate those functions with @deprecated and allow running in "deprecated allow mode" and a "deprecated fail mode"... Never use profanity in your code, nor in your comments. Lets keep things professional.
Re: Shitlist Driven Development (2016)
#59Much better to annotate those functions with @deprecated and allow running in "deprecated allow mode" and a "deprecated fail mode"... Never use profanity in your code, nor in your comments. Lets keep things professional.
Re: Shitlist Driven Development (2016)
#60Earlier quoted context omitted.
I don't understand what this has to do with the article or the previous comment at all.
The article is about deprecating and taking functionality out of use. My point is that deprecation is by its very nature going to hurt something that isn’t prepared for its demise. There is no good way to do it. There are only less bad ways to do it.