香草是什么意思?

香草味的形容词出现在很多地方: 普通的 java,普通的 javascript: 它到底是什么意思?

从上下文来看,似乎是代表某种“简单”的东西。

什么时候特定的代码被认为是 香草味的,什么时候不被认为是 香草味的

37852 次浏览

Computer software, and sometimes also other computing-related systems like computer hardware or algorithms, is called Vanilla when not customized from its original form, meaning that it is used without any customizations or updates applied to it.

http://en.wikipedia.org/wiki/Vanilla_software

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.

It derives from the time when, of the various flavours of ice-cream available, vanilla flavour was the most common, simple and often even the only one available. Other flavours were rarer and more exotic.

In programming terms it does not refer to anything specific but implies any or all of:

  • No bells and whistles
  • No extra (perhaps unnecessary) features
  • Uses no external libraries
  • The pure language without any extras

Despite how boring "vanilla" might be seen in terms of ice-cream, it's rarely used derogatively in programming.

In computer science, vanilla is the term used to refer when computer software and sometimes also other computing-related systems like computer hardware or algorithms are not customized from their original form, i.e., they are used without any customizations or updates applied to them. (Wiki)

I know this a very old post but for posterity purposes. Simply put Vanilla is the raw, un-altered, plain, form of a thing without modification. E.g : vanilla js means javascript as it is without frameworks like react, jquery, etc and vanilla sql means sql without orm like laravel eloquent for instance.