Now that you've built your first command line weather app using the Dart programming language, it's time to make the code more elegant and easier to read. In this lesson, Jeff booth will take you through the process of refactoring the code so that it's easy to read and understand.
Chapters:
0:00 Introduction
0:38 Definition of Refactoring and Dart Create
1:22 Create a Function to Call Weather API
2:43 Add Response Status to Call Weather API Function
4:17 Error Response Handling
5:00 Refactor the Do While Loop
6:31 Variable Naming
7:19 Combining Variables
8:01 Updating Print Statements to a Function
9:27 Why are We Doing This?
10:08: Abstract Forecast to a Function
12:38: Should you Abstract Code?
14:31: Named Argument/Parameter
15:49: Abstracting All Functions to a New File
17:37: How Else Can We Improve this Application?
18:37: What About Error Handling?!
18:57: Closing Statements
Other Important Videos:
Building a Weather App:
• Building a Weather App in Dart || Lea...
Adding Error Handling to Our Weather App:
• Dart & Flutter: Error Handling for Be...
Unit Testing in Our Weather App:
• Unit Testing in Dart and Flutter Tuto...
Watch video Building a Weather App in Dart || Refactor Your App || Dart and Flutter Tutorial online without registration, duration hours minute second in high quality. This video was added by user FlutterED - Learn Flutter and Dart 14 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 96 once and liked it 6 people.