ZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 9 months agoFunctional bros be likelemmy.worldimagemessage-square4fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageFunctional bros be likelemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 9 months agomessage-square4fedilink
minus-square9point6@lemmy.worldlinkfedilinkarrow-up1·9 months agoConst everything by default If you need to mutate it, you don’t, you need to refactor.
minus-squarenoli@programming.devlinkfedilinkarrow-up1·9 months agoDogmatic statements like this lead to bad, messy code. I’m a firm believer that you should use whatever style fits the problem most. Although I agree most code would be better if people followed this dogma, sometimes mutability is just more clean/idiomatic/efficient/…
Const everything by default
If you need to mutate it, you don’t, you need to refactor.
Dogmatic statements like this lead to bad, messy code. I’m a firm believer that you should use whatever style fits the problem most.
Although I agree most code would be better if people followed this dogma, sometimes mutability is just more clean/idiomatic/efficient/…