3 ms·
> I think the "big realization" for me was shifting to think in pipelines instead of passing state around in variables. ever since I started dabbling in racke
by DyslexicAtheist 8y ago
> I think the "big realization" for me was shifting to think in pipelines instead of passing state around in variables.
ever since I started dabbling in racket I've grown fond of not dealing with state and look at evreything like a function. (I'm not a functional programmer).
The old UNIX philosophy with pipes is very close to that as in every command in the pipeline is a function in similar way. I'm not saying hacking together a bash script is FP but it's still possible to apply the FP thinking in the UNIX pipeline better than building a monolith that handles the whole pipe. I can pass state around (env vars) but it's an extra effort and it forces me to think whether I can get it done without state first (via optimizing the input output formats).