terminology

Difference between variable and data object in C language?

 ̄綄美尐妖づ 提交于 2019-12-07 13:46:31
问题 I was reading C Primer Plus and came across the following lines that I couldn't understand- Pointers? What are they? Basically, a pointer is a variable (or, more generally, a data object)whose value is a memory address. Just for reference,I came across these lines earlier- Consider an assignment statement. Its purpose is to store a value at a memory location. Data object is a general term for a region of data storage that can be used to hold values. The C standard uses just the term object

What is atomic?

为君一笑 提交于 2019-12-07 13:24:25
问题 These are two atomic operations: int value = 5; Object obj = new Object(); But when using a primitive as a method parameter, would this be considered as an atomic operation: public void setValue(int val, Object obj){ this.value = val; // Atomic? this.obj = obj; // Not atomic? } ? The copy of the object reference is not atomic since it includes a read and a write, right? Would it be correct to say that the only way to make an atomic operation on an object reference is to declare it null or

What does HTTP look like?

丶灬走出姿态 提交于 2019-12-07 10:58:53
问题 I've been working a lot with HTTP related things - HTTP requests, HTTP responses, HTTP methods etc., but I'm not really sure I understand what the protocol itself looks like. Is it a document like a specification? 回答1: Is it a document like a specification? Yes, HTTP is a protocol over TCP/IP defined in the following specification: http://www.w3.org/Protocols/rfc2616/rfc2616.html This protocol is for example implemented by web servers and client browsers. 回答2: Hyper Text Transfer Protocol

Why is Java's “protected” less protected than default? [closed]

此生再无相见时 提交于 2019-12-07 10:39:58
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . In Java, we have four access specifiers: public , protected , package-private (default), and private . This is well known and not an

Why do programmers confuse the term “assembler” with “assembly”? [closed]

独自空忆成欢 提交于 2019-12-07 02:54:54
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . As programmers we need to be precise with our verbal and written communication. Why do so many programmers confuse the term "assembler

REST: what's the name for the HTTP verb and endpoint?

為{幸葍}努か 提交于 2019-12-06 23:48:46
问题 Given this: GET /users /users is called endpoint in REST terminology. How do you call the whole GET /users (verb + endpoint) instead? I hope there is one word for it. Thanks. 回答1: You probably won't like this answer, but here it is anyway: REST does not use the terminology "endpoint" at all. You can check Fielding's thesis yourself: http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm - open the PDF and search for "endpoint". Fumanchu's answer is probably the closest you get: "/Users"

Protocol Terminology: Message versus Packet

◇◆丶佛笑我妖孽 提交于 2019-12-06 23:23:56
问题 In practice, what is the most appropriate term for the communications transmitted over a network in higher level protocols (those above TCP/IP, for example)? Specifically, I am referring to small, binary units of data. I have seen both "message" and "packet" referred to in various client/server libraries, but I was interested in the community's consensus. 回答1: These are definitely messages. A "packet" is a layer-3 (in ISO terminology) protocol unit, such as an IP packet; and a "datagram" is a

What does “exposition only” mean? Why use it?

ぐ巨炮叔叔 提交于 2019-12-06 20:29:03
问题 All over boost.org and also at other sites on the web I've seen code of this form: class whatever { ... private: std::vector<std::string> m_name; // exposition only }; What is the meaning of "exposition only"? What is the comment's purpose? What is it trying to tell me? 回答1: It's used to indicate one possible way to implement the particular item, but not necessarily the best or recommended way. 回答2: One of the definitions of "exposition" is: the act of expounding, setting forth, or explaining

True random number generation

左心房为你撑大大i 提交于 2019-12-06 18:38:02
问题 How is exactly that we talk about "true random" numbers when we are actually measuring something. I mean, isn't measuring almost the opposite of randomness. Som articles says that, for example, throwing a dice is "true random". Of course it isn't Pseudo-random, but is it even random?? If you could have a machine that throw dices from de exactly same position and always in the same direction with the exact same force always: woudn't it always turn out the same number? (I thing it does). Please

binary compatibility vs backward compatibilty

我们两清 提交于 2019-12-06 13:37:41
问题 I've been reading some details about Qt d-pointer and came across the binary compatibility term. Is this the same as backward compatibility? 回答1: Backward compatibility of shared libraries includes: Binary compatibility Source compatibility Behavioral compatibility So, the answer is NO. Binary compatibility is only the part of backward compatibility. See the "Kinds of Compatibility: Source, Binary, and Behavioral" for more info. 来源: https://stackoverflow.com/questions/5728838/binary