popcar2@programming.dev to Programmer Humor@programming.devEnglish · 7 months agoWe'll refactor this next year anywaysprogramming.devimagemessage-square27fedilinkarrow-up1676arrow-down19
arrow-up1667arrow-down1imageWe'll refactor this next year anywaysprogramming.devpopcar2@programming.dev to Programmer Humor@programming.devEnglish · 7 months agomessage-square27fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·7 months agoYeah most uses of the factory pattern are unnecessary and it’s mild code smell IMO. If your factory only returns one type you should definitely just use that type’s constructor.
Yeah most uses of the factory pattern are unnecessary and it’s mild code smell IMO. If your factory only returns one type you should definitely just use that type’s constructor.