Android TDD Masterclass - Coroutines, Jetpack
- Descrição
- Currículo
- FAQ
- Revisões
The TDD Masterclass by Petros Efthymiou.
Learn State-of-the-art Android development by building a real production app.
Are you following dozens of forums and articles and buying courses in order to move your development skills and career to the next level?
I am, too, but more often than not, after completing them, I realize that there is still a HUGE amount of work left to be done to connect all the pieces together and make them work on a real application. I found that even though a course was providing comprehensive knowledge on coroutines, it didn’t mean that I knew how to integrate them with Retrofit, Live data, or Hilt. And because another course was extensive on Test Driven Development after completing it, I didn’t know how to write an application with TDD using the latest Android tech stack.
After buying courses, reading articles & forums, and a couple of months of hands-on practice, I have finally learned how to combine Android 11 best development practices in an Android application.
I created this course to make the process easier for you! You are going to learn how to combine
-
Kotlin
-
Coroutines
-
Live Data
-
Kotlin Flow
-
Retrofit
-
Hilt
-
Jetpack Navigation
-
MVVM
And complete a real Android application purely on Outside-In Test Driven Development
You are going to learn how to write not flaky espresso tests in a real scenario with delays and HTTP calls, without using Thread.sleep(). After all we wouldn’t be doing TDD without efficient & effective Espresso UI tests!
Why Me?
Even though I am new to Udemy, I am not new to the industry. I have been working as an Android engineer from junior to lead positions in ambitious startups & large multinational companies for about 8 years. Being a good engineer, though, doesn’t automatically mean that you are a good Instructor as well.
In the past 5 years I have also discovered my passion for education and worked as a Software Instructor in several colleges and companies, including New York College, Hellenic American Union my current position is a Mobile Trainer in a Multinational company called Backbase, where I am training
-
The internal RnD engineers
-
The internal professional services engineers
-
External third-party integrators
In my lifetime, I have trained thousands of developers in classrooms, web conferences, and video courses.
Why is it important?
As we advance to more senior engineering levels, we realize that how we do things is equally important to get them done. The industry has started to realize that a serious software engineering company can no longer base its products on purely architectural and engineering practices.
I often say that there are 3 stages in the advancement of an engineer
-
In the first stage, he/she is a programmer. He is learning how to make things work, e.g., how to add buttons in an Android application and handle its click. But is not aware of the importance of doing things well. He or she cannot realize that a purely structured system is certain to backfire in the long run, and while everything initially seemed to be going well, “suddenly,” it is impossible to work with this system anymore. New features are hard to add, and bugs very often slip to production code
-
In the second stage, having realized the past mistakes, the professional starts practicing and learning good engineering patterns. He or she starts exploring things like :
-
SOLID Principles
-
Design patterns
-
Clean architecture
-
Separation of concerns
-
Low coupling, High cohesion
-
Unit Testing
and if is passionate and dedicated enough, manages to reach a more senior level, and is able to develop systems that can be successful not only in the short but also in the long run
-
-
The final stage is the Mastery. This stage is an ongoing process and doesn’t ever end. After the engineer has a good understanding of the above practices, he realizes there is a huge room for improvement. He learns how to apply them and, most importantly, when they are not required, and simpler-junior level approaches are more beneficial for the specific project/situation. In other words, it is a constant effort to learn how to never
-
Under-Engineer
-
Or Over-Engineer.
He or she also comes in touch with more advanced practises like Test Driven Development which takes quite a lot of effort to get a grasp and master it.
-
In this course, I will do my best to advance you on this path. I will offer you what I have learned on my journey, and I am also very open to learning from you. I am always available on the forums to support and discuss topics that you might have a different point of view, and this way, we can help each other on our endless road to Software Mastery.
-
3Section IntroVídeo Aula
-
4What is TDDVídeo Aula
Let's discuss what TDD is.
-
5Advantages of TDDVídeo Aula
-
6Platform IndependentVídeo Aula
-
7TDD LifecycleVídeo Aula
-
8What is a TestVídeo Aula
Let's touch base on what is a Test
-
9Writing Our First Unit TestVídeo Aula
-
10Solution: Second Unit TestVídeo Aula
The solution to the exercise
-
11Please take 1 min to rate the CourseTexto
-
12Test PreconditionsVídeo Aula
What characteristics make a Test valuable?
-
13Types Of Automated TestsVídeo Aula
Let's discuss of all the different types of automated Tests
-
14Google Testing PyramidVídeo Aula
Discussing Google's suggested testing strategy
-
15Types of TDDVídeo Aula
How many TDD types exist?
-
16Classicists VS Outside-In TDDVídeo Aula
Pros & Cons of TDD types
-
17And The Winner Is..Vídeo Aula
Which is our favourite TDD flavour?
-
18Outside-in TDD LifecycleVídeo Aula
One additional step
-
19Our first system using TDD - RequirementsVídeo Aula
The requirements of the first system that we are going to develop using outside-in TDD
-
20Failing Acceptance TestVídeo Aula
In this video we are going to write our first failing acceptance test that validates the system behaviour
-
21First TDD Cycle CompletedVídeo Aula
In this video we will complete the first inner TDD cycle
-
22Second Failing Acceptance TestVídeo Aula
Let's write the second acceptance test for the second part of our desired system behaviour
-
23Car Inner TDD cycleVídeo Aula
In this video we are going through the whole Inner TDD cycle for the Car class.
-
24Engine Inner TDD cycleVídeo Aula
In this video we are going through the while Inner TDD cycle for the Engine class
-
25Green: Acceptance TestVídeo Aula
Finally we complete the whole implementation of our system and our Acceptance Test is passing !
-
26TDD QuizQuestionário
What you learned regarding TDD?
-
27Section ClosingVídeo Aula
-
28Section IntroVídeo Aula
-
29What Problems Do Coroutines Solve?Vídeo Aula
Let's discuss what problems do coroutines solve & why do we need them
-
30Suspend & ResumeVídeo Aula
Explaining 2 new operations, the Suspend & Resume
-
31Examining How Coroutines WorkVídeo Aula
Let's see what happens in the background while we write straightforward sequential code
-
32Main Safety With CoroutinesVídeo Aula
How do coroutines achieve Main Safety?
-
33Structured ConcurrencyVídeo Aula
Let's discuss an important concept called structured concurrency
-
34Coroutines Practical ExampleVídeo Aula
Let's see coroutines in practise !
-
35Testing CoroutinesVídeo Aula
Learning how to write unit tests for Coroutines
-
36Kotlin FlowVídeo Aula
Reactive Programming with Kotlin Flow
-
37Advantages of Kotlin FlowVídeo Aula
Let's discuss the advantages of Kotlin Flow VS Rx
-
38Kotlin Flow in PractiseVídeo Aula
Let's get some hands on experience using Kotlin Flow
-
39Unit Testing Kotlin FlowVídeo Aula
Let's see how can we unit Test a Kotlin Flow
-
40Closing The ImplementationVídeo Aula
In this video we are closing up the implementation of our example system
-
41Coroutines QuizQuestionário
-
42Section IntroductionVídeo Aula
-
43Working AgileVídeo Aula
Let's discuss the basic principles that will enable us to deliver fast, high quality code
-
44Application RequirementsVídeo Aula
Let's discuss the requirements of our MVP Android application
-
45Setting up our BackendVídeo Aula
We are going to use Mockoon in order to make a real Backend environment on our localhost
-
46Setting up our Android ApplicationVídeo Aula
Please download the start application attached to this video
-
47First Acceptance Test PassingVídeo Aula
Our first acceptance test is passing !
-
48Playlists failing acceptance testVídeo Aula
Implementing the failing Acceptance test for our playlists list
-
49Minimum Viable ArchitectureVídeo Aula
Let's discuss an interesting concept that I like to call Minimum Viable architecture
-
50Starting with the UIVídeo Aula
Creating the user interface for our playlists feature
-
51Playlist Fragment ImplementationVídeo Aula
Implementing the Fragment
-
52Finishing up the View LayerVídeo Aula
Finishing the development cycle for the view layer.
-
53Red: ViewModel Unit TestVídeo Aula
Writing the first red unit test for our ViewModel layer
-
54Green: First VM Unit testVídeo Aula
-
55Green: VM Emitting PlaylistsVídeo Aula
We are turning the second unit test of our VM Green!
-
56Refactoring PhaseVídeo Aula
Never forget to refactor both the production & the test code
-
57Testing Error CasesVídeo Aula
It is very important to also test how our system is applying error handling
-
58Implementing The Repository LayerVídeo Aula
Starting the inner TDD cycle for the Playlist Repository
-
59Repository Layer (Cont)Vídeo Aula
In this video we reach the Green state for the emitPlaylistsFromService Test!
-
60Wrapping up the RepositoryVídeo Aula
Finishing with the repository layer, do not forget that we must also implement the error handling!
-
61Exercise: ServiceVídeo Aula
-
62Green: First Service TestVídeo Aula
We are turning green the first desired behaviour of our Service Test
-
63Green: Second Service TestVídeo Aula
-
64Green: Third Service TestVídeo Aula
Let's complete the implementation of our service layer by testing the error handling
-
65Wrapping up the Playlists FeatureVídeo Aula
-
66Section IntroVídeo Aula
-
67Dependency Injection ExplainedVídeo Aula
Let's first make sure that we understand what dependency injection is
-
68Pros of using DIVídeo Aula
Let's discuss the advantages of using dependency injection in your project
-
69Introduction to Google HILTVídeo Aula
Let's discuss Google's HILT DI library and why it is the best choice currently for an android application
-
70Evaluating our situationVídeo Aula
Evaluating our situation and what dependency injection means to our project
-
71Download HILTVídeo Aula
Let's include the HILT library to our application
-
72Integrating HILTVídeo Aula
Let's learn the steps to perform dependency injection using the HILT library
-
73Finishing HILT IntegrationVídeo Aula
In this video we are going to finish the HILT library integration
-
74Testing the ApplicationVídeo Aula
Let's test the behaviour of our application after integrating HILT
-
75Dependency Injection QuizQuestionário
-
76Section ClosingVídeo Aula
-
77Section IntroVídeo Aula
-
78Requirements ChangeVídeo Aula
After demo-ing the application to our team we are receiving some improvements from our Product Owner
-
79Failing Acceptance TestVídeo Aula
Starting off with the failing acceptance test for our improvement as always
-
80Green: Acceptance TestVídeo Aula
Implementing the first part of our improvement
-
81Loader Hiding, Failing Acceptance TestVídeo Aula
Correcting broken past behaviour and implementing the second failing acceptance Test.
-
82Completed Loader FeatureVídeo Aula
Completed the whole implementation of the loader functionality
-
83Rock Image, Failing Acceptance TestVídeo Aula
Writing the first failing acceptance first for our second improvement
-
84Upfront DesignVídeo Aula
Let's discuss what is the best way to add business logic inside our application
-
85Red: Failing Repository TestVídeo Aula
We need to refactor our system to make to map the PlaylistsRaw to Playlists before we proceed with our second improvement
-
86Green: Repository Using Mapper TestVídeo Aula
We need to make sure that the repository is delegating the playlist mapping
-
87Green: Whole Repository SuiteVídeo Aula
Finished the repository implementation
-
88Green: First Mapper TestVídeo Aula
Now let's focus on implementing the business logic with the mapper
-
89Green: Playlist Mapper TDD cycleVídeo Aula
Going through the rest of the TDD cycle for our mapper
-
90Green: Acceptance Test!Vídeo Aula
Getting the green light for the second improvement
-
91Bonus: Removing Thread Sleep From Espresso TestsVídeo Aula