Web Components with Vanilla JavaScript

If there is something true about JavaScript and the WEB is that there are many frameworks. You have Vue, React and Angular just to name a few. I had the opportunity to work with them and they are great, but none of them makes me happier than code using Vanilla JavaScript to create Web Components.

Read More

Mocking SOAP web services with Sandbox

A while ago I started this product called BomRastreio with my good friend Porcelani. The promise was simple: to track objects sent through the Brazilian postal service and try predicting delays. In order to do this, periodically, we used to consume a SOAP web service from Correios and apply business logic based on the statuses - which are a lot - returned to all the related objects. Although Correios provides a relatively decent service, testing the application would require it to be present in the pipeline and we couldn't rely on it.

Read More

Using GetSandbox as your Test Double

Imagine you're directing a movie. You have an action scene to film ahead and the actress who is really good at acting has a bad knee or acrophobia. Now, she isn't able to jump off that tall building and land safely on the other building, but you have somebody who is fully prepared to take that shot: the stunt double.

Read More

Auto-scaling Google Cloud compute instances

A great thing about cloud computing is the ability to increase the number of computational resources that your service or application need during high demands dynamically. Auto-scaling is a feature available in any major cloud service and is based on configured thresholds that when surpassed, trigger the automatic scaling of computational resources needed. These thresholds could be, for example, CPU or memory usage, the number of HTTP requests or messages in a queue. Google Cloud Platform supports auto-scaling and I'll demonstrate how to configure it from the terminal.

Read More

Creating a Google Cloud compute instance from the terminal

I have been working with Amazon Web Services for a while, but recently I started moving the applications from the project I am currently working on to Google Cloud. I was not thinking of Google Cloud as my production platform at first, but since I am using Firebase as the database for the mobile application, I thought I could take some advantage by moving everything there.

Read More