PHP 5.5: The Power to Yield
In PHP 5.5 we get a new keyword called yield. It is a language feature that allows us to create iterator style Generators in a very easy way by just defining a single function. Before PHP 5.5 you had two…
Read more
In PHP 5.5 we get a new keyword called yield. It is a language feature that allows us to create iterator style Generators in a very easy way by just defining a single function. Before PHP 5.5 you had two…
Read more
In the last post, I talked about the difference between a service and a background thread in Android. In this post I want to talk about updating an activity from a background thread that runs in the application context. As you…
Read more
A question that is asked by many new Android developers is when to use a service and when to use a background thread for some task that threatens to block the UI thread. This question is somewhat misleading because it…
Read more