.NET Fun
1.78K subscribers
84 photos
58 videos
3 files
179 links
Let's Connect!

Linkedin: https://www.linkedin.com/in/babak-taremi

Github: https://github.com/babaktaremi

Twitter: https://twitter.com/BabakTaremi

Telegram: @bob_tm

دانلود دوره های برنامه نویسی کاملا رایگان:
@DotNetFunBot
Download Telegram
بنا به درخواست دوستان دو کورس زیر به بات اضافه شدند
ASP NET Core Identity Deep Dive
Creating Telegram Bot Using C#

آدرس بات @DotNetFunBot
بنا به درخواست دوستان کورس EF Core 6 Best Practices به بات اضافه شد و میتونید اون رو با لینک مستقیم دانلود کنید

آدرس کورس: https://www.pluralsight.com/courses/ef-core-6-best-practices

آدرس بات: @DotNetFunBot
Forwarded from Zoomit | زومیت
مایل به استفاده از پیام‌رسان‌ها و شبکه‌های اجتماعی داخلی هستید؟
Final Results
27%
بله
73%
خیر
بنا به درخواست دوستان دو کورس زیر از Pluralsight داخل بات قرار گرفتند که میتونید اونها رو با لینک مستقیم دانلود کنید:
Querying Data in EF Core 6
EF Core 6 Fundamentals By Judie Lerman

آدرس بات :
@DotNetFunBot

آدرس کانال:
@DotNetIsFun

برای درخواست کورس به آیدی @bob_tm پیام بدین
بنا به درخواست شما دوستان دوره کامل و جامع C# 10 Design Patterns (به همراه آخرین آپدیت دوره) از یکی از بهترین MVP های مایکروسافت Kevin Dockx داخل بات قرار گرفت که میتونید اون رو با لینک مستقیم از بات دانلود کنید. (شخصا مشاهده این دوره رو خیلی بهتون پیشنهاد میکنم)

آدرس بات :
@DotNetFunBot

آدرس کانال:
@DotNetIsFun

برای درخواست کورس به آیدی @bob_tm پیام بدین
Follow #NETConf2022 Hashtag!!
C# 11 New Features!!!!

1- "Required Properties" Are Now Supported In Attributes!

2- Many new "Math Features" are added to C# 11. For generics, there is a new interface called "INumber" which gives you the power to use numbers in a "Generic Way"

3- "Default Operators" such as (+ / - *) can be overloaded. You can use checked keyword to describe that your operator should be used instead of default operator.

4- Abstract methods or properties can now be Static! This feature was first introduced in C# 10 and NET 6 as a "preview feature" but now you can take full usage of this feature in C# 11 and NET7 ! This feature was one of the most requested feature for C# 11. IParsable is a new interface which uses this new feature. One of the best things you can do with this feature is using the "Factory Pattern" (Combining Abstract Factory and Static Factory Method together)

5- Pattern Matching got improved again! Pattern Matching now supports collections (such as Arrays and Lists). Range Expressions (such as .. ) are now supported in Pattern Matching. Pattern Matching also became more clever, giving you compile errors when a specific pattern will not hit in any situation.

6- String Literals feature got updated and cleaned up in C# 11! Intelisense now supports String Indentation which can help you wrap a paragraph with multiple lines. Intelisense now can give you hints and warnings about your string literal.

#NETConf2022
بنا به درخواست شما دوستان دوره کامل و جامع Domain Driven Design In Practice از یکی از بهترین مدرس های جهان Vladimir Khorikov داخل بات قرار گرفت که میتونید اون رو با لینک مستقیم از بات دانلود کنید.

آدرس بات:
@DotNetFunBot

آدرس کانال:
@DotNetIsFun

برای درخواست کورس به آیدی @bob_tm پیام بدین
.NET Fun
Follow #NETConf2022 Hashtag!!
Performance enhancements and new features in ASP NET Core 7!

1-Websocket connections now support HTTP2. HTTP3 Protocol is still available as an opt-in feature

2- Rate Limiting is now available as a new feature in ASP NET Core 7! You no longer need 3rd party libraries to use this feature. Both options ( Limiting number of concurrent requests and limiting number of requests per user) is now available!

3- Output Caching is a new feature in ASP NET Core 7! The configuration of output caching is as simple as Response Caching. Just like before, there multiple cache store options (like memory, SQL , Disk , Redis) are available. This new feature supports something called "Thundering Herd Locking" in which the cache system implements auto locks for preventing multiple clients from changing the cache too many times ( This feature will come handy in scenarios where the site or service is starting up and clients are sending burst requests and prevents the service from becoming unavailable). It also supports cache invalidation and cache revalidation ( in previous versions you had to invalidate old cache files manually , but now ASP NET Core will handle it for you by using E-Tags )

#NETConf2022
Clean Architecture Template Updated To NET7 + Package Updates

Repository Address

Breaking Changes: After January of 2022 the package "Microsoft.Data.SqlClient" made an update which made "Encrypt" property of connection string to "True" by default (it was "False" before) . The reason is that because of growing usage in cloud databases, connection strings must be encrypted in order to provide protection for connection string. Adding Encrypt=False to the connection string disables it.

Key features of this template:

-Supports ASP NET Core Identity out of the box.
-Supports JWT Authentication integrated with ASP NET Core Identity.
- Supports OTP Authentication integrated with ASP NET Core Identity.
- AutoMapper Profiles are auto-generated. Which means that you don't need to create profile for each mapping.
- Supports Dynamic permission system. Although some coding needed to give permissions to different users (I'll add it in future updates)
- The logging is done through Serilog and there is an option to enable Logging to Elasticsearch.
- Uses the popular MediatR library.
- Uses Unit of Work pattern.
-Easy to extend and develop.
- All JSON responses are in unified format which makes UI development easier.
- JWT Tokens are encrypted.
-Supports refresh token. Which means that you can refresh user's token without doing anything extra!
-ModelState Validations are done automatically

Let me know your thoughts about this project. If there is an issue about it, create issue on github and if you like it, give it a star!
تو شرایط اینترنت الان فکر کنم همه ما به مشکل پوش نوتیفیکیشن برخورد کردیم. یا تحریم هستیم و نمیتونیم نوتیفیکیشن ارسال کنیم یا نوتیفیکیشنی که با هزار زور و زحمت ارسال کردیم از اون طرف به دست کاربر نمیرسه.
اومدم یه سر به سرویس های ایرانی زدم دیدم اوضاع واقعا فاجعس. از نجوا و پنل افتضاح و داکیومنت نصف و نیمش که نگم براتون ( که بعد از اون افتضاح امنیتی به سطح جدیدی از امنیت رسیدن که از پنل خودشون به API های خودشون ارور CORS داره و عملا هیچی باز نمیشه) سرویس پوشه هم که ماشالا تعرفه هاش از قیمت های خود Firebase هم بالاتره.
بعد از یکم گشت و گذار رسیدم به این پکیج . خیلی تو اینترنت و گیت هاب گشتم و فقط یک مثال از پیدا کردم که خیلی قدیمی بود و پر از باگ بود و پروژه اصلا اجرا نمیشد. تصمیم گرفتم که پروژش رو آپدیت کنم و باگ هاش رو برطرف کنم ( به NetCore 3.1 اپدیت کردم ولی دیگه آپدیتش به NET7 کاری نداره) . کلی تست روی Chrome , Edge , Opera و Chrome Android گرفتم و خیلی خوب کار میکنه. پیاده سازی خیلی سرراستی هم داره و با اپدیت فایل Service Worker.js خیلی قابلیت های دیگه رو میتونید بهش اضافه کنید. حتما چکش کنید و مشکلی بود Issue بزنید یا Pull Request ایجاد کنید و اگه خوشتون اومد هم میتونید بهش استار بدید😁

https://github.com/babaktaremi/WebPush.ASPNETCore.Updated.Example
شاید برای خیلی ها سوال باشه که برای Web API در ASP NET Core چجوری میتونیم پلاگین بنویسیم. یا آیا پلاگین نویسی برای Web API کار درستی هست یا نه؟
بنظر من پلاگین ها نقطه ای خیلی جذاب بین Monolithic Application ها و معماری میکروسرویس هستن که دردسر جفتشون رو ندارن و در عین حال اکثر مزیت جفتشون رو دارند.
تو ریپوی Clean Architecture Template ( که یکی از ریپو های مورد علاقم هست و مرتب آپدیتش میکنم) قابلیت پلاگین نویسی رو بهش اضافه کردم ( توی README مفصل توضیحش دادم. مثالش هم خیلی باحال و سادس بنظرم)
وقت کردید چکش کنید. دستتون هم برای Issue زدن و pull request ساختن و بخصوص استار دادن کاملا بازه 😁

https://github.com/babaktaremi/Clean-Architecture-Template
Forwarded from Web Devs
#CsharpMap

نقشه سی شارپ: از نسخه 1 تا برخی از ویژگی جدید در نسخه 12.

@fullStackDevs
Forwarded from TondTech (مسعود بیگی)
دیشب جلسه اول دوره مقدماتی پایتون برگزارشد، استقبال دوستان از دوره فراتر از انتظارم بود و خوب کلاسی که قرار بود 10 نفره باشه 20 نفره شد با تمام محدودیت ها وسخت گیری هایی که داشتم، البته که بنا شد به دو کلاس مجزا تقسیم بشیم و هر کلاس 10 نفر بمونه.

ویدیو کلاس ها رو ضبط میکنم و در یوتوبم میگذارم ، امیدوارم که برای عزیزانی که نشد در خدمت شون باشیم به کار بیاد و مسیر مرتب و خوبی رو با هم بچینیم


https://youtu.be/6AXWbZ4VxZU
خوشحال میشم اگر هر پیشنهادی برای بهتر شدنش داشتید با من در میون بگذارید.

راستی، برای درک درست تر این ویدیو لازمه که مطلب مرتبط با این درس را در آکادمی هم بخونید به آدرس زیر :
https://academy.merkousha.ir/cs1-01

#پایتون #آموزش_پایتون #دوره_مقدماتی_پایتون
تا یه ذره انرژی جمع میکنم برای ضبط ادامه دوره EF Core Advanced Topics یه اتفاق بدی میوفته که کل انرژی و امیدم رو میگیره
امیدوارم همگی بتونیم به سلامت از این دوران سخت عبور کنیم