Skip to main content

New answers tagged

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. ...
Marc van Leeuwen's user avatar
-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 ...
gidds's user avatar
  • 795
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 ...
Luke Nelson's user avatar
-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 ...
Simon Crase's user avatar
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 ...
Doc Brown's user avatar
  • 212k
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 ...
pjc50's user avatar
  • 14.6k
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 &...
gnasher729's user avatar
  • 46.8k
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:", ...
candied_orange's user avatar
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 ...
tarzh's user avatar
  • 119
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 ...
Michael Shaw's user avatar
  • 10.1k
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 ...
Karl Bielefeldt's user avatar
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 ...
Christophe's user avatar
  • 79.9k
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 ...
DavidT's user avatar
  • 3,629
-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 ...
Steve's user avatar
  • 10.4k
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 ...
Euphoric's user avatar
  • 37.7k
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 ...
pjc50's user avatar
  • 14.6k

Top 50 recent answers are included