Top "Side-effects" questions

A side-effect is a programming term that refers to intended changes in the program behavior, such as a variable changing value.

Generate unique numbers at compile time

I want to generate unique numbers for each class in my header, primes in my case primes but let's say …

c++ c++11 metaprogramming compile-time side-effects
PSR-1 2.3 Side Effects Rule

I have a question Regarding PHP Basic Coding Standards PSR1. PSR 1 Rule 2.3 states: Rule 2.3 Side Effects A file SHOULD declare …

php coding-style side-effects
python side_effect - mocking behavior of a method

In the mock, I want a certain function to return a new value in the test. This is how i …

python mocking python-unittest side-effects