juan_gandhi: (VP)
[personal profile] juan_gandhi
... is passing parameters via "common variables", imitating "environment", which they are on most occasions not.

This is unavoidable if you have functions 100 lines long; you have those variables keeping this and that... then you split the code, but you have to keep those "shared variables", so there.

They are just parameters, you know. If you think of them this way, your architecture becomes clean and clear.

Date: 2014-05-06 07:37 am (UTC)
nine_k: A stream of colors expanding from brain (Default)
From: [personal profile] nine_k
Where is the state in a program with only pure functions? On the parameter stack.
The parameter stack is much harder to screw up.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
222324252627 28
29 30     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 7th, 2025 08:20 pm
Powered by Dreamwidth Studios