CodyIT@programming.dev to Programming@programming.devEnglish · 3 months agoOOP is not that badosa1.netexternal-linkmessage-square60fedilinkarrow-up144arrow-down17
arrow-up137arrow-down1external-linkOOP is not that badosa1.netCodyIT@programming.dev to Programming@programming.devEnglish · 3 months agomessage-square60fedilink
minus-squareKache@lemm.eelinkfedilinkarrow-up5·3 months agoIMO factory functions are totally fine – I hesitate to even give them a special name b/c functions that can return an object are not special. However I think good use cases for Factory classes (and long-lived instances of) are scarce, often being better served using other constructs.
IMO factory functions are totally fine – I hesitate to even give them a special name b/c functions that can return an object are not special.
However I think good use cases for Factory classes (and long-lived instances of) are scarce, often being better served using other constructs.