popcar2@programming.dev to Programmer Humor@programming.devEnglish · 6 months agoWe'll refactor this next year anywaysprogramming.devimagemessage-square60fedilinkarrow-up1809
arrow-up1809imageWe'll refactor this next year anywaysprogramming.devpopcar2@programming.dev to Programmer Humor@programming.devEnglish · 6 months agomessage-square60fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·6 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.