• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    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.