algorithm
/ˈælɡəˌrɪðəm/
n. 算法;运算法则
The sorting algorithm runs in O(n log n) time complexity.
该排序算法的时间复杂度为 O(n log n)。
We need to optimize this algorithm for better performance.
我们需要优化这个算法以获得更好的性能。
recursion
/rɪˈkɜːrʒn/
n. 递归;循环
Recursion is a method where the solution depends on solutions to smaller instances.
递归是一种方法,其解决方案依赖于较小实例的解决方案。
Be careful with recursion to avoid stack overflow.
使用递归时要小心避免栈溢出。
encapsulation
/ɪnˌkæpsjuˈleɪʃn/
n. 封装;包装
Encapsulation hides the internal state of an object from the outside.
封装将对象的内部状态对外部隐藏。
Good encapsulation leads to more maintainable code.
良好的封装能带来更易维护的代码。
polymorphism
/ˌpɒliˈmɔːfɪzəm/
n. 多态性
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
多态性允许不同类的对象被当作共同父类的对象来处理。
Method overriding is a common way to implement polymorphism.
方法重写是实现多态性的常见方式。
inheritance
/ɪnˈherɪtəns/
n. 继承;遗传
Inheritance enables new classes to receive the properties of existing classes.
继承使新类能够接收现有类的属性。
Multiple inheritance can lead to the diamond problem.
多重继承可能导致菱形继承问题。
abstraction
/æbˈstrækʃn/
n. 抽象;提取
Abstraction reduces complexity by hiding unnecessary details.
抽象通过隐藏不必要的细节来降低复杂性。
An abstract class cannot be instantiated directly.
抽象类不能被直接实例化。
concurrency
/kənˈkʌrənsi/
n. 并发;并发性
Concurrency allows multiple tasks to run in overlapping time periods.
并发允许多个任务在重叠的时间段内运行。
Handling concurrency correctly is crucial for multi-threaded applications.
正确处理并发对多线程应用程序至关重要。
serialization
/ˌsɪəriəlaɪˈzeɪʃn/
n. 序列化
Serialization converts an object into a stream of bytes for storage.
序列化将对象转换为字节流以便存储。
JSON is a popular format for data serialization.
JSON 是一种流行的数据序列化格式。
asynchronous
/eɪˈsɪŋkrənəs/
adj. 异步的
Asynchronous programming allows the program to continue executing while waiting for I/O.
异步编程允许程序在等待 I/O 时继续执行。
Use async/await syntax for cleaner asynchronous code.
使用 async/await 语法可以获得更简洁的异步代码。
deprecated
/ˈdeprəkeɪtɪd/
adj. 已弃用的;不推荐的
This method is deprecated and will be removed in the next version.
此方法已弃用,将在下一版本中移除。
Avoid using deprecated APIs in new projects.
避免在新项目中使用已弃用的 API。