Lately, I have been a little frustrated with the app I have been building in Xamarin.Forms. I am trying to use MVVM and I have most of it working, yeah! I just have one attribute that isn't not getting saved from the view. It is the only value that sits on a different SQLite table then all the rest. Do I blame it on that? Am I not calling the correct items in the view model?
Anyway, I have been stuck for more then a few days. And each day I don't make much, if any, progress. What happens? Frustration builds up. The first line where I say a little frustrated, that is a lie. I have been getting more frustrated. I shouldn't be getting too frustrated, I know that some frustration is good and will actually help you grow. I have been hearing a lot that failing is good and we learn from each failure. Is it time to chalk this one up to a failure?
Let's be honest, I got to the point the other night where I really just wanted to get the app to work. I did part of it in code behind (I know, I know, I won't be able to test it!) and got it partly working. You can now select the storage for the movie, but it won't save. I am missing something in the view model, but I already knew that. Using just the view model I was not able to get the data to populate or pull up the correct page.
Great! Now I can select the storage type and save my movie information! Bad news, it doesn't save the storage piece. I save the movie and come back into the detail and the storage type is missing. I need to go back and learn more about how MVVM is working. I have a cursory understanding, but not a full understanding. My app broke when I tried to add a second SQLite table into the mix. Take out the new table and you can have a list of movies, no problem. But, I also had an example of the one table scenario that used MVVM that I could model.
Maybe a failure now, but a failed project which I want to come back to after taking a step back and taking some time on another project to continue my learning, perhaps more about MVVM and a smaller project that implements it. Or, next time I am in the office I hope one of our MVVM experts are in the office as well and I can ask them. Would it be ok to use Skype to call someone up to ask help on a personal project?
The frustration may be good, but how much frustration is good? This is probably a question each person needs to ask themselves. It will be different for everyone.
"Nothing makes one feel so strong as a call for help." - Pope Paul VI
Anyway, I have been stuck for more then a few days. And each day I don't make much, if any, progress. What happens? Frustration builds up. The first line where I say a little frustrated, that is a lie. I have been getting more frustrated. I shouldn't be getting too frustrated, I know that some frustration is good and will actually help you grow. I have been hearing a lot that failing is good and we learn from each failure. Is it time to chalk this one up to a failure?
Let's be honest, I got to the point the other night where I really just wanted to get the app to work. I did part of it in code behind (I know, I know, I won't be able to test it!) and got it partly working. You can now select the storage for the movie, but it won't save. I am missing something in the view model, but I already knew that. Using just the view model I was not able to get the data to populate or pull up the correct page.
Great! Now I can select the storage type and save my movie information! Bad news, it doesn't save the storage piece. I save the movie and come back into the detail and the storage type is missing. I need to go back and learn more about how MVVM is working. I have a cursory understanding, but not a full understanding. My app broke when I tried to add a second SQLite table into the mix. Take out the new table and you can have a list of movies, no problem. But, I also had an example of the one table scenario that used MVVM that I could model.
Maybe a failure now, but a failed project which I want to come back to after taking a step back and taking some time on another project to continue my learning, perhaps more about MVVM and a smaller project that implements it. Or, next time I am in the office I hope one of our MVVM experts are in the office as well and I can ask them. Would it be ok to use Skype to call someone up to ask help on a personal project?
The frustration may be good, but how much frustration is good? This is probably a question each person needs to ask themselves. It will be different for everyone.
"Nothing makes one feel so strong as a call for help." - Pope Paul VI
No comments:
Post a Comment