No video

A Very Elegant Way to Write C# Code - Switch Expressions

  Рет қаралды 15,348

Milan Jovanović

Milan Jovanović

Ай бұрын

Пікірлер: 32
@mfsbo
@mfsbo Ай бұрын
Readability of code that human writes is far more important to converting it for machines. Thanks for sharing what is offered but its like spreading the butter with your folk lifter is not needed but can be done.
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
"spreading the butter with your folk lifter" 😂
@repkins
@repkins 16 күн бұрын
While switch expressions does make code more consice, it comes with readability price.
@MilanJovanovicTech
@MilanJovanovicTech 16 күн бұрын
Is it not readable?
@WDGKuurama
@WDGKuurama Ай бұрын
Noooo, it just needed the one liner func syntax with '=>' at the second line to be perfect 😢
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
Oh well...
@norlyssuarezvalderrama5330
@norlyssuarezvalderrama5330 Ай бұрын
Great 👍
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
Thank you! Cheers!
@YehorBachurinDev
@YehorBachurinDev Ай бұрын
👍
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
👍
@Claucker7
@Claucker7 Ай бұрын
not readable
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
Ok
@vijayarajan-bt5fk
@vijayarajan-bt5fk Ай бұрын
Why _F only for f finally??
@MilanJovanovicTech
@MilanJovanovicTech Ай бұрын
It's how you write the default case
@rikudouensof
@rikudouensof Ай бұрын
I would not advice this. Codes should be readable for the future people
@JollyGiant19
@JollyGiant19 Ай бұрын
But this is readable
@rikudouensof
@rikudouensof Ай бұрын
@@JollyGiant19 my take is that code should be in a way that junior devs or intern devs can understand
@ryan-heath
@ryan-heath Ай бұрын
Future people would thank you when you don’t use (then) outdated constructs. 😉
@WDGKuurama
@WDGKuurama Ай бұрын
Not using new syntax while lew devs will most likely use them because you think it wouldn't be readable sounds very wrong. Especially with such a simple and common pattern. It just looks that way on a lot of other languages, especially more on functional programming ones.
@rikudouensof
@rikudouensof Ай бұрын
@@WDGKuurama it alswys starts with the simple patterns untill someone cooks technical dept
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 136 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 11 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 61 МЛН
A Step-by-Step Guide for the Cache-Aside Pattern + Stampede Protection
19:29
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 471 М.
The Tech Stack I Use To Build SaaS Applications
10:14
Gino
Рет қаралды 2,6 М.
Rust for the impatient
10:43
No Boilerplate
Рет қаралды 690 М.
Jon Snow real identity hints through the show
5:06
Recap Fridays
Рет қаралды 7 МЛН
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 53 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 295 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 11 МЛН