Too Long; Didn't Read
The factory pattern is a well-known design pattern used in software engineering to abstract away the process of creating specific objects. The Constructor Pattern is used to create specific types of objects in JavaScript. It solves the problem of having duplicate functions in the global scope but also creates clutter in the code. We can solve this problem as following: using the constructor pattern instead of the factory pattern to create multiple objects with the same interface. The pattern is extremely suboptimal in terms of memory allocation and power, because with such an entity description you will receive in each instance not a reference to the `getSpeedInfo()` method.