ZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agoFunctional bros be likelemmy.worldimagemessage-square4fedilinkarrow-up139arrow-down12
arrow-up137arrow-down1imageFunctional bros be likelemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.devEnglish · 8 months agomessage-square4fedilink
minus-square9point6@lemmy.worldlinkfedilinkarrow-up1·8 months agoConst everything by default If you need to mutate it, you don’t, you need to refactor.
minus-squarenoli@programming.devlinkfedilinkarrow-up1·8 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/…