terminology

What is the difference between a directory and a folder?

纵饮孤独 提交于 2020-08-20 18:12:46
问题 Most people use the terms "folder" and "directory" interchangeably. From a programmer point of view, is there a difference, and if so, what is it? Does it depend on the OS, or is there a broad, general consensus? This at least suggests that there is a difference. 回答1: Check "The folder metaphor" section at Wikipedia. It states: There is a difference between a directory, which is a file system concept, and the graphical user interface metaphor that is used to represent it (a folder). For

In Windows what is a “runtime image”? [closed]

吃可爱长大的小学妹 提交于 2020-08-05 06:05:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question I am reading the book "MySQL 5.0 Certification Study Guide". On page 362 it states: • mysql-debug contains support for debugging. Normally, you don't choose this server for production use because it has a larger runtime image and uses more memory. What is an "image"? I have searched

CSS pseudo-class vs. pseudo-selector

早过忘川 提交于 2020-06-25 01:28:09
问题 This is a bit of a pedantic question, but perhaps worth asking. Is there, mechanically, a difference between a pseudo-class and a pseudo-selector in CSS? We use the term interchangeably around here, but it seems that there's a reason for the two terms. Is there any use to differentiating the two? 回答1: A pseudo-class is a specified thing, while pseudo-selector is a made up word. (Meanwhile, a pseudo-class matches an element when certain conditions are met (e.g. the mouse is pointing at it, or

“Waiting” on either a promise or regular object using native(ES6) JavaScript promises

心已入冬 提交于 2020-02-25 04:10:29
问题 I played with promises a few times a few years ago using either jQuery or Q. I'm now quite rusty and want to learn and use the new native ES6 promises. I seem to remember one neat concept where you can "wait" on something and not care whether it's a plain object or a promise. If it's a promise the callback is called when it asynchronously completes, if it's anything else the callback is called immediately - maybe the next tick. But I can't recall how this is done. I'm not sure if it has a

“Waiting” on either a promise or regular object using native(ES6) JavaScript promises

对着背影说爱祢 提交于 2020-02-25 04:10:27
问题 I played with promises a few times a few years ago using either jQuery or Q. I'm now quite rusty and want to learn and use the new native ES6 promises. I seem to remember one neat concept where you can "wait" on something and not care whether it's a plain object or a promise. If it's a promise the callback is called when it asynchronously completes, if it's anything else the callback is called immediately - maybe the next tick. But I can't recall how this is done. I'm not sure if it has a

Does a deep copy operation recursively copies subvariables which it doesn't own?

。_饼干妹妹 提交于 2020-02-03 05:42:05
问题 Given an object that has a variable which it doesn't own; that is, the variable is composed by aggregation instead of composition. Will a deep copy operation copy the variable or only the link to it? 回答1: I like the distinction that you are making here between the role of composition and aggregation in the context of a deep copy. I am going to go against the other answer and say: no, an object should not deep-copy another object that it doesn't own. One would expect a deep copy of an object

What is the name of Kotlin's !! operator

半腔热情 提交于 2020-02-02 02:00:11
问题 When in a conversation with other developers, what do I call the !! operator? In Kotlin, the ?: is called the Elvis operator These sources don't say what the name of !! is: http://kotlinlang.org/docs/reference/null-safety.html#the--operator http://kotlinlang.org/docs/reference/keyword-reference.html Looking online, the generic term for !! is double bang . Do I use the same for Kotlin even though swift's ! operator is called forced unwrapping (Note: the ! in swift is similar to Kotlin's !! .)

C - Reference after dereference terminology

徘徊边缘 提交于 2020-01-24 07:42:25
问题 This question is about terminology. int main() { unsigned char array[10] = {0}; void *ptr = array; void *middle = &ptr[5]; // <== dereferencing ‘void *’ pointer } Gcc emits the warning Dereferencing void pointer . I understand the warning because the compiler needs to compute the actual offset, and it couldn't because void has no standard size. But I disagree with the error message. This is not a dereference. I can't find a dereference explanation where it is something else than taking value

C - Reference after dereference terminology

北慕城南 提交于 2020-01-24 07:41:00
问题 This question is about terminology. int main() { unsigned char array[10] = {0}; void *ptr = array; void *middle = &ptr[5]; // <== dereferencing ‘void *’ pointer } Gcc emits the warning Dereferencing void pointer . I understand the warning because the compiler needs to compute the actual offset, and it couldn't because void has no standard size. But I disagree with the error message. This is not a dereference. I can't find a dereference explanation where it is something else than taking value