Python BackendHub
Learning python & Backend Engineering, with Mani! Youtube: https://www.youtube.com/@GitOverHere Github: https://github.com/ManiMozaffar Linkedin: https://www.linkedin.com/in/manimozaffar Admin: @Mani_nikou لینک گروه: https://t.me/PythonFellow
Больше- Подписчики
- Просмотры постов
- ER - коэффициент вовлеченности
Загрузка данных...
Загрузка данных...
# WITH GOOD TYPING
Percentage: TypeAlias = int # from 0 to 100.
def calculate_music_populatiry(person_ids: list[PersonId], music_ids: list[MusicId]) -> dict[PersonId, list[tuple[Bookid, Percentage]]
# WITH BAD TYPING
def calculate_music_populatiry(person_ids: list[PersonId], music_ids: list[MusicId]) -> dict[UUID, list[tuple[UUID, int]]
# WITHOUT TYPING
def calculate_music_populatiry(person_ids, music_ids)
من میتونم بدونه اینکه کدو ببینم از فانکشن اولی استفاده کنم. فانکشن دومی معلوم نیست چی به چی لینک شده. پس باید حواسم باشه موقع استفاده ازش. و بعدا ریفکتورش هم کردم باید ۱۰۰درصد حواسم باشه signature اش تغییر نکنه. و فانکشن سوم که کلا فاجعست. اصلا maintainable نیست. قضاوت رو میذارم با خودتون.
@PyBackendHub
# WITH GOOD TYPING
Percentage: TypeAlias = int # from 0 to 100.
def calculate_music_populatiry(person_ids: list[PersonId], music_ids: list[MusicId]) -> dict[PersonId, list[tuple[Bookid, Percentage]]
# WITH BAD TYPING
def calculate_music_populatiry(person_ids: list[PersonId], music_ids: list[MusicId]) -> dict[UUID, list[tuple[UUID, int]]
# WITHOUT TYPING
def calculate_music_populatiry(person_ids, music_ids)
I started programming in Rust several years ago, and it has gradually changed the way I design programs in other programming languages, most notably in Python. Before I started using Rust, I was usually writing Python code in a very dynamic and type-loose way, without type hints, passing and returning dictionaries everywhere, and occasionally falling back to “stringly-typed” interfaces. However, after experiencing the strictness of the Rust type system, and noticing all the problems that it prevents “by construction”, I suddenly became quite anxious whenever I got back to Python and wasn’t provided with the same guarantees.
it's because of the way our backend works // unlock exclusive deleted scenes:
https://www.patreon.com/KRAZAM// merch:
https://merch.krazam.tv//
https://www.instagram.com/krazam.tv//
https://twitter.com/krazamtvMaintainable Code - کد قابل نگهداری تست معماری نرم افزار کد تمیز + testing + clean code ▬ محتوای ویدیو ▬▬▬▬▬▬▬▬▬▬ توی این ویدیو از مهمانان محترم دعوت کردیم که به پنل گفت و گو بیان که مباحث مربوط به کد قابل نگهداری از قبیل دیزاین پترین و کلین کد و تست و ... رو با هم بحث کنیم ▬ شبکه های اجتماعی ▬▬▬▬▬▬▬▬▬▬ لینکدین: / amirbahador تلگرام:
https://t.me/BenDevelopگیت هاب:
https://github.com/amirbahador-hub▬ مهمانان برنامه ▬▬▬▬▬▬▬▬▬▬ @GitOverHere @BobyCloud ▬ بخش های ویدیو ▬▬▬▬▬▬▬▬▬▬ 0:00 مقدمه 03:00 معرفی 16:16 تعریف کد قابل نگهداری 28:51 تست 01:05:03 چجوری کد قابل نگهداری بنویسیم 01:55:33 رودمپ
Ваш текущий тарифный план позволяет посмотреть аналитику только 5 каналов. Чтобы получить больше, выберите другой план.