Null Safety Explained | Why it is Awesome!
Video Statistics and Information
Channel: Tadas Petra
Views: 10,848
Rating: 4.9479556 out of 5
Keywords: coder, coding, programming, coding fundamentals, programming fundamentals, cs university, flutter, dart, null safety, flutter null safety, sound null safety, null concepts, swift, ios, android, nullable, non-nullable, late, required, migration tool, flutter migration tool, dart migration tool, flutter march 3rd, flutter stable, flutter beta, flutter release
Id: _VrulBiOV_o
Channel Id: undefined
Length: 9min 2sec (542 seconds)
Published: Fri Feb 12 2021
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
I just recently revived a project at work which I built in flutter. Going in I was excited thinking I could finally use null safety, and boy was I disappointed.
The migration process was clunky and in the end my very modest set of dependencies didn't turn out to be ready, and then I finally stumbled upon the official recommendation that suggested you still stay away if you're building apps, but to use it if you're building a library.
This, combined with having to use the awful, awful codegen for stuff like JSON and DB serialization, and the language's type system otherwise being very limited, made me decide that I would rather rewrite the whole thing in typescript and use react-native, but unfortunately Flutter has some minor advantages for what we're trying to do which made react-native a bad choice in the end.
I guess I don't have anything specific to say other than that I can't wait till null safety is a real, usable thing.
It's awesome when you can use it.
But when you have dependencies that prevent you from using it, then that's not awesome.
This is called a wasted migration time.
Because everything needs to be migrated back, otherwise it won't work.
In all other cases, it's awesome.