Questions tagged [definition]
Definition is a statement of the meaning or significance of a word, phrase, idiom, etc.
69
questions
9
votes
7
answers
3k
views
If the sleep time of a function at first time differs from the second time, but the output is the same, is it still a idempotent function?
For example, if the sleep time of a function would change after first execution but the output remains unchanged, e.g.:
public static int myFunction(){
try {
Thread.sleep(MyClass....
-1
votes
1
answer
48
views
Looking for specific paragraph in RFC [closed]
Some decades ago working with IRC, I remember a paragraph of some RFC and now I'm looking for it. I don't remember it by memory, only a concept:
When it comes to communication between two services, ...
2
votes
1
answer
327
views
What is the definition of 'Availability'?
In my research, I have found two conflicting definitions of 'availability' as it relates to software engineering and architecture. According to [1]:
"The availability of a system can be ...
3
votes
1
answer
323
views
Disambiguating Python terms, what is the difference between "type hint" vs "type annotations"?
Colloquially, type hint and annotations are used interchangeably in Python. After reading PEP 484, I was unable to disambiguate the terms "type hint" vs "type annotations" from the ...
2
votes
3
answers
491
views
Do NoSQL and non-relational refer to the exact same concept?
Question as the title says. Of course, I already tried searching online, but did not find a definite answer yet. (The sources I checked imply that the terms are interchangeable, but do not state this ...
2
votes
3
answers
365
views
Definition of static property of object in OOP
Grady Booch in Object-Oriented Analysis and Design with Applications says:
The state of an object encompasses all of the (usually static) properties of the object plus the current (usually dynamic) ...
9
votes
3
answers
6k
views
Is it best practice to define a member function directly in a class?
I'm a beginner in C++, and I was wondering if it is best practice to define a member function directly in a class, such as:
// something.hpp
class C {
inline int func() { return ... ; }
}
rather ...
5
votes
3
answers
1k
views
Should unit tests assert the inputs to dependencies?
tl;dr: Is it a unit test or an integration test, to ensure that the inputs to a mocked dependency were correct?
More details:
Suppose I'm given a requirement like this:
Create a function that returns ...
-3
votes
1
answer
154
views
General term to describe the anti-pattern where the same concept is described in different ways?
Our codebase is old and very large. Over the years, many developers have worked on the code and frequently refered to the same concept inconsistently.
For example, we have a "number that uniquely ...
-3
votes
1
answer
62
views
Whats the abstract term for functions/classes/constants/etc.?
Sometimes I need to express the abstraction of anything that can be declared. For example, in C, they'd be:
functions
classes
variables
constants
in Ruby, they'd be:
modules
classes
variables
...
1
vote
3
answers
156
views
What does Combinatoric Interface mean?
I am watching this talk by Sean Parent. He notes that:
Choosing the same syntax for the same semantics enables code reuse and avoids combinatoric interfaces
What does "combinatoric interface" mean?...
3
votes
3
answers
1k
views
Can a function returning void be called a procedure? [duplicate]
I have read about function vs procedure
function and procedure both are subroutines but function returns a value and procedure doesn't.
Can a function returning void be called a procedure?
Give ...
1
vote
1
answer
1k
views
What is discriminative power?
I'm reading a paper and they use the term "discriminative power" in reference to a recognizer for road sign recognition. What exactly is discriminative power?
1
vote
1
answer
511
views
What is the BNF (or BNF-like) syntax for a specific number of repetitions?
I would like to write something like
<byte> ::= <bit>*8
to mean that a <byte> is a sequence of exactly 8 <bit>'s.
Is there a way to do this in BNF[1][2] or a widely used ...
1
vote
2
answers
196
views
Common header file for C++ and JavaScipt, redux
I've got a question closely related to this one. I'm cleaning up a colleague's mess, and I'm afraid that that means trying to work with a language -- JavaScript -- that I'm almost completely ignorant ...