terminology

What do we call the combined path, query, and fragment in a URI?

我只是一个虾纸丫 提交于 2019-12-08 19:10:46
问题 A URI is composed of several parts: scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment] . Often, I find myself wanting to refer to the entire part of the URI to the right of the host and port - the part that would be considered the URI in an HTTP request: GET /path?query#fragment Host: example.com As a short-hand, I normally call this the "path", but that's not quite accurate, as the path is only part of it. This is essentially the inverse of What do you call the entire first

What is the correct term for _ in a type hint?

江枫思渺然 提交于 2019-12-08 15:53:49
问题 In type hints in Rust it is possible to use partial types in annotations like this: let myvec: Vec<_> = vec![1, 2, 3]; What is the correct terminology for the underscore in the partial type annotation? I'm interested in both the Rust terminology as well as more academic type theory terminology. 回答1: I was able to find a piece of official documentation where the underscore is named in the context of patterns, but I doubt it's a "strict" name: Patterns consist of some combination of literals,

What's the correct term for the '…' token?

∥☆過路亽.° 提交于 2019-12-08 14:50:57
问题 Consider printf: int printf ( const char * format, ... ); What are the terms used to describe the ... and the functions that use it? I've been calling it an ellipsis, but that's like calling & the "ampersand operator." 回答1: Variable length parameter list Edit: Or, if describing the function itself: Variadic function 回答2: Ellipsis notation (, ...) p202 "K+R The C Programming Language" 回答3: "Ellipsis" is in fact often the best term here. Sometimes we refer to "arguments passed using the

What is {{$guid}} used for in Postman?

孤人 提交于 2019-12-08 14:46:25
问题 Postman's official website states that Postman has a few dynamic variables. My question is about: {{$guid}}:Adds a v4 style guid What kind of variable is {{$guid}} ? How can it be used in test scripts for API requests? 回答1: GUID is the acronym for "Globally Unique Identifier". A GUID is mainly used to produce hexadecimal digits with groups separated by hyphens for uniqueness purposes, for example: b3d27f9b-d21d-327c-164e-7fb6776f87b0 In postman you can use this to generate and send a random

What is the correct terminology of XML's elements?

风流意气都作罢 提交于 2019-12-08 11:40:47
问题 I am working on a SOAP app, and since it basically uses XML as it's data container, I became curious on what the correct terms for the XML elements are. For example we have header, body, envelope, but what are is the soap actions called? I am specifically wondering what the <something_something> field is called? And inside a soap action one can also find keys and their values such as for example <thisIsAKey>andThisIsItsValue</thisIsAKey> What is <thisIsAKey></thisIsAKey> called and what is

What is the difference between a statement and a keyword?

柔情痞子 提交于 2019-12-08 08:25:01
问题 After calling return a statement, it was brought out to me in the comments: return isn't a statement, it's the keyword that starts the return statement. What is the difference between a statement and a keyword that starts a statement ? 回答1: What's the difference between a sentence and a noun that starts a sentence? ;-) return is a keyword, which means it's one of a few basic terms (tokens) of the language. They are privileged, each reserved for a special purpose and having special meaning

x>y && z==5 - how are parts of this expression called?

荒凉一梦 提交于 2019-12-08 02:29:22
问题 I know && is the logical operator here, also conditions on the left and on the right are operands, right? Like: 1+1 is an expression where + is the operator and the numbers are operands. I just do not know whether the condition itself is called the operand as well because it get compared by an operator. I guess so.+ Thanks 回答1: What are the parts called? > , && , and == are all operators. Operands are the values passed to the operators. x , y , and z are the initial operands. Once x > y and z

In ASP.NET, What is the 'ASP' code called?

感情迁移 提交于 2019-12-07 19:43:04
问题 More detail to my question: HTML and JavaScript are called "client-side code". C# and VB in the code behind files are termed "server-side code". So what is inline-asp, and 'runat=server' code blocks called? <!-- This is called "client-side" --> <p>Hello World</p> <script>alert("Hello World");</script> ... // This is called "server-side" public void Page_Load(object sender, EventArgs e) { Response.Write("Hello World"); } ... <%-- What is this called ??? --%> <asp:Label ID="MyLabel" runat=

Hashtable. Name history. Why not HashTable?

时光怂恿深爱的人放手 提交于 2019-12-07 18:23:49
问题 we know: ArrayList; LinkedList; TreeMap and other... and all names in CamelCase format, but why Hashtable , not HashTable ? it is unprincipled question, just wondering :) 回答1: Hashtable was created in Java v1. The consistent naming conventions for collections were established later, in Java2, when the other classes were published as part of the brand new Java Collection Framework. Which btw made Hashtable obsolete, so it should not be used in new code. 回答2: It's a typo. Same as Cloneable

Dependency Injection and Inversion of Control - terminology

梦想与她 提交于 2019-12-07 15:48:15
问题 In functional programming, functions are regarded as entities, and can be passed around as objects are in an OO context. At some level, the function may be 'called' with some arguments. And I was wondering: is this, too, called Dependency Injection? And further: does this usage of DI result in Inversion of Control? 回答1: Dependency Injection is a concept. You could perhaps "implement" DI in functional languages using this (the ability to pass functions as parameters). There could be many ways