New answers tagged terminology
0
votes
Immutability across programming languages
Immutability is not a very fundamental notion in programming; what it means (if anything) is highly dependent on details of programming language semantics, such as argument passing conventions. ...
-1
votes
What to call a test that consists of running a program with only logging?
A term no-one else has mentioned yet is dummy run.
That can mean a run which doesn't process any ‘real’ data (maybe because it's not given any, or is given only dummy (test) data, or is configured not ...
3
votes
What to call a test that consists of running a program with only logging?
Since the OP and comments do mention some idea of "What consensus has the community arrived on?" I think its worth mentioning a couple of examples that I come across regularly.
--dry-run is ...
-2
votes
What to call a test that consists of running a program with only logging?
This sounds like Kent Beck's Log String Pattern. BTW, I prefer your suggestion of overriding your delete method to be a logging method. Put it under control of a command line parameter, so you aren't ...
10
votes
What to call a test that consists of running a program with only logging?
Dry-run as a term is definitely ok. Still I think this kind of testing - with manually commenting in and out certain lines - is not state-of-the-art anymore. The better alternative is to embed the ...
29
votes
What to call a test that consists of running a program with only logging?
I would call that a dry-run: a dry run is one that has no effect. Lots of programs have dry run modes that print out what they would do, so you can review it before committing to the operation.
it ...
2
votes
Immutability across programming languages
I'd start with C and C++, where things are reasonably simple. You have "objects" in memory, not in the sense of object oriented programming, but items that can be read or changed. These &...
1
vote
Immutability across programming languages
x = 10
x = 20
This is not shadowing.
This is shadowing:
x = 0
def outer():
x = 1
def inner():
x = 2
print("inner:", x)
inner()
print("outer:", ...
1
vote
Immutability across programming languages
The dangers of mutation specifically apply to alias mutation; a lot of times when people claim "immutability", what they really claim (or want) is alias immutability.
An alias is a value ...
6
votes
Immutability across programming languages
Welcome to one of the fun quirks of programming in different languages (and their different semantics)
In a general sense, whether something has the property of mutability, or if there is simply ...
21
votes
Immutability across programming languages
This is a common confusion with immutability. There's a difference between an immutable value and an immutable reference.
For example, say you have x = 10. You can't do something like 10 = 20 to ...
4
votes
Immutability across programming languages
In general, the mutability says that the values of object can be changed. Your C++ example is indeed mutability, because x is an int object, that the value 10 is stored in the object and that the ...
1
vote
What is a log and what is a trace?
I think Euphoric's answer sets a good baseline, however:
Logs
I think the definition of a log is missing a defining characteristic, specifically that the log as a whole (rather than the individual ...
-1
votes
What is a log and what is a trace?
I imagine there's a distinction in telecoms between "logging" a call (as would be done for routine billing activity), and "tracing" a call (as would occur internally only for ...
1
vote
What is a log and what is a trace?
I think OpenTelemetry would be the most "authoritative" source. As it defines common concepts and standars for application observability.
It defines :
Logs
A log is a timestamped message ...
1
vote
What is a log and what is a trace?
There's a summary in this article that I broadly agree with. It's a subjective classification.
Logs are human-readable flat text files that are used by developers to capture useful data. Logs ...
Top 50 recent answers are included
Related Tags
terminology × 770object-oriented × 37
design-patterns × 30
programming-languages × 28
naming × 28
history × 26
language-agnostic × 25
design × 24
architecture × 22
java × 21
testing × 20
documentation × 20
c++ × 17
javascript × 17
algorithms × 15
programming-practices × 15
api × 14
definition × 13
functions × 12
database × 11
python × 11
c# × 10
c × 10
web-applications × 10
data-structures × 10