terminology

What is the official name of C++'s arrow (->) operator?

a 夏天 提交于 2019-11-28 09:35:22
I always call it the " arrow operator ", but I'm sure it has an official name. I quickly skimmed the C++ standard and didn't see it mentioned by name. The C++ standard just calls it "arrow" (§5.2.5). Bjarne Stroustrup calls it the "structure pointer dereference" operator (TC++PL Special Edition, p. 102). In the index he refers to it as the "member access" operator. Not sure if this is "official" but the guy did write the language, after all. The official name for this operator is class member access operator (see 5.2.5). Although this name is attached to both . and -> operators, meaning that

difference between forwarding and redirection [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-11-28 08:47:31
Possible Duplicate: difference between jsp forward and redirect Does anyone knows the differences between forwarding and redirection in Http servlets and the impact of these differences on browser refreshes? Jigar Joshi forwarding is done without letting client know that, It is used to do internal communication at server, while in redirecting we are asking client go back and ask it over here. Real life example Forwarding You went to postoffice there are number of boxes and person sitting there, now one of them accepts your request and it internally forwards it to other responsible person to

Difference between “anonymous function” and “function literal” in JavaScript?

为君一笑 提交于 2019-11-28 08:39:43
The book Learning JavaScript defines anonymous functions as follows... Functions are objects. As such, you can create them - just like a String or Array or other type - by using a constructor and assigning the function to a variable. In the following code, a new function is created using the Function constructor, with the function body and argument passed in as arguments: var sayHi = new Function("toWhom", "alert('Hi' + toWhom);"); This type of function is often referred to as an anonymous function because the function itself isn't directly declared or named. Is this the correct definition of

What is the relation between auto-dereferencing and deref coercion?

风流意气都作罢 提交于 2019-11-28 07:22:30
问题 After some discussion, I'm now a little bit confused about the relation between auto-dereferencing and deref coercion . It seems that the term "auto-dereferencing" applies only when the target to dereference is a method receiver, whereas it seems that the term "deref coercion" applies to function arguments and all contexts it needs to. I thought that a dereference does not always involve deref coercion, but I'm not sure: does dereferencing always use some Deref::deref trait implementation? If

Python : terminology 'class' VS 'type'

给你一囗甜甜゛ 提交于 2019-11-28 06:45:13
Just a simple question : when should I use the term 'class', and when should I use the term 'type' in Python ? is 'class' only for user-defined types, and 'type' for built-in types ? or now that everything is a type ... should I use always 'type' even for user-defined classes ? ... ? It is more or less historical: they used to be different a long time ago, which has no practical implications anymore. Edit: I use " class " when referring to concrete implementations and " type " in a more informal way, when speaking about high level data structures, application arcitecture etc. In my thinking a

The difference between a destructor and a finalizer?

给你一囗甜甜゛ 提交于 2019-11-28 06:45:08
Please Note: This question is about the difference in terminology between the words "destructor" and "finalizer" and their correct usage. I have merely provided examples of their use in C# and C++/CLI to demonstrate why I am asking the question. I am well aware of how it is implemented in both C# and the CLR, but I am asking about the correct use of terminology. In the C# world the terms "destructor" and "finalizer" seem to be used pretty much interchangeably, which I suspect is because the C# specification describes the non-deterministic cleanup functionality using the word "destructor",

C# variable initializations vs assignment

笑着哭i 提交于 2019-11-28 06:28:01
问题 In a book I found following (translation): Initialization means assigning the value of the variable at the declaration time. int X=5 is called an initialization command. EDIT: It just says that term initialization is used only when you assign value at the declaration time. If you do it later, its just assignement (according to it - I do not think so and that is why I am asking). Is it true or not? Well, I have always thought (and according to others on the net, too) about initialization in

What is the difference between POJO (Plain Old Java Object) and DTO (Data Transfer Object)?

孤者浪人 提交于 2019-11-28 05:55:35
I cannot find difference between them. Does anyone know how to differentiate them? POJO or "Plain Old Java Object" is a name used to describe "ordinary" Java objects, as opposed to EJBs (originally) or anything considered "heavy" with dependencies on other technologies. DTO or "Data Transfer Object" is an object for... well... transferring data, usually between your "business" classes and persistence layer. It typically is a behavior-less class much like a C-style struct. They are an outdated concept. Jon A POJO is just a simple Java object, the acronym is used to emphasize that it really is

Python terminology: things to left of “= argv” in Learn Python the Hard Way exercise 13

天涯浪子 提交于 2019-11-28 05:50:20
问题 Zed Shaw's "Learn Python the Hard Way" frequently asks you to "write out in English" what each and every line of a script does. I am struggling to do that with some stuff associated with the function (command?) argv because I don't know what to name certain parts of the code. Heck, I don't even know what to call argv--a function? A command? Variable? I know it's a module. But back on track: Here is the code from exercise 13: from sys import argv script, first, second, third = argv print "The

crawler vs scraper

风流意气都作罢 提交于 2019-11-28 05:12:14
Can somebody distinguish between a crawler and scraper in terms of scope and functionality. Jerry Coffin A crawler gets web pages -- i.e., given a starting address (or set of starting addresses) and some conditions (e.g., how many links deep to go, types of files to ignore) it downloads whatever is linked to from the starting point(s). A scraper takes pages that have been downloaded or, in a more general sense, data that's formatted for display, and (attempts to) extract data from those pages, so that it can (for example) be stored in a database and manipulated as desired. Depending on how you