Something that I noticed through my career is that developers have different conceptions on how View Models should look like. Usually, they either see it as closer to UI or closer to data. There are both pros and cons for each approach, but I believe that the closer we get to UI and life cycles, more coupled is our code. Bringing View Models closer to data allows us to be more flexible, more expressive, adapt quicker to UI changes, perform AB tests and be ready for new frameworks like SwiftUI.


Dependency Injection brings a lot of benefits like decoupling, reusability, simpler tests and prevents sweeping changes in our codebase. Despite that, Mobile Development brings some new challenges to the game, and most references we have out there are not mobile-oriented and don’t touch the issues we run into when applying the pattern in mobile apps. In this article we will discuss some problems we can run into when developing apps using DI and what solutions we might consider.

Where everything started

When we first started programming, most of us learned a simple example using animals. Something like this:

In which we could…


Esse artigo pode ser um bom ponto de partida para iniciantes em NodeJS :)

Neste artigo, iremos ver uma forma bem simples e rápida de criar uma API em NodeJS. Ele poderá ser usado como ponto de partida para quem está entrando no mundo de NodeJS ou então uma boa alternativa para quem deseja mockar rapidamente uma API para receber respostas customizadas.

Nossa API irá exibir um simples json (mostrado abaixo) quando requisitada no endpoint localhost:3000/users/47.

Para isso utilizaremos o framework ExpressJS. De uma maneira bem simplificada, podemos dizer que o ExpressJS é uma ferramenta que nos ajuda a…

Eduardo Domene Junior

Sr. iOS Developer @ Free Now

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store