terminology

What is an API key? [closed]

删除回忆录丶 提交于 2019-11-27 10:08:22
I see this word in almost every cross service application these days. What exactly is an API key and what are its uses? Also, what is the difference between public and private API keys. What "exactly" an API key is used for depends very much on who issues it, and what services it's being used for. By and large, however, an API key is the name given to some form of secret token which is submitted alongside web service (or similar) requests in order to identify the origin of the request. The key may be included in some digest of the request content to further verify the origin and to prevent

API vs. Webservice [closed]

谁说我不能喝 提交于 2019-11-27 10:00:48
What is the difference between a webservice and an API? Is the difference more than the protocol used to transfer data? thanks. Andrew Cholakian An API (Application Programming Interface) is the means by which third parties can write code that interfaces with other code. A Web Service is a type of API, one that almost always operates over HTTP (though some, like SOAP, can use alternate transports, like SMTP). The official W3C definition mentions that Web Services don't necessarily use HTTP, but this is almost always the case and is usually assumed unless mentioned otherwise. For examples of

What is 'Pattern Matching' in functional languages?

被刻印的时光 ゝ 提交于 2019-11-27 10:00:32
I'm reading about functional programming and I've noticed that Pattern Matching is mentioned in many articles as one of the core features of functional languages. Can someone explain for a Java/C++/JavaScript developer what does it mean? Juliet Understanding pattern matching requires explaining three parts: Algebraic data types. What pattern matching is Why its awesome. Algebraic data types in a nutshell ML-like functional languages allow you define simple data types called "disjoint unions" or "algebraic data types". These data structures are simple containers, and can be recursively defined.

What do you call tags that need no ending tag?

会有一股神秘感。 提交于 2019-11-27 09:58:45
问题 There are HTML tags, such as <img /> , <input /> and <button /> , that need no ending tag ( </img> , </input> and </button> ). What is the term that describes this type of tags? 回答1: This syntax has a variety of names depending on what language you are using. The best way to find out what it is called is to look at the specification for the specific language. HTML 4.x I can't find any mention of this syntax in the HTML 4.x specification. It is not valid syntax. HTML 5 In the HTML 5

What is the difference between Serialization and Marshaling?

痞子三分冷 提交于 2019-11-27 09:55:38
I know that in terms of several distributed techniques (such as RPC), the term "Marshaling" is used but don't understand how it differs from Serialization. Aren't they both transforming objects into series of bits? Related: What is Serialization? What is Object Marshalling? Jeffrey Hantin Marshaling and serialization are loosely synonymous in the context of remote procedure call, but semantically different as a matter of intent. In particular, marshaling is about getting parameters from here to there, while serialization is about copying structured data to or from a primitive form such as a

Where does the word “pragma” come from?

我与影子孤独终老i 提交于 2019-11-27 09:55:17
问题 So I know what pragma is, and what it's used for, but what is the meaning of the word itself? I've used it many times in code, but I never really knew what the word actually means or stands for. 回答1: According to a US Government-owned(!) document describing the design of Ada: Rationale for the Design of the Ada® Programming Language : A pragma (from the Greek word meaning action) is used to direct the actions of the compiler in particular ways, but has no effect on the semantics of a program

About first-,second- and third-class value

99封情书 提交于 2019-11-27 09:41:37
问题 First-class value can be passed as an argument returned from a subroutine assigned into a variable. Second-class value just can be passed as an argument. Third-class value even can't be passed as an argument. Why should these things defined like that? As I understand, "can be passed as an argument" means it can be pushed into the runtime stack;"can be assigned into a variable" means it can be moved into a different location of the memory; "can be returned from a subroutine" almost has the

What does stream mean? What are its characteristics?

我只是一个虾纸丫 提交于 2019-11-27 09:40:42
问题 C++ and C# both use the word stream to name many classes. C++ : iostream , istream , ostream , stringstream , ostream_iterator , istream_iterator ... C# : Stream , FileStream , MemoryStream , BufferedStream ... So it made me curious to know, what does stream mean? What are the characteristics of a stream ? When can I use this term to name my classes? Is this limited to file I/O classes only? Interestingly, C doesn’t use this word anywhere, as far as I know. 回答1: Many data-structures (lists,

Why is a static method considered a method?

旧街凉风 提交于 2019-11-27 09:33:29
问题 I'm writing an explanation for some code for a course, and have been accidentally using the words method and function interchangeably. I decided to go back over and fix the wording, but ran into a hole in my understanding. From what I understand, a subroutine is a function if it doesn't act on an instance of a class (its effect is restricted to its explicit input/output), and is a method if it operates on an instance of a class (it may carry out side effects on the instance that make it

Class vs package vs module vs component vs container vs service vs platform in Java world [closed]

◇◆丶佛笑我妖孽 提交于 2019-11-27 09:25:23
问题 I am newbie to Java world (7 years of low level plain C). When I started reading Java related sites: http://wiki.apidesign.org/wiki/Main_Page http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/ I confused by existing terminology: class package module component container service framework platform I found many resources about terms definition (and a lot more): Framework vs. Toolkit vs. Library Difference between framework and container? What are the containers in