hardcode

[美]/ˌhɑːdˈkəʊd/
[英]/ˌhɑːrdˈkoʊd/
词频: 极高

释义

v. 将固定值或逻辑直接嵌入源代码,使其不易更改
n. 直接嵌入源代码中的固定值或逻辑;硬编码数据

短语搭配

hardcode values

硬编码值

hardcode credentials

硬编码凭据

hardcode settings

硬编码设置

hardcode constants

硬编码常量

hardcode paths

硬编码路径

hardcoded values

硬编码值

hardcoded credentials

硬编码凭据

hardcoded settings

硬编码设置

例句

we should not hardcode passwords in the configuration file.

我们不应该在配置文件中硬编码密码。

don’t hardcode the api key; load it from an environment variable.

不要硬编码 API 密钥;从环境变量中加载它。

the developer accidentally hardcoded the production url into the app.

开发人员意外地将生产 URL 硬编码到应用程序中。

we need to remove hardcoded values and use a settings file instead.

我们需要删除硬编码的值并改用设置文件。

please avoid hardcoding file paths; they break on other machines.

请避免硬编码文件路径;它们在其他机器上会中断。

hardcoding business rules makes future changes much harder.

硬编码业务规则使得未来的更改变得更加困难。

we found a hardcoded limit in the code, so the service cannot scale.

我们在代码中发现了一个硬编码的限制,因此该服务无法扩展。

hardcode the default language only as a temporary workaround.

仅将默认语言作为临时解决方法进行硬编码。

instead of hardcoding the timeout, read it from the configuration.

不要硬编码超时时间,而是从配置中读取它。

the ui has hardcoded strings, so localization will take longer.

UI 中有硬编码的字符串,因此本地化将需要更长时间。

never hardcode secrets; use a secure vault service.

切勿硬编码机密信息;使用安全的保管库服务。

he hardcoded the currency symbol, which caused incorrect displays abroad.

他硬编码了货币符号,导致在国外显示不正确。

下载 App 解锁完整内容

想更高效学习单词?下载DictoGo App,享受更多词汇记忆与复习功能!

立即下载 DictoGo