Blog.init();


A technical blog on Computer Science and Software Development topics by Tomás Pérez.


  1. Unit testing capabilities using advanced ES6 features

    Unit testing is a fundamental part of any development process. It’s a key tool that helps us to scale and balance maintainability and extensibility in large and diverse code repositories. The challenge: legacy components Ideally unit tests are contained and easy to write, and you can apply TDD because…

    on javascript, es2015

  2. Transparent symmetric encryption with Vim

    Transparent symmetric encryption allows you to edit text files that will be automatically encrypted on writing and decrypted on reading. There are 2 different methods for enabling this with the Vim editor: the first one relies on the native encryption support included by default and the second one is based…

    on security, vim, encryption, gpg

  3. Cross-Site Tracing (XST) attacks

    A common pattern in Cross Site Scripting attacks requires to access to a victim's document.cookie object in order to hijack their session information. A common countermeasure is to tag the cookies that store session data as HttpOnly so they can be read only by the server side of the…

    on javascript, security

  4. Maps in Harmony

    In old-school Javascript key/value storages can be defined using simple objects {}, however performance wise have some drawbacks compared to the new data structures present in Harmony: Maps and Sets. The Map object is a simple key/value map, any value (objects or primitives) can be used as either a…

    on javascript, data structures

  5. Android and JS through addJavascriptInterface

    In the Android world, the object WebView provides a way to display embedded webpages in your mobile application, without needing to launch the external browser. It uses internally the WebKit rendering engine and provides several useful methods that you can use to control the interaction. Including a method to expose…

    on javascript, android, security, mobile