All my tweets about C# 10 features in one thread. 🧵

Retweets are appreciated 😊

#dotnet #csharp #coding #devcommunity

Constant interpolated strings
https://t.co/JLB2IJXKBq
Extended property patterns
https://t.co/VTZqLNhPDr
File scoped namespaces
https://t.co/ApSQljwE6k
Global usings
https://t.co/F1HJlc3jZJ
Assignment and declaration in the same deconstruction
https://t.co/9l3POMGfIb
Sealed when overriding ToString
https://t.co/NbuVBsR6Gp
Record struct and class declarations
https://t.co/bAqMYoiXep
Struct vs Record struct
https://t.co/MKOoFPqsmT
Parameterless struct constructors
https://t.co/iYdgMH1hZQ
Lambdas with attributes
https://t.co/rAGZJ9II0n
Explicit return type in lambdas
https://t.co/tSzXUnxZ3P
AsyncMethodBuilder attribute applying to the method
https://t.co/BhndpaKVsu
Expression 'with' in structs
https://t.co/8DfXHPOxKo

You May Also Like

A brief analysis and comparison of the CSS for Twitter's PWA vs Twitter's legacy desktop website. The difference is dramatic and I'll touch on some reasons why.

Legacy site *downloads* ~630 KB CSS per theme and writing direction.

6,769 rules
9,252 selectors
16.7k declarations
3,370 unique declarations
44 media queries
36 unique colors
50 unique background colors
46 unique font sizes
39 unique z-indices

https://t.co/qyl4Bt1i5x


PWA *incrementally generates* ~30 KB CSS that handles all themes and writing directions.

735 rules
740 selectors
757 declarations
730 unique declarations
0 media queries
11 unique colors
32 unique background colors
15 unique font sizes
7 unique z-indices

https://t.co/w7oNG5KUkJ


The legacy site's CSS is what happens when hundreds of people directly write CSS over many years. Specificity wars, redundancy, a house of cards that can't be fixed. The result is extremely inefficient and error-prone styling that punishes users and developers.

The PWA's CSS is generated on-demand by a JS framework that manages styles and outputs "atomic CSS". The framework can enforce strict constraints and perform optimisations, which is why the CSS is so much smaller and safer. Style conflicts and unbounded CSS growth are avoided.
Moderna CEO Stephane Bancel was previously CEO of bioMerieux in France from 07-10.

Alain Merieux, who owns bioMerieux, was instrumental in the creation of the Wuhan Institute of Virology P4 Lab.

The same people who helped create the virus, also helped to create the vaccines...


Moderna partnered with French Pasteur Institute in 2015 to develop mRNA vaccine technology.

Pasteur Institute partnered with the Wuhan P4 Laboratory in 2017 along with the Merieux Foundation to study emerging viruses...
https://t.co/yFsHwrNYaK
https://t.co/9M5lydBKhM


Nobel prize winning scientist Luc Montagnier asserts that Sars-Cov-2 is man-made and originated from the Wuhan Institute of Virology.

Montagnier did extensive work with the Pasteur Institute in France which was partnered with the Wuhan P4.

Merieux Foundation & the Chinese government have worked together since 1965, and partnered to study emerging pathogens in Africa in 2015.

Their research included "PATHOGENS CARRIED BY BATS" that provoke respiratory diseases.

🚨🚨🚨
https://t.co/gVwpT0ssqI