Code Whisper
@codewhisperdev
👾 Anonymous engineer, sharing thoughts on code, tech & systems. 🚫 No face, just logic.
.NET 9 introduces the new LINQ method CountBy. It allows for calculating the frequency of a key. This improvement looks nice. What do you think?
LINQ Tip: Use ToList() after filtering, not before. Why? 🔹 First version loads everything into memory before filtering 🔹 Second version filters at source, better for DB or large collections 🔹 Especially important when using EF Core or APIs with IQueryable #charp #dotnet
🔹 What is Queue<T>? Queue<T> is a First-In-First-Out (FIFO) collection in C#. It means the first item you add is the first one to be removed. When to use? - Task scheduling - Print jobs - Message handling - Breadth-first search (BFS) in graphs Example:
SQL Tip: Always monitor and maintain your indexes. Unused or duplicate indexes = slower writes and wasted space. Why? - Clean indexes = faster inserts/updates - Less I/O, better performance 🔍 Use this to find unused indexes in SQL Server
United States トレンド
- 1. Good Saturday 18.7K posts
- 2. #ZNNCrazyInLoveConcert 235K posts
- 3. #NIKKE3rdAnniversary 28.5K posts
- 4. #SaturdayVibes 3,223 posts
- 5. #saturdaymorning 1,631 posts
- 6. Luka 108K posts
- 7. Caturday 4,538 posts
- 8. #GirlsWhoInspire N/A
- 9. Talus Labs 14.8K posts
- 10. Brighton 32.7K posts
- 11. Domain For Sale 9,662 posts
- 12. Geraldo 8,708 posts
- 13. Malaysia 46.1K posts
- 14. Scarlett 12.5K posts
- 15. Bianca 32.9K posts
- 16. Kross 2,842 posts
- 17. Wizards 11.2K posts
- 18. Tamar 5,643 posts
- 19. ADDISON BARGER 19.7K posts
- 20. Mika 59.4K posts
Something went wrong.
Something went wrong.