C# Digest #384: Everything .NET developer needs to know about disposable types

And more news, tutorials and articles about C# and .NET in this week's issue.

#384 — October 11, 2021 View in browser

C# Digest

Spread the word, build the community, share the knowledge – invite your friends.

sponsor

MongoDB Atlas: Cloud Document Database

MongoDB for VS Code lets you build in a way that fits into your native workflow and development tools. You can connect to your MongoDB Atlas cluster or local instance, browse your databases and collections, edit your documents, and get a quick overview of schema and indexes. It’s also the best way to prototype your queries and aggregations with dynamic playgrounds, syntax highlighting, and intelligent autocomplete.

this week's favorite

Everything .NET developer needs to know about disposable types

Microsoft .NET has been around for 20 years and one thing that is very critical for every to know is exactly how memory management works in the runtime. If you don’t, you will cause performance issues but more serious is causing virtual memory leaks. The way that .NET was designed back in the late ’90s is that it does not have memory leaks in the true sense, but it can create virtual memory leaks.

Introducing devops-friendly EF Core migration bundles

Business applications evolve with time. The changes are reflected in your code, your schema, and your data. Updates to code can often be deployed simply by replacing binary files or pointing the load balancer to new nodes. On the other hand, updates that involve changes to the database are inevitably more complex. Not only do the code and data need to remain in synch, but alterations to schema definitions can cause side effects that ripple across tables. The data in existing columns may need to be transformed or even transferred while the changes are applied, and modern applications are expected to run with minimal downtime.

Differences between Hashtable vs Dictonary vs ConcurrentDictionary vs ImmutableDictionary

Definitely important to remember. Generics have been around since .NET Framework 2.0 around 15 years ago so this is a good reason to consider avoiding Hashtable and using Dictionary<> instead. Hashtable is weakly typed and while it allows you to have keys that map to different kinds of objects which may seem attractive at first, you'll need to "box" the objects up and boxing and unboxing is expensive. You'll almost always want to use Dictionary instead.

My favourite patterns for event driven architecture

Here are my top 5 patterns and concepts (Outbox, Idempotent Consumers, Event Choreography, Orchestration, Retry/Dead Letter) for Event Driven Architecture that you’ll likely implement. Why? Well if you’re new to Event Driven Architecture there are many different problems that you’ll encounter. Most of the issues have well-established patterns or concepts you can leverage to deal with them. Here are the most common patterns for Event Driven Architecture that you’ll likely use.

The simplicity of ASP.NET Endpoints

In this post, we continue where we left off in Maybe it's time to rethink our project structure with ASP.NET 6, and we're going to take a closer look at an Endpoint.

newsletters


© 2021 Bonobo Press
Would you like to advertise or post a job with us? Check out our latest media kit.
If you no longer wish to receive these emails, click to unsubscribe.

Older messages

C# Digest #383: Health checks in ASP.Net Core web API

Sunday, October 3, 2021

And more news, tutorials and articles about C# and .NET in this week's issue. #383 — October 04, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite

C# Digest #382: 6 essential tools to detect and fix performance issues in .NET

Sunday, September 26, 2021

And more news, tutorials and articles about C# and .NET in this week's issue. #382 — September 27, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite

C# Digest #381: Strong Typing

Sunday, September 19, 2021

And more news, tutorials and articles about C# and .NET in this week's issue. #381 — September 20, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite

C# Digest #380: Favorite improvements in .NET 6

Sunday, September 12, 2021

And more news, tutorials and articles about C# and .NET in this week's issue. #380 — September 13, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite

C# Digest #379: File IO improvements in .NET 6

Sunday, September 5, 2021

And more news, tutorials and articles about C# and .NET in this week's issue. #379 — September 06, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite

You Might Also Like

The 165+ best Black Friday deals

Wednesday, November 27, 2024

Windows Super God Mode; Bluesky starter packs; Tech gifts under $100 -- ZDNET ZDNET Tech Today - US November 27, 2024 Black Friday 2024 live blog Best Black Friday deals 2024: 165+ sales live now

⚙️ Neuralink's new trial

Wednesday, November 27, 2024

Plus: Zoom is becoming an AI-first company ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Matrix Botnet Exploits IoT Devices in Widespread DDoS Botnet Campaign

Wednesday, November 27, 2024

THN Daily Updates Newsletter cover The AI Value Playbook ($35.99) FREE for a Limited Time Business leaders are challenged by the speed of AI innovation and how to navigate disruption and uncertainty.

The Sequence Chat: Why are Foundation Models so Hard to Explain and What are we Doing About it?

Wednesday, November 27, 2024

Addressing some of the interpretability challenges of foundation models and the emerging fields of mechanistic interpretability and behavioral probing. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Overcoming Perfectionism: How to Break Free from the Enemy of Progress

Wednesday, November 27, 2024

Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of

🖤 Laravel Black Friday Deals!

Wednesday, November 27, 2024

The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end

BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?

Wednesday, November 27, 2024

Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as

Mapped | Unemployment Rate By U.S. State in 2024 💼

Tuesday, November 26, 2024

As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!

🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint

Tuesday, November 26, 2024

Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny

JSK Daily for Nov 26, 2024

Tuesday, November 26, 2024

JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted