نحوه تعریف decorator میتونه نشون بده دولوپر پروژه junior هست یا نه
اگر توی یک پروژه حرفهای مثل کد بالا decorator تعریف میکنید و بیش از ۳-۴ بار ازش استفاده میشه شما سیگنال junior developer بودن میدی به کسی که کد رو میخونه.
همیشه گفتم بازم میگم : اگر میخوای از یک دولوپر انتقام بگیری یا بیچارهاش کنی فقط ی decorator اینطوری بنویس و توی کل پروژه استفاده کن
مشکل کد چیه : همهی متا دیتا مربوط به تابعی که decorate شده مثل func1, func2 رو پاک میکنه و اطلاعات decorator رو جاش مینوسته توی حالت معمول این اشتباه نیست و منطق درستی هست ولی برای decorator خیلی اشتباه داری میزنی.
دیباگ کردن همچین کدی آدم رو دیوونه میکنه خروجی رو ببینید name, docstring تابع به wrapper تغییر کرده
نحوه تعریف decorator میتونه نشون بده دولوپر پروژه junior هست یا نه
اگر توی یک پروژه حرفهای مثل کد بالا decorator تعریف میکنید و بیش از ۳-۴ بار ازش استفاده میشه شما سیگنال junior developer بودن میدی به کسی که کد رو میخونه.
همیشه گفتم بازم میگم : اگر میخوای از یک دولوپر انتقام بگیری یا بیچارهاش کنی فقط ی decorator اینطوری بنویس و توی کل پروژه استفاده کن
مشکل کد چیه : همهی متا دیتا مربوط به تابعی که decorate شده مثل func1, func2 رو پاک میکنه و اطلاعات decorator رو جاش مینوسته توی حالت معمول این اشتباه نیست و منطق درستی هست ولی برای decorator خیلی اشتباه داری میزنی.
دیباگ کردن همچین کدی آدم رو دیوونه میکنه خروجی رو ببینید name, docstring تابع به wrapper تغییر کرده
Earlier, crypto enthusiasts had created a self-described “meme app” dubbed “gm” app wherein users would greet each other with “gm” or “good morning” messages. However, in September 2021, the gm app was down after a hacker reportedly gained access to the user data. There have been several contributions to the group with members posting voice notes of screaming, yelling, groaning, and wailing in different rhythms and pitches. Calling out the “degenerate” community or the crypto obsessives that engage in high-risk trading, Co-founder of NFT renting protocol Rentable World emiliano.eth shared this group on his Twitter. He wrote: “hey degen, are you stressed? Just let it out all out. Voice only tg channel for screaming”. Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations. 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. Telegram channels enable users to broadcast messages to multiple users simultaneously. Like on social media, users need to subscribe to your channel to get access to your content published by one or more administrators.
from us