Login

View change log entry

Back

Navigation:  ◀ 73709  73711 ▶ 

Change log entry 73710
Processed by: richwarm (2021-11-03 21:08:48 GMT)
Comment: << review queue entry 69309 - submitted by 'sl89' >>
* Wikipedia uses the 写死 for Traditional Chinese and 硬编码 for Simplified Chinese, but it's not hard to find examples of 写死 being used by Mainland developers. In act, that's how I knew about this word, from discussions with PRC developers, who seem to use it naturally.
* There's also a difference in terms of POS, 写死 is a (resultative) verb, 硬编码 is a noun phrase which tends to be used attributively (硬编码的方式, 硬编码应用程序), although it also seems to be used as a verb.

【Wikipedia:寫死/硬编码】
硬编码(英语:Hard Code或Hard Coding)是指在软件实现上,将输出或输入的相关参数(例如:路径、输出的形式或格式)直接以常量的方式撰写在源代码中,而非在运行期间由外界指定的设置、资源、资料或格式做出适当回应
https://zh.wikipedia.org/wiki/%E5%AF%AB%E6%AD%BB

Hard coding (also hard-coding or hardcoding) is the software development practice of embedding data directly into the source code of a program or other executable object, as opposed to obtaining the data from external sources or generating it at runtime.
https://en.wikipedia.org/wiki/Hard_coding

【百度百科:硬编码】
硬编码是将数据直接嵌入到程序或其他可执行对象的源代码中的软件开发实践,与从外部获取数据或在运行时生成数据不同。
https://baike.baidu.com/item/硬编码/8070173

程序员常讲的「写死」是什么鬼?
首先明确「程序员嘴里说的写死」到底是什么意思?本篇文章中,我们的举例都以客户端写死为例进行说明,其他程序亦然。程序员所说的是指对一些参数或配置写死。写死意味着除非发下一个版本,否则这个数据不可更改。比如微信下面的四个TAB,就是写死的,因为那四个TAB永远不会变。在程序实现的时候,程序员问是否要写死,其实是探求这里是否会变化。如果不变,那就写死。
http://www.woshipm.com/pmd/805312.html

什么叫“硬编码”?“硬”,顾名思义,就是死板,一次性的意思。其定义也就是“将可变变量用一个固定数值表示”,这种方式在编码的过程中会导致变量很难修改。
https://www.cnblogs.com/zhongshujunqia/p/4611543.html


在token合约中有一些写死的参数,开发者可以根据自己的token的一些特定的设计来调整这些参数。
There are a few hard codeed parameters in the token contract, and you could tweak them to suit your particular token design.

起先,我针对三张具体的表和两个具体的类编写了一段写死的代码,根本就没有考虑通用化的问题。
I started by writing an example that was hard-coded for three particular tables and two particular classes. I didn t think about generalizing it.

你现在使用的是试用版本。试用版本可以一直使用下去,但是加密脚本的密钥是公开的,并且固定不变,是在代码中写死的。
You're using trail version. Free trial version that never expires, but project capsule generated is fixed by hardcode, so all the encrypted files are encrypted by same key.

CA5398: Avoid hardcoded SslProtocols values
避免硬编码的 SslProtocols 值
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca5398

CA5403: Do not hard-code certificate
CA5403:请勿硬编码证书
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca5403

然而,在使用JMS的生产环境中,JMS主题名或队列名一般是使用JNDI(Java Naming and Directory Interface)进行配置的,而不会采用 硬编码 的 方 式
However, in a production system using JMS, the name of the topics or queues might be configured using Java Naming and Directory Interface (JNDI) instead of hard-coded values.

在开发 BIOS 低依赖式启动时,开发人员能对定制中断分配进 行 硬编码 , 确 保其在编译时可知。
When developing BIOS-less boots, developers can hard-code custom interrupt assignments so that they are known at compile time.
Diff:
+ 寫死 写死 [xie3 si3] /to hard code (computing)/
+ 硬編碼 硬编码 [ying4 bian1 ma3] /(computing) hard-coded/to hard code/
By MDBG 2024
Privacy and cookies
Help wanted: the CC-CEDICT project is looking for new volunteer editors!