Archi & Techno

Archi & Techno

WebAssembly, an executable format for the web

With the latest Web browser updates, there is now a standard for high-performance code execution via the Web. WebAssembly is indeed now available on Edge, Safari, Chrome and Firefox. It promises a standard execution environment on all machines, regardless of hardware or OS. Some see in it the future platform for the deployment of universal applications — for mobiles, but not only. A platform that would enable performance very close to that of native applications. Others worry about the upcoming fragmentation of effort and methods…

Read more
Archi & Techno

Vue.js unit test cases with vue-test-utils and Jest

This article describes test contexts, from common to more complex ones, on a Vue.js stack. You may read TDD with Vue.js article as an introduction, which is mainly focused on methodology (Test Driven Development). This current article describes a wider range of test contexts based on Vue.js, using vue-test-utils helpers and the Jest testing framework.   1/ Jest Jest is a testing framework developed and used by Facebook to test JavaScript code. Its main goal is to simplify test configuration. It integrates most of the…

Read more
Archi & Techno

What’s up with Android? droidcon UK 2017

 October 26th and 27th, we had the occasion to attend droidcon in London. For both of us, it was our first steps in a conference of this scale and on our favorite domain. Our expectations were not the least: within our team, most of the topics of the moment seemed to have been explored back and forth, whether it is about architecture, asynchronism management libraries and methods or even Kotlin advantages. We hoped to discover news things, demystify obscure looking subjects and finally, come back…

Read more
Archi & Techno

Ansible reporting with ARA: Ansible Run Analysis

̛I had a Slack conversation with some friends from work (B, R and G) the other day. It went somewhat like this: B: “Hey, have you guys ever heard of ARA?” This was followed by 5 minutes of the deafening sound of contextualisation and Google searches by everyone on the channel. R: “Nope, but every piece of technology that could enable Ansible to catch up with PuppetDB/Board would be very much appreciated” G: “Reporting is cheating” (This statement makes way more sense in French) Me:…

Read more
Archi & Techno

A Responsive and Clean Android App with Kotlin Actors

One crucial point that each front-end developer must face when developing an application is handling the switch from UI to background threads. Indeed, we can all agree on the fact that your application shouldn’t freeze during long running operations. The Android SDK even strictly prevents us from calling an API from the Main Thread. There are many ways to tackle this issue, for instance with RxJava, with a ThreadPool (check this out) … This article aims at proposing yet another asynchronism solution, using Kotlin actors. We’ll…

Read more
Archi & Techno

How does it work? Docker! Part 5: Get some work(ers) done!

Hey there! TL;DR I hacked another thing together, this time in order to install a highly available Docker Swarm cluster on CoreOS (yeah, Container Linux), using Ansible. The whole subject was way too long for a single article. Therefore, I’ve divided it into 5 parts. This is episode 5, regarding the actual implementation of the local cluster’s Worker nodes, using Vagrant, CoreOS and Ansible. If you want to try it: git clone https://github.com/sebiwi/docker-coreos.git cd docker-coreos make up You will need Ansible 2.2+, Docker, Vagrant and…

Read more
Archi & Techno

Better network layer on iOS with synchronous calls

In most iOS apps, as app developers, we pay a very special attention to the user interface. For example, we try to perfectly implement the graphical design as proposed by the designer. But on the other hand, we pay very little attention to the other parts of the app such as the the data management or the network layer. In this article, I will explain why, during my last project, as we were trying to improve the unit tests of our network calls, we decided…

Read more
Archi & Techno

How does it work? Docker! Part 4: Control your Swarm!

Hey there! TL;DR I hacked another thing together, this time in order to install a highly available Docker Swarm cluster on CoreOS (yeah, Container Linux), using Ansible. The whole subject was way too long for a single article. Therefore, I’ve divided it into 5 parts. This is episode 4, regarding the actual implementation of the local cluster’s Manager nodes, using Vagrant, CoreOS and Ansible. If you want to try it: git clone https://github.com/sebiwi/docker-coreos.git cd docker-coreos make up   You will need Ansible 2.2+, Docker, Vagrant…

Read more
Archi & Techno

How does it work? Docker! Part 3: Load balancing, service discovery and security!

Hey there! TL;DR I hacked another thing together, this time in order to install a highly available Docker Swarm cluster on CoreOS (yeah, Container Linux), using Ansible. The whole subject was way too long for a single article. Therefore, I’ve divided it into 5 parts. This is episode 3, regarding Swarm Service Discovery, Load Balancing and Security. If you want to try it: git clone https://github.com/sebiwi/docker-coreos.git cd docker-coreos make up You will need Ansible 2.2+, Docker, Vagrant and Molecule  

Read more
Archi & Techno

Android library development best practices guide

As Android developers, we are used to having to integrate many libraries in our applications. It can be from quite small .jar files to huge .aar archives which embed multiple screens. Sometimes the integration of these libraries goes smoothly but in some cases, it can be quite painful and lead to the addition of some “hacks” into the app in order to integrate it properly. In some other cases, it can also lead to time-consuming exchanges between the person who integrates the library and the…

Read more