terminology

What is '`' character called?

[亡魂溺海] 提交于 2019-12-05 09:59:27
问题 I feel silly for asking this but it isn't like I could google this. What is the ` character called? In case it doesnt show up, it is the character used for inline code with markdown. Also, on most keyboards, it shares the key with ~ . I like all three answers so I made this a CW instead of accepting 回答1: All sorts of things, but in programming mostly the back-quote or backtick, 回答2: Grave (pronounced Grahv, not like the synonym for tomb) or Grave accent . 回答3: From the Jargon file, the prime

Are “65k” and “65KB” the same?

房东的猫 提交于 2019-12-05 09:03:26
Are "65k" and "65KB" the same? Christian From xkcd : 65KB normally means 66560 bytes. 65k means 65000, and says nothing about what it is 65000 of. If someone says 65k bytes, they might means 65KB...but they're mispeaking if so. Some people argue for the use of KiB to mean 66560 bytes, since k means 1000 in the metric system. Everyone ignores them, though. Note: a lowercase b would mean bit, rather than bytes. 8Kb = 1KB. When talking about transmission rates, bits are usually used. Edit: As Joel mentions, hard drive manufacturers often treat the K as meaning 1000. So hard disk space of 65KB

C++ Is it correct to call class member variables “attributes”?

孤街浪徒 提交于 2019-12-05 07:12:53
Can someone please disambiguate class attributes and methods for C++? I was under the impression that attribute means any member variable, and method means any member function. Thanks Define "correct". Referring to data members and member functions as "attributes/properties" and "methods", respectively, is common practice - it's the general OO wording. ("attributes" are used in C++ for something else , though, so this may very well be a source of confusion.) The C++ standard, however, does not use these terms (apart from attributes of course, as explained above). If you don't want to risk

Does the implementation of pow() function in C/C++ vary with platform or compiler?

我们两清 提交于 2019-12-05 06:34:18
问题 It took a day to debug the built-in pow() function's output. The output differed between my compiler and an online compiler. That is a long story. I have written the following Minimal, Complete, and Verifiable example reproduce the situation. Code: #include <bits/stdc++.h> using namespace std; // This function just prints the binary representation as it is in memory // A modified version of Lightness Races in Orbit's code given here: https://stackoverflow.com/a/37861479/3555000 // I thank

OOP Terminology: “Container” & “Collection”

为君一笑 提交于 2019-12-05 05:11:41
Is the C++ term "Container" simply synonymous with the Java term "Collection" ? Yes. Though, if I may speculate here, C++ term container better emphasizes ownership of contained items, as opposed to Java's collection , where there is no explicit memory ownership (due to garbage collection). Items in a C++ container are destroyed when a container is destroyed (hence items are contained or owned), in Java items may continue to exist if a collection itself is garbage collected. Container (wikipedia) Collection (wikipedia) If I understand correctly - usualy this difference is not significant. When

What is the meaning of “single page apps” in context with “round trip” apps?

人走茶凉 提交于 2019-12-05 04:46:14
Found here: http://docs.angularjs.org/guide/introduction It states that "You can use Angular to develop both single-page and round-trip apps, but Angular is designed primarily for developing single-page apps. Angular supports browser history, forward and back buttons, and bookmarking in single-page apps." But I'm not finding much on the two terms, spelled exactly that way, but I did find this: http://en.wikipedia.org/wiki/Round-trip_engineering Is this the correct term? Single page app, everything happens on one "page", although the URL might change. Most state changes are shown to the user

“k.send :hello” - if k is the “receiver”, who is the sender?

假如想象 提交于 2019-12-05 04:12:19
In the example below, why do we say "k.send :hello" instead of "k.receive :hello" if, as stated elsewhere , k is actually the receiver? It sounds like k is the sender rather than the receiver. When we say "k.send :hello" who is sending, if not k? (Are you as confused as I am?) class Klass def hello "Hello!" end end k = Klass.new k.send :hello #=> "Hello" k.hello #=> "Hello" Whatever object contains this code is sending the message — presumably main. Let's look at it with more explicit objects and normal message-passing. class Person attr_accessor :first_name, :last_name def initialize(first

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

折月煮酒 提交于 2019-12-05 04:10:19
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. 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" is a relative path and can be used as the Request-URI in the Request-Line as per the 2616 HTTP spec. In a web

MongoDB: what are the differences between documents, records, and attributes?

穿精又带淫゛_ 提交于 2019-12-05 03:36:18
问题 The documentation on documents seems to favor the term "document", and also refers to "database records". Elsewhere, competent MongoDB developers have apparently interchangeably used "attributes" and "records". What is the correct/official terminology to use in various instances? Is it documented somewhere on mongodb.org? 回答1: The confusion is merely because many MongoDB users are not just MongoDB users but also use 100 other techs including SQL. I personally have mixed up my language as well

What's *Deterministic concurrency*?

我的梦境 提交于 2019-12-05 03:26:23
I heard that there are 3 kind of concurrency. Deterministic concurrency Message-passing concurrency Shared-state concurrency I know #2 (=actor model) and #3 (=general threading), but not #1. What's that? Deterministic concurrency is a concurrent programming model such that programs written in this model have the following property: for a given set of inputs, the output values of a program are the same for any execution schedule. This means that the outputs of the program depend solely on the inputs of the program. There are ways to ensure this property. One of the ways is the so-called single