C# Digest #404: Making illegal states unrepresentable
#404 — February 28, 2022 | View in browser |
C# Digest
Spread the word, build the community, share the knowledge – invite your friends.
sponsor
Retool is the fast way to build internal tools
Retool is the fast way to build internal tools. Visually design apps that interface with any database or API. Switch to code nearly anywhere to customize how your apps look and work. With Retool, you ship more apps and move your business forward—all in less time.
this week's favorite
Making illegal states unrepresentable
From my perspective, an illegal state is such state of an application in which it demonstrates an unexpected behaviour, makes its data inconsistent, or cannot proceed with operation
.NET 6 and C#10 are here, Visual Studio Code is a nice environment for editing your code, and you can even edit your code in the web. And a new feature has appeared to document your code: .NET Interactive. With it, you can create interactive notebooks and create interactive pieces of code, where you can share and try sample code.
Badly implementing encryption: Timings attacks and side channels
Those two functions are doing the same thing, but in a very different manner. The issue with eql() is that it will stop at the first mismatch byte, while timingSafeEql() will always scan through the two buffers first and then return the result.
The power of OneOf – Unions for C#
This library provides F# style unions for C#, using a custom type OneOf<T0, ... Tn>. An instance of this type holds a single value, which is one of the types in its generic argument list.
Today I learned that you could use attribute, in C#, on itself. 🤯 Not sure why would I do that, but it’s cool.
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
Older messages
C# Digest #403: Range & Index — C#8 features under the radar
Sunday, February 20, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #403 — February 21, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
C# Digest #402: What is the cost of casting in C#?
Sunday, February 13, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #402 — February 14, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
C# Digest #401: Colors in .NET: In-depth guide
Sunday, February 6, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #401 — February 07, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
C# Digest #400: Proposed .NET 7 breaking changes
Sunday, January 30, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #400 — January 31, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
C# Digest #399: Optimizing CPU-bound and memory-bound .NET applications: 11 best practices
Sunday, January 23, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #399 — January 24, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
You Might Also Like
⚙️ Apple partners with OpenAI for IOS 18
Tuesday, May 14, 2024
Plus: Your Instagram/Facebook posts are being used to train Meta's AI
Google I/O today: What we expect
Tuesday, May 14, 2024
ChatGPT-4o vs. ChatGPT Plus; Luba 2 robot mower; Best VPN deals -- ZDNET ZDNET Tech Today - US May 14, 2024 placeholder What to expect from Google I/O 2024: Android 15, Gemini, Wear OS, and more
Gulp Developer Survey; esbuild v0.21.0; ESLint compatibility utilities; Nx 19.0; Bun v1.1.8; shell
Tuesday, May 14, 2024
We have 12 links for you - Stay up-to-date on JavaScript and tools Introducing the Gulp Developer Survey medium.com “Gulp has come a long way since its humble beginnings a decade ago. In that time,
Our verdict on the new iPad Pro
Tuesday, May 14, 2024
The Morning After It's Tuesday, May 14, 2024. Apple's new iPad Pro is one of the most divisive (and thinnest) devices the company has made in years. Sure, it's an undeniable feat of
New Cross-Platform Android, iOS Feature Detects Unwanted Bluetooth Tracking Devices
Tuesday, May 14, 2024
THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS
Post from Syncfusion Blogs on 05/14/2024
Tuesday, May 14, 2024
New blogs from Syncfusion What is Cybersecurity? By Katherine Dobson This blog post explores simple cybersecurity practices to safeguard your data in today's digital world. Reached 50! A Milestone
Zugu — Always Forward.
Tuesday, May 14, 2024
The last iPad case you need. See the most loved features you can't live without. The form and style of ZUGU cases have evolved naturally, resulting from designing products that safeguard your
Edge 395: Task Decomposition in Autonomous Agents
Tuesday, May 14, 2024
The cornerstone of planning in autonomous agents. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
GPT-4o crushes leaderboard 🧠, cheap humanoid robots 🤖, GameStop 2.0 📈
Tuesday, May 14, 2024
OpenAI announced a new AI model yesterday called GPT-4o that can converse using speech in real time, read emotional cues, and respond to visual input Sign Up |Advertise|View Online TLDR Together With
“You can’t do that, it’s illegal!”
Tuesday, May 14, 2024
When LLMs provide lessons in ethics & morals ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏