Тёмный

Pattern Matching in Dart 3 is Powerful! 

Robert Brunhage
Подписаться 47 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@truemmer
@truemmer Год назад
I really like the new features for Dart 3.0, but I fear that readability will suffer in many projects 😅
@wizzl8513
@wizzl8513 Год назад
We need more of this, great content!
@RobertBrunhage
@RobertBrunhage Год назад
Thanks, appreciate it! Any recommendations of what you would like to see?
@wizzl8513
@wizzl8513 Год назад
@@RobertBrunhage Tips and use cases for new/existing language features. It saves a lot of time not having to read the documentation
@artofnessa
@artofnessa Год назад
WOOOOO!! pattern matching for the winn
@FlutterMapp
@FlutterMapp 29 дней назад
First, is the background made in blender? If yes, thats pretty damn cool, second, we need more content from you :)
@sadhlife
@sadhlife Год назад
good to hear. it's a nice language feature for dart/flutter
@mtux
@mtux Год назад
Thanks a lot, great video
@ahmdaeyz
@ahmdaeyz Год назад
I like how you casually explained type promotion at 1:42
@toxaq
@toxaq 5 месяцев назад
I wish you were still making videos!
@firelight22
@firelight22 Год назад
I didn't know about the fact you could add 2 variables into the switch statement :O
@BonBaisers
@BonBaisers Год назад
Readability is absolutly awful, specialy the first example. I would instant deny the "if" line in my code reviews.
@鄭小白-n4p
@鄭小白-n4p 3 месяца назад
hi, can you teach how to setup vim with flutter env?
@rumble1925
@rumble1925 Год назад
Nice. This is something I miss in every language since trying one that has it
@vikasdwivedi7769
@vikasdwivedi7769 7 месяцев назад
Hey Robert still you think Flutter had good future, bcz there are very less project exist for flutter. Your suggestion.
@sirk3v
@sirk3v Год назад
which editor is this?
@RobertBrunhage
@RobertBrunhage Год назад
NeoVim :) The best editor that has ever existed
@draakisback
@draakisback Год назад
I'm glad that they finally added pattern matching to dart. I've been using it everywhere since it came through in dart 3.0. probably my favorite version of pattern matching is the elixir/Erlang module level pattern matching where are you can specify multiple functions with the same name in a module. So for example if I have a function that has optional arguments, I can create a function head that takes zero parameters and I create one for the optional parameters. The runtime will pattern match on the function head that is being invoked based on the amount of parameters that are being passed in. You can take this even further too, where you explicitly match on a value or on a type etc. It's unfortunate that we don't have this in dart but the dart version of pattern matching is still extremely powerful. My favorite use case in dart specifically is probably the first one you showed, where you can bind to a new variable if the sub case matches, it is basically rust's if let binding. It's kind of a shame that the enhanced enums are all constant, if they were more like union types, we could do a ton of different monads with pattern matching. For now you can do a similar thing with inheritance but it's not as powerful.
@_underscore
@_underscore Год назад
Also in C++ "Function Overloading".
@TechBuddy_
@TechBuddy_ Год назад
I would do _ => ... Instead of (_,_) => ... But great video as always
@RobertBrunhage
@RobertBrunhage Год назад
Fair! Didn't think about it when doing it in the video haha
@poncewilmer
@poncewilmer 7 месяцев назад
THANKS
@subsoho
@subsoho Год назад
Thank you for ur video !. You have a nice IntelliSense system in ur editor . Which editor do you have and which intelligences system ? thank you.
@jackwarner1018
@jackwarner1018 Год назад
I am interested in taking your course, but there is no information when it was last updated. Can you tell me what version of Flutter and Riverpod you use in the course?
@robschannel1156
@robschannel1156 2 месяца назад
this shit is by far the most confusing thing I've encountered in Dart so far.
@noelgomile3675
@noelgomile3675 Год назад
This is going to be awesome with Flutter for making it easier to model logic for dynamically picking which widget to show
@sujalabhani980
@sujalabhani980 Год назад
finally a creator that makes something new and good.🙂
@mikopiko
@mikopiko Год назад
You must be from Sweden, I can hear it!
@RobertBrunhage
@RobertBrunhage Год назад
SwEDen sWeDEN SWEDEN!!!
@mikopiko
@mikopiko Год назад
@@RobertBrunhage Göteborgare?
@RobertBrunhage
@RobertBrunhage Год назад
Yeyeyeyeye
@mikopiko
@mikopiko Год назад
@@RobertBrunhage Näe lägg av
@trainofthought5733
@trainofthought5733 Год назад
bloc + pattern matching. makes life easier
@olamilekanadeleke6806
@olamilekanadeleke6806 Год назад
What IDE is that... And why is everyone hating on vs code, did I miss something 😅
@TechBuddy_
@TechBuddy_ Год назад
It's neovim and we hate vs code cuz 1. It's a Microsoft product 2. Consumes a lot of memory 3. Super slow
@RobertBrunhage
@RobertBrunhage Год назад
I actually stopped using vscode more than 2 years ago now. Just used VSCode for the videos because it would feel more comfortable for the viewer. Then I stopped caring :D No but it's NeoVim and it's the best and all others suck
@sirk3v
@sirk3v Год назад
@@RobertBrunhage is that autocomplete from copilot or is it just inbuilt?
@RobertBrunhage
@RobertBrunhage Год назад
@@sirk3v The one where I have normal autocomplete from options are inbuilt LSP (same as other editors) The ghost text that I tab out is copilot
@rsajdok
@rsajdok Год назад
Good explanation 🙂
@RobertBrunhage
@RobertBrunhage Год назад
Tyty!
@antongrekov7710
@antongrekov7710 7 месяцев назад
rip legend
@nested9301
@nested9301 3 месяца назад
Is he dead?
@rebarius
@rebarius Год назад
I‘m just here for the „3“ ❤
@tayabfarooq7544
@tayabfarooq7544 Год назад
Hello Sir! One thing that is flying in my mind for over two years is how did you become such a great programmer? Your answer means a lot to me!
@sexyeur
@sexyeur Год назад
You'll have to "shake" back later.
Далее
Bringing pattern matching to Dart
20:28
Просмотров 39 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 86 тыс.
Сколько стоит ПП?
00:57
Просмотров 145 тыс.
Обменялись песнями с POLI
00:18
Просмотров 333 тыс.
10 Flutter Tips to Be More Productive
13:25
Просмотров 66 тыс.
PDC World Cup of Darts | R1 | England - Philippines
22:26
The Midpoint Circle Algorithm Explained Step by Step
13:33
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
What is happening with Flutter
3:41
Просмотров 150 тыс.
Are You Typing Slower Than 80 WPM?
4:51
Просмотров 3 тыс.
Сколько стоит ПП?
00:57
Просмотров 145 тыс.