---
title: "Comment by Markos Korvesis on \"Factory Method Pattern\" | Hashnode"
description: "Even though I would avoid the Greek pizza on the menu, this is a lovely and well-structured article! I have two concerns, which are out of the scope of this art"
url: "https://hashnode.com/posts/factory-method-pattern/63415bc36401058c05f3fa57/comment/634165b4f469e9e68d3f9200"
---

[Discussion](https://hashnode.com/posts/factory-method-pattern/63415bc36401058c05f3fa57)

Comment [Factory Method Pattern](https://hashnode.com/posts/factory-method-pattern/63415bc36401058c05f3fa57)

[Markos Korvesis](https://hashnode.com/@MarkosK)

[Oct 8, 2022](https://hashnode.com/posts/factory-method-pattern/63415bc36401058c05f3fa57/comment/634165b4f469e9e68d3f9200)

Even though I would avoid the Greek pizza on the menu, this is a lovely and well-structured article!

I have two concerns, which are out of the scope of this article of course, but I will mention them anyway. 😝

This switch statement will eventually become hard to maintain if the pizza is tasty and the business grows to add more entries to the menu. Additionally, I would consider throwing an exception in the default branch and removing the spinach from the Greek pizza as a good practice.

Good job, [Theodoros Karropoulos](https://hashnode.com/@thkarropoulos)!

[Theodoros Karropoulos](https://hashnode.com/@thkarropoulos)

[Oct 15, 2022](https://hashnode.com/posts/factory-method-pattern/63415bc36401058c05f3fa57/comment/634165b4f469e9e68d3f9200#reply-634a9eb87b9ff55063441f85)

Hello [Markos Korvesis](https://hashnode.com/@MarkosK)!

Thanks for your kind worlds, I would also avoid spinach on my pizza by the way :P ! Actually you have a valid point how switch statements tends to become hard to maintain.
