Bu pattern - obyektni yangi qatlamlar (layer) bilan o'rash orqali ish vaqtida (runtime) uning funksionalligini kengaytirishning toza usulini taklif qiladi.
Decorator funksionallikni kengaytirish uchun pastki sinfga (subclass) moslashuvchan alternativani taqdim etadi. Oddiyroq qilib aytganda, obyektning ichki qismini o'zgartirish o'rniga, siz uning "po'sti" ni boshqa obyekt bilan o'rash orqali o'zgartirasiz, bu asl obyektga topshirishdan oldin yoki keyin yangi funksionallik qo'shadi.
Adapter vs Decorator. Adapter mavjud obyektga kirish uchun mutlaqo boshqa interfeysni taqdim etadi. Dekoratorda esa interfeys o'zgarishsiz qoladi yoki kengaytiriladi. Bundan tashqari, Decorator rekursiv kompozitsiyani qo'llab-quvvatlaydi, Adapter esa yo'q.
Manbalar: 1. Book : Link 2. Article : Link 3. Article : Link 4. Medium : Link
Bu pattern - obyektni yangi qatlamlar (layer) bilan o'rash orqali ish vaqtida (runtime) uning funksionalligini kengaytirishning toza usulini taklif qiladi.
Decorator funksionallikni kengaytirish uchun pastki sinfga (subclass) moslashuvchan alternativani taqdim etadi. Oddiyroq qilib aytganda, obyektning ichki qismini o'zgartirish o'rniga, siz uning "po'sti" ni boshqa obyekt bilan o'rash orqali o'zgartirasiz, bu asl obyektga topshirishdan oldin yoki keyin yangi funksionallik qo'shadi.
Adapter vs Decorator. Adapter mavjud obyektga kirish uchun mutlaqo boshqa interfeysni taqdim etadi. Dekoratorda esa interfeys o'zgarishsiz qoladi yoki kengaytiriladi. Bundan tashqari, Decorator rekursiv kompozitsiyani qo'llab-quvvatlaydi, Adapter esa yo'q.
Manbalar: 1. Book : Link 2. Article : Link 3. Article : Link 4. Medium : Link
During the meeting with TSE Minister Edson Fachin, Perekopsky also mentioned the TSE channel on the platform as one of the firm's key success stories. Launched as part of the company's commitments to tackle the spread of fake news in Brazil, the verified channel has attracted more than 184,000 members in less than a month. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. The Channel name and bio must be no more than 255 characters long But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot.
from us