Programming Tips πŸ’‘
51.7K subscribers
67 photos
10 videos
30 files
355 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
The Hidden Cost of DateTime.Now in .NET πŸ•°

You're Using DateTime.Nowβ€Šβ€”β€Šand It's Breaking Your Code … ❌

Let's be honest: We've all written this:
if (DateTime.Now > token.Expiry)
{
return Unauthorized();
}


It works… until it doesn't.

In production, this little line can wreck your logic due to clock drift, time zone shifts, or mocking nightmares. 🐞


[ Article ]
: https://freedium.cfd/https://medium.com/@yaseer.arafat/the-hidden-cost-of-datetime-now-and-what-every-net-developer-should-use-instead-8859863257a1

〰️〰️〰️〰️〰️〰️
#dotnet #csharp
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸš€ .NET 10 is here! πŸ”₯

The successor to .NET 9 is now out β€” and it’s a Long-Term Support (LTS) release, supported for the next 3 years.

πŸ‘‰ [ Learn what’s new ] :
https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-10/overview

〰️〰️〰️〰️〰️〰️
#dotnet #csharp #aspnetcore #maui
@ProgrammingTip