Working with Ionic 3 (Ionic 4 still sucks for production apps) I had this weird requirement to subscribe to one Observable and in case of error, wait some time, repeat the action twice and if it fails again, catch the error and do some stuff. First I thought it's really easy to do this with … Continue reading RxJs – Retry with delay and error handling
If you create Drawable objects on the fly you may have the unpleasant surprise that you introduced some memory leaks in your code. In that case, maybe you should unbind your drawables. This happens because when you display a Drawable object in your Activity, that Drawable instance will be bound (via some callbacks) to your … Continue reading Android Unbind Drawables
Just watched this video and I think it perfectly summarizes my view about Micro-services vs Monolith debate: https://www.youtube.com/watch?v=Jcy37C5SN0M&feature=youtu.be&t=52
No seriously, I work a lot with Angular (right now with Ionic) but I also maintain some server side rendered projects where I use jQuery... and after all this time I still love it. Everybody say that jQuery is that dark library from the middle ages of WEB development, that inevitably leads the callback hell … Continue reading I still like jQuery, Is that a sin?
I just remembered that in one of my SpringBoot projects I forgot to enable gzip compression. Don't be me, always use compression, even if it's not enabled by default, it's really useful to reduce bandwidth and to speed up page loads. Here is the configuration I use (in yml format).
Sometimes you want put some navigation code in a service. If the service is provided at root level you can't inject the NavController because you don't have any at application startup and your application will crash. The naive solution is to pass the NavController as parameter to the service method like this: This solution is … Continue reading How to use NavController from a Service in Ionic 3
You may want to do this if you want to write a framework that relies on the name of the resources and not the actual ID, in order to remove references to the R class. For example if you use R.layout.activity_todo_list in your class, and you want to move your class in a separate library... … Continue reading How to get Android resource ID by string
I was playing with the TypeScript playground (http://www.typescriptlang.org/play/) and noticed how cool is to have a great linter that checks your code for all kinds of errors and gives you meaningful warnings. So check this out: ... and after you hit run!
Probably many of you already know that, PWAs (Progressive Web Apps) are apps that can run in the browser or in a standalone window and can take advantage of native OS features, such as push notifications and the ability to work offline. Recently they’ve got a lot of media attention because they seem to be … Continue reading How you can develop Progressive Web Apps that feel native