开发中的英语积累 P5:Dump、Constraint、Hierarchy、Optimization、Measure、Attribute
英文词性
词性 | 说明 | 举例 |
---|---|---|
n. | 名词 | student:学生 |
pron. | 代词 | you:你 |
adj. | 形容词 | happy:高兴的 |
adv. | 副词 | quickly:迅速地 |
v. | 动词 | run:跑 |
num. | 数词 | three:三 |
art. | 冠词 | the:这个 |
prep. | 介词 | at:在... |
conj. | 连词 | and:和 |
interj. | 感叹词 | wow:哇 |
一、Dump
protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) {...
}
-
词性:
v.
/n.
-
含义:转储,倾倒;转储文件
# 内存转储memory 【dump】
# 数据库转储database 【dump】
# 当程序崩溃时,系统会生成内存转储文件用于调试When the program crashes, the system generates a memory 【dump】 file for debugging.
# 使用 dump 命令可以将堆栈信息输出到日志文件Using the 【dump】 command can output stack information to the log file.
二、Constraint
public class ConstraintLayout extends ViewGroup {...
}
-
词性:
n.
-
含义:约束,限制
# 唯一约束unique 【constraint】
# 外键约束foreign key 【constraint】
# 外键约束维护了表之间的引用完整性Foreign key 【constraints】 maintain referential integrity between tables.
# 项目的时间约束要求我们在月底前完成开发The time 【constraints】 of the project require us to complete development by the end of the month.
三、Hierarchy
protected boolean mDirtyHierarchy = true;
-
词性:
n.
-
含义:层次结构,层级
# 类层次结构class 【hierarchy】
# 文件层次结构file 【hierarchy】
# 我们需要设计清晰的目录层次结构来组织项目文件We need to design a clear directory 【hierarchy】 to organize project files.
# 面向对象编程中的类层次结构支持继承和多态The class 【hierarchy】 in object-oriented programming supports inheritance and polymorphism.
四、Optimization
private int mOptimizationLevel = 257;
-
词性:
n.
-
含义:优化,最佳化
# 性能优化performance 【optimization】
# 查询优化query 【optimization】
# 性能优化显著提高了应用程序的响应速度Performance 【optimization】 significantly improved the application's response speed.
# 数据库查询优化减少了数据检索时间Database query 【optimization】 reduced data retrieval time.
五、Measure
private int mLastMeasureWidth = -1;
-
词性:
v.
/n.
-
含义:测量,衡量;措施,方法
# 性能测量performance 【measure】
# 安全措施security 【measure】
# 这个工具可以精确测量代码的执行时间This tool can accurately 【measure】 code execution time.
# 采取适当的安全措施可以防止数据泄露Taking appropriate security 【measures】 can prevent data breaches.
六、Attribute
public interface AttributeSet {...
}
-
词性:
n.
-
含义:属性,特性
# HTML 属性HTML 【attribute】
# 对象属性object 【attribute】
# 在 HTML 中,每个标签都可以有多个属性In HTML, each tag can have multiple 【attributes】.
# 对象的属性决定了其状态和行为An object's 【attributes】 determine its state and behavior.