popcar2 to Programmer HumorEnglish · 1 year agoWe'll refactor this next year anywaysimagemessage-square51linkfedilinkarrow-up1813arrow-down110
arrow-up1803arrow-down1imageWe'll refactor this next year anywayspopcar2 to Programmer HumorEnglish · 1 year agomessage-square51linkfedilink
minus-squareFizzyOrangelinkfedilinkarrow-up1·1 year 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.