DEV Community

Discussion on: Reasoning About Code

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

I almost wanted to say that you don't need to make something more functional to make it more local. But then I realized, that by making something more local, you are probably making it more functional at the same time.

It needn't be a complete functional goal though. Any movement of global logic and data into isolated smaller components keeps things local. The smaller the chunks are the easier they are to understand.

Collapse
 
ericnormand profile image
Eric Normand

Hey there,

You're absolutely right. Functional is not the only way to enhance local reasoning!

I do think it's interesting how the functional, procedural, and OO advice converges when it comes to making things more local.

Eric