C# Digest #427: How to effectively compose your business logic

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

#427 — August 08, 2022 View in browser

C# Digest

Spread the word, build the community, share the knowledge with your friends.

sponsor

Getting Started With Basic Bindings in .NET MAUI

One of the most important features of an application is that it has the ability to dynamically link data to each of our views. This is where data binding comes in—it is the technique of binding properties so that changes to a property are automatically reflected in our UI. Let’s see how to bind data in .NET MAUI.

this week's favorite

How to effectively compose your business logic

We may already notice that our shopping cart is a simple state machine. It’s either pending, and we can add products to it, or closed (confirmed or cancelled). If we were object-oriented Java developers, we could model our shopping cart as.

Why function pointers can’t be used on instance methods

First, what are we looking at? The class Getter retrieves the getter of a property by reflection, then gets a function pointer to it, presumably to be able to invoke it without any performance penalty. When running the code, it displays Value: 0 even though the value should be equal to 42.

Patterns & Practices for efficiently handling C# async/await cancel processing and timeouts

One important use of async/await is proper cancellation processing. Create a CancellationTokenSource, pass a CancellationToken, and handle OperationCanceledException. All this, however, faces some difficulties to implement efficiently.

An applicative reservation validation example in C#

This code snippet demonstrates how to parse, not validate, an incoming Data Transfer Object (DTO). This code base uses C#'s nullable reference types feature to distinguish between null and non-null objects. Other languages (and earlier versions of C#) can instead use the Maybe monad. Nothing in this article or the book hinges on the nullable reference types feature.

LINQ explained with sketches

This blog post will show a lot of LINQ functions broken down in smaller parts. It will always starts with a info graphic which then gets explained later.

books

Free eBook: Understanding Databases - Extended Edition

Learn how to release a Django project to production in a scalable and sustainable way by using Github Actions, Docker, Terraform, and Ansible. This combined eBook and video series by Linode + Coding for Entrepreneurs has everything you need to deploy Django to Linux using a managed MySQL database.

how did you like this issue?

1 = didn't like it at all and 5 = loved it and shared it with everyone I know

newsletters

© 2022 Bonobo Press

Would you like to advertise with us? Check out our latest media kit for more information.
If you no longer wish to receive these emails, click to unsubscribe.

Older messages

C# Digest #426: Asynchronous Programming in .NET - Introduction, Misconceptions, and Problems

Sunday, July 31, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #426 — August 01, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

C# Digest #425: 5 tricks every C# dev should know about LINQPad

Sunday, July 24, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #425 — July 25, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

C# Digest #424: Customizing Controls in .NET MAUI

Sunday, July 17, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #424 — July 18, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

C# Digest #423: Modern distributed tracing with dotnet

Sunday, July 10, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #423 — July 11, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

C# Digest #422: Speed Up Logging in .NET 6

Sunday, July 3, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #422 — July 04, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

You Might Also Like

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

NumPy, Loop Targets, Vector Animation, and More

Tuesday, November 26, 2024

NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to

Your Games Quarterly newsletter has arrived

Tuesday, November 26, 2024

What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16

Daily Coding Problem: Problem #1620 [Hard]

Tuesday, November 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with

Final Hours: Help Save "The Art of Data" From Falling Short 🙏

Tuesday, November 26, 2024

Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help

Spyglass Dispatch: Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer

Tuesday, November 26, 2024

Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer The Spyglass Dispatch is a free newsletter sent out

🎁 Say Goodbye to Adobe and Hello to UPDF's Universal PDF Editor— 50% Off This Black Friday!

Tuesday, November 26, 2024

Promoted by UPDF How-To Geek Logo November 26, 2024 This email is sponsored by UPDF. Product choices and opinions expressed are from the sponsor and do not necessarily reflect the views of the How-To

What's coming in Go 1.24

Tuesday, November 26, 2024

Plus Brad Fitzpatrick on complexity and Go. | #​533 — November 26, 2024 Unsub | Web Version Together with Ardan Labs Go Weekly GoMLX: ML in Go without Python — Eli recently wrote about Go's