One of the main driving forces behind Python is creating simple and readable code, which turns out to be a very difficult task. In this post, we analyze the second statement of the Zen of Python: explicit is better than implicit. We clarify its meaning and illustrate some examples on how to write Python code in a "pythonic" way.


Real-Time Fraud Detection

Aug. 1, 2018

Fraud detection is one of the top priorities for banks and financial institutions, which can be addressed using machine learning. In this post, and in the accompanying code repository, we show how to build a real-time fraud detection system using a boosted tree algorithm and websockets. We also show how to visualize the fraudulent transactions in a map.


A Beginner's Guide to Python Testing

July 24, 2018

Test development is key for most software projects. In this post, we are going to discuss 4 different tests: unit tests, smoke tests, integration tests and utility tests. In simple words, unit tests make sure that each class or function behaves as it should, smoke tests make sure that the system works, integration tests make sure that the program results are acceptable and utility tests give an example on how to use a class or function. We will show how to work with these tests in Python.


Demystifying WebSockets for Real-Time Web Communication

July 12, 2018

WebSocket is a protocol for bidirectional communication (client-server and server-client), which is part of the HTML 5 API. In simple terms, it enables the interaction between a web client and a web server with lower overheads, facilitating data transfer in real-time. In this post, we will explain what are WebSockets, what is its relationship with older technologies like AJAX and REST APIs and we will provide some resources to help you implement this technology.


Samsamia Technologies was a new communication channel between fashion brands and customers. We developed a search engine for fashion products that allows a smartphone user to find the piece of clothing he or she desires just by taking a picture and buy it instantaneously. In this postmortem, I explain how I built the company, what were the mistakes I made that led to its collapse and what are the learnings I got from it.