---
title: "Paweł Kubik (@pkubik) | Hashnode"
description: "Versatile Software Engineer. Read the latest articles by Paweł Kubik on Hashnode."
url: "https://hashnode.com/@pkubik"
---

@pkubik

# Paweł Kubik

@pkubik · Joined March 2020

Versatile Software Engineer

## Comments

[I like the cover graphic.](https://hashnode.com/posts/all-you-need-to-know-about-promises-in-javascript/5f2c4932b8ac395b1f239a8a/comment/5f2d5f89b8ac395b1f23a175)

Comment · Article · Aug 7, 2020 · [All you need to know about promises in JavaScript](https://hashnode.com/posts/all-you-need-to-know-about-promises-in-javascript/5f2c4932b8ac395b1f239a8a)

[The last point seems like a premature optimization. I doubt that dynamically-allocated std::map is any faster than whatever partially-compile-time mechanism is being used by C++ compiler behind the scenes to handle virtual polymorphism. Besides, I think you've missed an important point of a factory, which is to encode some object configuration within the factory class. You can have a bullet factory for a game, which is configured to create either red or grey bullets. Then you insert the red bullet factory to a LaserGun and the other one to a BallisticGun. You kind of did this with the Point2D/Point3D example but I don't think you've made it explicit enough. Other than that, great introductory article. Keep going!](https://hashnode.com/posts/factory-design-pattern/5ef9e6eca78de8267c2b26cb/comment/5f176ec54f0ccd6b8b03beb1)

Comment · Article · Jul 21, 2020 · [Factory Design Pattern](https://hashnode.com/posts/factory-design-pattern/5ef9e6eca78de8267c2b26cb)
