Day n°1 - Adurnam/100daysOfCode GitHub Wiki
#100DaysOfCode 2nd of August 2020
First official day of the challenge for me.
I worked on my skeleton project, trying to build a MVVM architecture from scratch. I've worked on Fragments, viewmodels and inheritance. Everything is in Kotlin.
I stumbled on a few weird things that I managed to modify and better, except for one :
fun isNetworkConnected() : Boolean { return (activity != null && activity!!.isNetworkConnected()) }
As is, the code is forcing the not null on the Activity, but I'm doing the test before so I don't really understand why I need to add those "!!". Safe call doesn't work properly either. If anyone knows how to write this cleaner, I'm always open :)
Going to my feelings for today : I felt a bit overwhelmed at first, I didn't really know what to work on, and it took me a while to get started (almost an hour).However, as soon as I had a global idea of what to do, I enjoyed spending my time learning new stuff and cleaning up my code. I feel like it will take me a while to perfect the MVVM architecture pattern, but I also feel like its reachable, and this is great :)
tomorrow is work day, so I will mostly work en business related stuff, which are also in Kotlin, but are a lot different than what I want to achieve with this challenge. I will try to put some time into this project anyway, and see how it goes !
Thanks for reading