【编程】常见概念的理解 —— inplace、vanity url、vanilla(code/software)、编译、链接、build、(delegate、proxy)

  • inplace:

    • 如修改一个文件等对象时,
    • inplace=True,不创建新的对象,直接在原始对象上尽心修改;
    • inplace=False,在对原始对象进行修改,而会创建新的对象;
  • vanity url:虚拟地址空间,表示某平台下,个人申请的不会出现重名的唯一域名空间;

1. vanilla

What does vanilla mean?

Vanilla often refers to pure or plain. So in terms of programming languages, it means either without the use of 3rd party libraries or without the use of frameworks.

在计算机编程的范畴中,通常表示不使用第三方库或任何相关的框架平台等。

2. compiling、linking、building

What is the difference between compile code and executable code?

  • compiling:source code ⇒ object code
  • linking: combining object code with libraries into a raw executable(将相关的库链接到目标码中)
  • building:组合了编译和链接的过程,也可能包含其他的一些操作(such as installer creation)

3. delegate:委托代理

vt. 委派…为代表;n. 代表

  • They drafted him to serve as their delegate.
    • 他们选派他作他们的代表。
  • Each delegate could then be invoked separately.
    • 然后可以单独调用每个委托。
  • Should I delegate this task or just say no all together?
    • 我应该把这个任务委托给别人,还是直接拒绝?

4. delegate vs. proxy

proxy :译为代理, 被代理方(B)与代理方(A)的接口完全一致。 主要使用场景(语义)应该是:为简化编程(或无法操作B),不直接把请求交给被代理方(B),而把请求交给代码方(A),由代理方与被代理方进行通信,以完成请求。

delegete : 译为委托,主要语义是:一件事情(或一个请求)对象本身不知道怎样处理,对象把请求交给其它对象来做。

原文地址:https://www.cnblogs.com/mtcnn/p/9421733.html