Dart 3 Records Are Awesome

  Рет қаралды 14,042

Robert Brunhage

Robert Brunhage

Күн бұрын

Пікірлер: 73
@raghav042
@raghav042 Жыл бұрын
these types of short videos are very helpful, time saving and enjoyable 😊
@RobertBrunhage
@RobertBrunhage Жыл бұрын
awesome, glad to hear it :)
@abuzar478
@abuzar478 Жыл бұрын
Dart is evolving!
@RobertBrunhage
@RobertBrunhage Жыл бұрын
language features, langeuage features, langeua furetes!
@erickfiori
@erickfiori Жыл бұрын
@@RobertBrunhage This comment!
@hydrilara
@hydrilara 2 ай бұрын
Backwards
@SuperSomeguy56
@SuperSomeguy56 Жыл бұрын
Thanks for the succinct explanation. I appreciate that you covered the topic quickly and without a lot of superfluous context. I just subscribed because of that.
@RobertBrunhage
@RobertBrunhage Жыл бұрын
Awesome, thanks!
@neiljaywarner7268
@neiljaywarner7268 Жыл бұрын
@@RobertBrunhage me too, i liked your course but forgot about your channel, good job
@artofnessa
@artofnessa Жыл бұрын
Have been looking forward to this video!!!
@chibuezefelixanyanwu300
@chibuezefelixanyanwu300 Жыл бұрын
this is quite useful when you want to return a success response or a failure response, when making network calls
@grevel1376
@grevel1376 Жыл бұрын
So they added tuples
@imamhatipoglu4040
@imamhatipoglu4040 Жыл бұрын
Yaaay, i was waiting this video. Great content. Thanks 🎉
@RobertBrunhage
@RobertBrunhage Жыл бұрын
tytytytytyyttyt
@alanhartmann3355
@alanhartmann3355 Жыл бұрын
Great explanation!
@marcotocchetto5514
@marcotocchetto5514 Жыл бұрын
Haha, missed you Robert! All the best, mate! I think addition of sealed classes is great. I’ml ooking forward to dart 3
@RobertBrunhage
@RobertBrunhage Жыл бұрын
Heeeey Marco! Indeed, been playing around quite a bit with the new features, hopefully we can get them in Stable soon
@promaen
@promaen Жыл бұрын
so basically tuples
@xRruiiz
@xRruiiz Жыл бұрын
Just thank you 👏 straight to the point
@draakisback
@draakisback Жыл бұрын
For me my favorite new feature is the pattern matching which I suppose goes along with the record types.
@Abdurrahman98XX
@Abdurrahman98XX Жыл бұрын
Awesome video ❤ Please talk about sealed and interface class
@Apenschi
@Apenschi Жыл бұрын
I've been working with Flutter and Dart since 2018 and didn't know that! Very useful! Thanks!
@RobertBrunhage
@RobertBrunhage Жыл бұрын
New language feature coming in dart 3!
@Apenschi
@Apenschi Жыл бұрын
@@RobertBrunhage Oh, I see! Being able to read is a clear advantage! :-)
@TechBuddy_
@TechBuddy_ Жыл бұрын
Pattern matching and sealed classes are super amazing. The implementation is not the best but is soooooo much better than forgetting a conditional branch. I'm also looking forward to struct classes ( the name is not finalized hence the shirty name I gave them 🤣 ). Dart started as a js replacement that looked like Java and now it's trying to turn into a Kotlin x rust variant I AM VERY EXCITED for the new features 😀
@RobertBrunhage
@RobertBrunhage Жыл бұрын
Agreed, planning some content on that as well!
@kirilokun2426
@kirilokun2426 Жыл бұрын
Thanks for a great demo. What plug plug in do you use for the code completion?
@RobertBrunhage
@RobertBrunhage Жыл бұрын
I am using built in LSP with NeoVim
@chibuezefelixanyanwu300
@chibuezefelixanyanwu300 Жыл бұрын
Kindly put these in a play list robert
@RedGuy-wy2gg
@RedGuy-wy2gg Жыл бұрын
I stumbled on to this looking for throwing dart records. Concise content
@giangominh2562
@giangominh2562 Жыл бұрын
What is your setup on nvim to run with dart?
@RobertBrunhage
@RobertBrunhage Жыл бұрын
Have a video on it -> kzbin.info/www/bejne/e2Ocmp1vl8Z6htk
@chordfunc3072
@chordfunc3072 Жыл бұрын
3:00 This is going to be awesome
@RobertBrunhage
@RobertBrunhage Жыл бұрын
agreeed
@hamzaimran1991
@hamzaimran1991 Жыл бұрын
Nice! Please do sealed classes short video as well.
@gorudonu
@gorudonu Жыл бұрын
recrods are cool, pattern matching is even better. All I'm waiting for though are macros
@DeleMike7
@DeleMike7 Жыл бұрын
After 8 months of building mapping functions with Dart 😅 Thanks Dart!
@RaymondAtivie
@RaymondAtivie Жыл бұрын
This is fantastic
@Amandeep-kq5bz
@Amandeep-kq5bz Жыл бұрын
next level
@muddi900
@muddi900 8 ай бұрын
How are you getting inline error warning?
@khaled-0
@khaled-0 Жыл бұрын
That's a very interesting keyboard you're using
@mikopiko
@mikopiko Жыл бұрын
This is very nice showcase, can you do one on type union?
@gregslu
@gregslu Жыл бұрын
off topic - what is this color scheme :d?
@RobertBrunhage
@RobertBrunhage Жыл бұрын
I am using NeoVim btw :d require("rose-pine").setup { dark_variant = 'moon', } vim.api.nvim_command('colorscheme rose-pine')
@SalarAzad
@SalarAzad Жыл бұрын
just awesome
@handsanitizer2457
@handsanitizer2457 Жыл бұрын
Hey what keyboard is that ?? Edit: actually saw your video
@leandro_devsecop
@leandro_devsecop Жыл бұрын
I couldn't pay attention to the code with this keyboard
@martoxdlol
@martoxdlol Жыл бұрын
This is really good. It can be a game changer
@bashafaris5908
@bashafaris5908 Жыл бұрын
Can u make a video about making animation in riverpod and importing it in flutter??
@michaelnapora9155
@michaelnapora9155 Жыл бұрын
It should say: 'VIP office' ;)
@RobertBrunhage
@RobertBrunhage Жыл бұрын
True
@Ahmed-yr8wb
@Ahmed-yr8wb 9 ай бұрын
Keyboard name?
@nipunshah1373
@nipunshah1373 Жыл бұрын
which font you use for coding ?
@naxcall
@naxcall Жыл бұрын
So now we can return 2 value from one function, awesome 🎉
@Kerol-channel
@Kerol-channel Жыл бұрын
Just curious, will record be sufficient for 2 return type instead of using plugin such as dartz or fpdart?
@timmanning9
@timmanning9 Жыл бұрын
Does records enhance the capability of factory constructor?
@Igalsr
@Igalsr Жыл бұрын
Nice, like Kotlin
@ibrahimshehuibrahim918
@ibrahimshehuibrahim918 Жыл бұрын
love ur keyboards
@BrendansReasons
@BrendansReasons 9 ай бұрын
What other language has this?
@kamaravichow
@kamaravichow Жыл бұрын
is it like fpdart Either ?
@RobertBrunhage
@RobertBrunhage Жыл бұрын
That one has some additional functionality like the forced unwrapping callbacks, but almost
@Rotem_shwartz
@Rotem_shwartz Жыл бұрын
Literally the exact copy Of JS objects and destructing 😂
@aleksejlobikov6452
@aleksejlobikov6452 Жыл бұрын
Yeah, if somebody would think ahead and records would be introduced in version 1.8 the whole fate of Dart would be different.
@ahmedmohamed1340
@ahmedmohamed1340 Жыл бұрын
this is dumn good really helpfull
@Hazara_boy
@Hazara_boy Жыл бұрын
Tuple on steroids.
@michaelkroupa6996
@michaelkroupa6996 Жыл бұрын
I'm honestly see more problems coming up with that feature than it solves problems :S I like the idea behind it, making write code easier. but i can imaging this will really fast be overused. In my opinion i dont only write code to get the requirement working, but also to make it easy to maintain and maybe later also expand. I can imagin this might be much more complicated to understand half a year later, that it would be if one is writing a few more lines of code. More lines of code doesn't mean, it is worse. But let's see how it will envolve :)
@sambaotaku
@sambaotaku Жыл бұрын
Actually for this kind of class, use records make a lot of sense, because when you use location packages, like google maps + location, you start to get confused with your location class, google maps location class, location package location class..
@maran.ath4
@maran.ath4 Жыл бұрын
true, you're right about this, it would be okay for writing personal code or simple code maybe for solving simple coding problems, but in a real project, this will be more harmful than it will be good, I've come to find that sometimes the "boilerplate" people complain about actually is a necessary evil, for clean code, maintainability and scalability, makes code more understandable
@maran.ath4
@maran.ath4 Жыл бұрын
@@sambaotaku lol, so for that singular reason, records are good?, couldn't you just give your class a different name, I'm not saying records are bad, but that's not a sound reason
@sambaotaku
@sambaotaku Жыл бұрын
@@maran.ath4 the name doesn’t matter, the point is the video, you need to create a extra class that doesn’t make any sense, and is even worse when the package have the same name of your class, so the other developers need to understand which is which.
@maran.ath4
@maran.ath4 Жыл бұрын
@@sambaotaku I get your point now
@gerwazy373
@gerwazy373 Жыл бұрын
destructuring is soo goog with something like Future.wait([...]), no need to asign each item by hand and casting it to correct type
Pattern Matching in Dart 3 is Powerful!
7:15
Robert Brunhage
Рет қаралды 10 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
Dominic Williams - Run AI Models as Smart contracts ONLY on ICP
12:36
My Slice Info
Рет қаралды 1,6 М.
Dart 3 Class Modifiers Is kinda Confusing
5:48
Robert Brunhage
Рет қаралды 9 М.
My Final Flutter Video
14:26
Theo - t3․gg
Рет қаралды 112 М.
15 Flutter Tips That MIGHT Improve Your Work
4:10
Robert Brunhage
Рет қаралды 24 М.
A Deep Dive into JVM Start-Up
22:03
Java
Рет қаралды 23 М.
What are record types in C# and how they ACTUALLY work
15:36
Nick Chapsas
Рет қаралды 124 М.
Top 16 Dart Tips and Tricks Every Flutter Developer Should Know
11:44
Andrea Bizzotto
Рет қаралды 60 М.
Bringing pattern matching to Dart
20:28
Flutter
Рет қаралды 39 М.
Records & Patterns - Get started with the newest addition in Dart 3.0
11:30
Flutter Explained
Рет қаралды 2,6 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН