
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. #SmackDown 30.7K posts
- 2. George Santos 50.6K posts
- 3. Geno 7,614 posts
- 4. Louisville 10.1K posts
- 5. Carson Beck 2,169 posts
- 6. Cal Raleigh 4,417 posts
- 7. Ilja 12.2K posts
- 8. Grand Slam 6,061 posts
- 9. Ohtani 21.5K posts
- 10. Springer 8,667 posts
- 11. Sami 21.5K posts
- 12. #ALCS 5,315 posts
- 13. Big Dumper 2,378 posts
- 14. Raiola 1,218 posts
- 15. Malachi Toney 1,220 posts
- 16. Dan Wilson 1,550 posts
- 17. #DaytimeEmmys 3,665 posts
- 18. Brendon Little 2,633 posts
- 19. Canzone 3,124 posts
- 20. #askdave N/A
Something went wrong.
Something went wrong.