nomenclature

Numerical character reference entities… Nomenclature

耗尽温柔 提交于 2019-12-13 05:47:27
问题 It used to be so simple. Or so I thought. nbsp is an entity   is, therefore, an entity reference (a reference to an entity)   is a character reference (a reference to a numerical character value) But these days, I read so many documents, even official ones, where those words are all mangled together; you have character entities, named character references, numerical entities, reference entities, and so on. So what is it really? How are these things really called? Who can I trust to have it

Is there a “canonical” name for a function combining min() and max()?

℡╲_俬逩灬. 提交于 2019-12-12 08:18:27
问题 I find that I frequently end up writing a function that I always call " clamp() ", that is kind of a combination of min() and max() . Is there a standard, "canonical" name for this function? It always looks something like this: function clamp($val, $lower, $upper) { if ($val < $lower) return $lower; else if ($val > $upper) return $upper; else return $val; } Or simply using built-in min() and max() functions: function clamp($val, $lower, $upper) { return max($lower, min($upper, $val)); }

Why is it called 'business logic'? Where did this term come from?

不问归期 提交于 2019-12-04 07:57:37
问题 I'm going through all sorts of WPF documentation, and I'm feeling unnecessarily confused. The term 'business logic' is scattered throughout it, as if everyone should know what it is. I can see what business logic is, according to this question here: What exactly consists of 'Business Logic' in an application? But where did the term come from? Why is it called 'business logic' and not, say, 'core logic' or 'main algorithms' or any other more generic terms? Very few of the programs I write have

What is this functional “pattern” called?

坚强是说给别人听的谎言 提交于 2019-12-04 06:38:06
I was fooling around with some functional programming when I came across the need for this function, however I don't know what this sort of thing is called in standard nomenclature. Anyone recognizes it? function WhatAmIDoing(args...) return function() return args end end Edit: generalized the function, it takes a variable amount of arguments ( or perhaps an implicit list) and returns a function that when invoked returns all the args, something like a curry or pickle, but it doesn't seem to be either. WhatAmIDoing is a higher-order function because it is a function that returns another

Why “class” for class in Java? [closed]

我的未来我决定 提交于 2019-12-03 22:23:00
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . Why did the creators of Java use the name "class" for the classes in Java? Where does this term come from? 回答1: Java didn't invent the name class - it was used in languages prior, like C++. I think the name

What's the difference between abstraction and generalization?

本小妞迷上赌 提交于 2019-12-03 02:38:40
问题 I understand that abstraction is about taking something more concrete and making it more abstract. That something may be either a data structure or a procedure. For example: Data abstraction: A rectangle is an abstraction of a square. It concentrates on the fact a square has two pairs of opposite sides and it ignores the fact that adjacent sides of a square are equal. Procedural abstraction: The higher order function map is an abstraction of a procedure which performs some set of operations

What is the relation between GTK, GTK+ and GTK2?

橙三吉。 提交于 2019-12-03 01:01:56
I'm confused by the GTK terminology. According to Wikipedia , there seem to be bindings to GTK+ that are called GTK (GtkAda) and GTK2 (gtk2hs, Gtk2-Perl). Could someone clear this up for me? GTK/GTK+ and GTK2 are different versions of the same API. GTK is an old, deprecated version, GTK2 is the previous one, GTK+ 3/GTK3 is the current version. GTK+ is the correct name of the old API, but most people just call it GTK. The C++ bindings for GTK+ are part of the project GTKmm. The first incarnation of the project was called GTK (which stood for GIMP Toolkit). At some very early point, while the

What is the difference between a heuristic and an algorithm?

大憨熊 提交于 2019-12-03 00:04:18
问题 What is the difference between a heuristic and an algorithm? 回答1: An algorithm is the description of an automated solution to a problem . What the algorithm does is precisely defined. The solution could or could not be the best possible one but you know from the start what kind of result you will get. You implement the algorithm using some programming language to get (a part of) a program . Now, some problems are hard and you may not be able to get an acceptable solution in an acceptable time

Why is it called 'business logic'? Where did this term come from?

戏子无情 提交于 2019-12-02 18:54:06
I'm going through all sorts of WPF documentation, and I'm feeling unnecessarily confused. The term 'business logic' is scattered throughout it, as if everyone should know what it is. I can see what business logic is, according to this question here: What exactly consists of 'Business Logic' in an application? But where did the term come from? Why is it called 'business logic' and not, say, 'core logic' or 'main algorithms' or any other more generic terms? Very few of the programs I write have anything to do with 'business logic', and when I think of 'business logic' I think of things handling

What's the difference between abstraction and generalization?

南笙酒味 提交于 2019-12-02 16:13:16
I understand that abstraction is about taking something more concrete and making it more abstract. That something may be either a data structure or a procedure. For example: Data abstraction: A rectangle is an abstraction of a square. It concentrates on the fact a square has two pairs of opposite sides and it ignores the fact that adjacent sides of a square are equal. Procedural abstraction: The higher order function map is an abstraction of a procedure which performs some set of operations on a list of values to produce an entirely new list of values. It concentrates on the fact that the