ChatCrawlersearch across public Telegram Open the app
P

Python

сообщение · 2025-08-29 10:40 UTC
C
Replymessage unavailable
Factory (as answered before me) not an unusual way to approach this. But your use case that you have presented is an unusual case. What I mean by that is that you would usually not create instances of class in your code that has so many hard-coded values. And if every Apple needs a value that is "Apple", the question arises if it shouldn't be in the class instead of requesting the value on instantiation of the class. Which means that in reality you would probably have a list of objects and possibly a data structure to iterate for the creation of those objects that end up being in a list. Completely eliminating that use case.

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog