News for hackers. Stuff that matters.
Re:Ask HN: What was being a software developer like about 30... by feoren on Monday October 31, 2022 @02:48PM (#33410719)
> In practice very few projects can benefit from the "Factory pattern"

The factory pattern in C#:

    public IMeasuringDevice CreateMeasuringDevice(Func<IUnitConverter> unitConverterFactory)
In TypeScript:

    function createMeasuringDevice(unitConverterFactory: () => UnitConverter): MeasuringDevice
Very few projects can benefit from this!?

There are no comments on this comment yet.