我应该遵守错误的命名约定吗? [英] Should I keep bad naming conventions?

查看:58
本文介绍了我应该遵守错误的命名约定吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在一个网站上工作,这真是令人难以置信.上帝知道有多少开发人员参与其中.我不喜欢它的一件事是数据库中的每个表都以前缀"tbl_"和每个字段为"fld_"的方式.

I'm currently working on a site which went through god knows how many developers' hands. One of the things I don't like about it is the way every table in the database has the prefix "tbl_" and every field "fld_".

我已经开始研究新功能,并且遇到以下问题:我的新表应该继续使用旧约定吗?

I've started work on a new feature and I'm faced with the following problem: should my new tables continue with the old convention, or not?

我想应该,但是我觉得很愚蠢:)

I guess I should, but I feel stupid doing it :)

推荐答案

我将保持相同的约定..不管它是否不好,至少它是一致的.对于下一个掌握代码的开发人员来说,一致性将非常重要.

I would keep the same convention.. Regardless of if it's bad or not at least it would be consistent. And consistency will be very important to the next developer who gets ahold of the code.

这篇关于我应该遵守错误的命名约定吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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