terminology

What is a lambda (function)?

坚强是说给别人听的谎言 提交于 2019-12-16 19:56:29
问题 For a person without a comp-sci background, what is a lambda in the world of Computer Science? 回答1: Lambda comes from the Lambda Calculus and refers to anonymous functions in programming. Why is this cool? It allows you to write quick throw away functions without naming them. It also provides a nice way to write closures. With that power you can do things like this. Python def adder(x): return lambda y: x + y add5 = adder(5) add5(1) 6 As you can see from the snippet of Python, the function

What is monkey patching?

我是研究僧i 提交于 2019-12-16 19:02:26
问题 I am trying to understand, what is monkey patching or a monkey patch? Is that something like methods/operators overloading or delegating? Does it have anything common with these things? 回答1: No, it's not like any of those things. It's simply the dynamic replacement of attributes at runtime. For instance, consider a class that has a method get_data . This method does an external lookup (on a database or web API, for example), and various other methods in the class call it. However, in a unit

Software Development Methodology [closed]

最后都变了- 提交于 2019-12-14 03:39:25
问题 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 . I'd like to know the difference between Software Development Process and Software Development Methodology if there is any. 回答1: A process is only a component of a methodology. A methodology has: A process aspect: what tasks are to be carried out? A product aspect: what things are to be used and/or created? A

What is this colon in a constructor definition called?

99封情书 提交于 2019-12-13 19:47:16
问题 When defining a constructor in C#, you can use a colon (as in this example): public class Custom : OtherClass { public Custom(string s) : base(s) { } } What is this colon called? (It's awfully hard to read about it without knowing what it's called.) Note that I'm asking about the colon in the constructor definition, not the one showing inheritance in the class definition. 回答1: That isn't a method definition, it's a constructor definition; the colon is used to specify the superclass

Is there an existing pattern to generate a list of the applications of a function to every combination of the items in two lists?

与世无争的帅哥 提交于 2019-12-13 18:42:31
问题 I'm just getting into functional programming and i'm in the "try out some non-trivial examples and ask others if I'm doing it wrong" phase. I'm following Don Syme's F# Tutorial and have decided to take a stab at the blackjack exercise at the end of Part II with a twist: he suggests treating Ace as 11 for simplicity's sake, but I decided to ignore that recommendation. The way I'm handling it is by giving each card rank a list of possible values and building up a list of possible hand values

What is the difference between application server and web server?

…衆ロ難τιáo~ 提交于 2019-12-13 07:03:44
问题 What is the difference between application server and web server? 回答1: Most of the times these terms Web Server and Application server are used interchangeably. Following are some of the key differences in features of Web Server and Application Server: Web Server is designed to serve HTTP Content. App Server can also serve HTTP Content but is not limited to just HTTP. It can be provided other protocol support such as RMI/RPC Web Server is mostly designed to serve static content, though most

Terminology: What features must a language have for it to be considered a dynamically typed language?

让人想犯罪 __ 提交于 2019-12-13 04:57:31
问题 What features must a language have for it to be considered a dynamically typed language 回答1: Values have types, but variables do not. 来源: https://stackoverflow.com/questions/3462405/terminology-what-features-must-a-language-have-for-it-to-be-considered-a-dynami

What do you call a DLL that is placed on the same directory as the EXE?

会有一股神秘感。 提交于 2019-12-13 03:41:10
问题 I need a little help in terminology. You can put an assembly in the GAC to "share" these assembly globally in the machine. What do you call if you put the assembly in the same directory where the executable is? I have been calling it "side-by-side" because the EXE and the DLL is "side-by-side". I've done some reading and it seems that "side-by-side" stands for something else EDIT: Are those DLLs called "Private assemblies"? 回答1: Side-by-side refers to two versions of the same assembly (i.e. 1

Shouldn't C# 4.0's new “named parameters” feature be called “named arguments”?

跟風遠走 提交于 2019-12-12 13:57:06
问题 I suppose there could be historical reasons for this naming and that other languages have similar feature, but it also seems to me that parameters always had a name in C#. Arguments are the unnamed ones. Or is there a particular reason why this terminology was chosen? 回答1: Yes, you're absolutely right (to my mind, anyway). Ironically, although I'm usually picky about these terms, I still use "parameter passing" when I should probably talk about "argument passing". I suppose one could argue

Name for SELECT * FROM (VALUES (x,y)) AS TableLiteral(Col1, Col2)

烂漫一生 提交于 2019-12-12 10:38:18
问题 The following is valid SQL syntax: SELECT * FROM (VALUES ('p','q'),('x','y')) AS TableLiteral(Col1, Col2) and returns the table: | Col1 | Col2 ---------------- 1 | p | q 2 | x | y This syntax can further be used in CTEs etc. Is there a name for this? I've been calling them "TableLiterals" by analogy with string literals and regex literals. Is there a term that will be widely recognised. 回答1: It is called: Table Value Constructor Specifies a set of row value expressions to be constructed into