什么是“最佳实践”?删除对功能的支持? [英] What is the "best practice" to remove support for a feature?

查看:118
本文介绍了什么是“最佳实践”?删除对功能的支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个处理多种消息格式的库。这些格式中的每一种都是密切相关的,它们是一个共同的基础XML,然后每个格式都有一些额外的约束或额外的数据。

I have a library that deals with several message formats. Each of these formats is closely related, they're a common base XML then each has some additional constraints or extra data on top of it.

创建了其中一种格式只是为了支持概念验证或试点工作。飞行员结束了,它不再被使用,并且它施加了一些尴尬的限制。我已获得删除对它的支持的许可。这样做的正确方法是什么?

One of these formats was created just to support a proof-of-concept or pilot effort. The pilot is over, its no longer being used, and it imposed some awkward constraints. I've gotten permission to remove support for it. What is the correct way to do this?

我在想:


  1. 打开问题以跟踪/记录更改

  2. 标记SVN修订版,此处删除FEATURE_X

  3. @Deprecate特定类。引用这个问题。提交。

  4. 观察警告并查看弃用影响的内容

  5. 让它坐一会儿,让团队有机会处理弃用

  6. 最后删除代码。验证测试是否正常。提交。

  1. Open an issue to track/document the changes
  2. Tag the SVN revision, "FEATURE_X removed here"
  3. @Deprecate the specific classes. Cite the issue. Commit.
  4. Watch the warnings and see what the deprecation affects
  5. Let it sit for a bit, give the team a chance to deal with the deprecation
  6. Finally remove the code. Verify that the tests are OK. Commit.


推荐答案

对于上述步骤,我建议明确告知其他人该功能将在给定的截止日期前删除。如果功能和/或团队规模很大,我建议让其他人承诺在该日期之前删除他们的代码依赖关系(更大的团队,承诺越重要,考虑管理者支持此任务)。正如我的经验所示,删除某些东西对于一些用户来说是一个很大的惊喜,并且总会有人在某处使用某些代码依然依赖于FEATURE_X。最后但并非最不重要的是,进行干式去除的额外步骤,可以轻松快速地完成。

To the steps above, I'd suggest to clearly communicate to others that the feature will be dropped by the given deadline. And if the feature and/or team is big, I'll suggest get others commitment to remove their code dependencies by that date (the bigger team is, the more important the commitment is, consider managers support for this task). As my experience shows, removing something is a big surprise to a few users, and there is always someone somewhere with somecode that still depends on the FEATURE_X. And last but not least, additional step to do a dry-run removal, that can be easy and quickly undone.

这篇关于什么是“最佳实践”?删除对功能的支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆