popcar2@programming.dev to Programmer Humor@programming.devEnglish · 1 年前We'll refactor this next year anywaysprogramming.devimagemessage-square50fedilinkarrow-up1806arrow-down110
arrow-up1796arrow-down1imageWe'll refactor this next year anywaysprogramming.devpopcar2@programming.dev to Programmer Humor@programming.devEnglish · 1 年前message-square50fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·1 年前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.
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.