Timeline for Rationale to prefer local variables over instance variables?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2020 at 10:01 | history | edited | CommunityBot |
Commonmark migration
|
|
Mar 14, 2019 at 10:25 | audit | First posts | |||
Mar 15, 2019 at 10:53 | |||||
Mar 8, 2019 at 15:44 | comment | added | ivan_pozdeev | Ah, the good old "in a contradictory axiomatic, it's possible to prove anything". Since there are no hard truths and lies IRL, any dogmas will have to include statements that state opposite things i.e. be contradictory. | |
Mar 7, 2019 at 20:08 | comment | added | Beefster | For a more pragmatic variation on this idea, It's simply that it's much easier to reason about local state than instance or global state. Well-defined and tightly-contained mutability and side effects rarely lead to issues. For instance, many sort functions operate in-place via side effect, but this is easy to reason about in a local scope. | |
Mar 7, 2019 at 11:05 | comment | added | R. Schmitz | In a "prefect world", this would be the second answer listed. The first answer for the ideal situation that the coworker listens to reason - but if the coworker is a zealot, this answer here would deal with the situation without too much of a fuzz. | |
Mar 5, 2019 at 20:05 | history | edited | meriton | CC BY-SA 4.0 |
deleted 84 characters in body
|
Mar 5, 2019 at 15:42 | history | answered | meriton | CC BY-SA 4.0 |