<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Lets Populate - Medium]]></title>
        <description><![CDATA[Tools for civic engagement - Medium]]></description>
        <link>https://medium.com/lets-populate?source=rss----d79843990dde---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Lets Populate - Medium</title>
            <link>https://medium.com/lets-populate?source=rss----d79843990dde---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:37:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/lets-populate" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Developing a website in Wordpress in 2018]]></title>
            <link>https://medium.com/lets-populate/developing-a-website-in-wordpress-in-2018-1c44bc2dd17b?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/1c44bc2dd17b</guid>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[populate]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Fernando Blat]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 07:31:27 GMT</pubDate>
            <atom:updated>2018-10-05T09:36:25.433Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developing a website in Wordpress in 2018, the icij.org case</h3><p><em>WordPress powers the 26% of the Internet webpages. It has been around for years, with a big company and community supporting the development of the core and the ecosystem.</em></p><p>At <a href="https://populate.tools/">Populate</a> we have designed and implemented the new website of the <a href="https://www.icij.org/">ICIJ</a>. They wanted to migrate to a modern and simpler publication experience which allowed new ways of consuming the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTPJyMQTAH2iyyn3N8qxNQ.png" /><figcaption>icij.org has been our biggest project developed in Wordpress</figcaption></figure><p>This project was a real challenge for us, including the technical aspects, as we are Ruby on Rails experts, and developing such an important project in an unknown technology was something unexpected, with lots of unkowns and, why don’t recognize it, many risks.</p><p>Thankfully Wordpress and PHP ecosystem has changed a lot, there are many modern new tools to develop and release Wordpress sites like a pro, with things like versioned dependencies, Laravel, Blade template language, MVC, partials or Ansible integration.</p><h3>Roots: the game changer</h3><p><a href="https://roots.io/">Roots</a> is a web development studio that provides open-source tools to develop websites in Wordpress with a modern workflow. They also have very useful plugins, screencasts and books to learn how to use their tools. You should also signup to their monthly newsletter, with good curated information of the Wordpress ecosystem. The three tools that simplify your life as a Wordpress developer we are going to describe are: <strong>Bedrock</strong>, <strong>Trellis</strong> and <strong>Sage</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLK3aHd29jT2_drGTBJ21g.png" /><figcaption>roots.io products</figcaption></figure><h4>Bedrock</h4><p><a href="https://roots.io/bedrock/">Bedrock</a> is a boilerplate that organizes a Wordpress site in a modern way. Provides <strong>separation of the Wordpress vendorized code</strong> from your own application code in a set of well structured folders, introduces Composer, execution environments, environment variables, and many other good and modern patterns present in web frameworks such as Ruby on Rails.</p><p><a href="https://getcomposer.org/">Composer</a> is a dependency manager for PHP. Apart from PHP packages, you can use it to manage Wordpress sourcode and Wordpress plugins via <a href="https://wpackagist.org/">WordPress Packagist</a>. It allows you to have total control of what packages and versions are installed in the server, and <strong>you don’t need to provide write access to the uploads folder</strong> (one of the main security concerns when using Wordpress).</p><h4>Trellis</h4><p><a href="https://roots.io/trellis/">Trellis</a> is a set of Ansible playbooks and roles to provision Wordpress servers for development, stage and production phases. It integrates totally with Bedrock way of organizing things.</p><p>It also provides a complete role to deploy the website, which can be easily extended via hooks. In our case we had to do a few things like compile the assets using Webpack, and enabling this functionality was just adding a task to the corresponding hook.</p><h4>Sage</h4><p><a href="https://roots.io/sage/">Sage</a> is a modern theme developed by Roots (stable version is <a href="https://github.com/roots/sage/tree/9.0.5">9.0.5</a>), it introduces <a href="https://laravel.com/">Laravel</a> PHP framework as the engine to your Wordpress theme, which implies:</p><ul><li>logic and presentation separation thanks to controllers, layouts, views and partials</li><li>support <a href="https://laravel.com/docs/5.3/blade">Laravel Blade</a> templating language, very similar to Liquid or Mustache</li><li>support modern frontend development tools such as ES6, Webpack, Bootstrap and Foundation</li></ul><h3>Choosing a stack</h3><p>With this set of tools we could focus on choosing a modern stack and creating an agile workflow to release small and frequent iterations of the website code.</p><h4><strong>Creating the theme</strong></h4><p>The site is basically a Wordpress theme based in Sage 9. We picked Laravel + Blade templates to build the controllers and the views and ES6 + Webpack + Vue.js to build the frontend components.</p><p>Sage comes with very good defaults, and the provided controllers and views are flexible enough to implement a basic theme and to be extended very easily. Controllers defined remember to the default pages in a common Wordpress theme: home, page, single, single article, single post…</p><p>For each controller class exists an associated template. Templates are divided also in layouts, views and partials:</p><ul><li>the layout of the application contains the common skeleton and structure of the pages. By default there’s just a single layout which just includes partials and calls the yield method, but new layouts can be defined to fit your application requirements</li><li>the views are just blade templates that will be <em>inserted </em>in the layout. Each controller exposes <em>instance variables</em> that are available in the template.</li><li>partials are snippets of templates that can be inserted and reused across the whole site. They accept local variables as arguments.</li></ul><h4><strong>functions.php</strong></h4><p>This file deserves special attention. Those who already known Wordpress will be familiar with this file. <strong>functions.php</strong> is a special file in Wordpress where themes can interact with Wordpress internals, such as <a href="https://codex.wordpress.org/The_Loop">the The Loop,</a> filters or rendering callbacks.</p><p>Once we have finished the project we can see that this file contains a few customizations that can’t be added in other parts of the project, Wordpress is not yet designed to implement customizations in a different way than this.</p><p>Good thing is that any special behaviour can be located in that file. Bad thing is that the file is more than 600 lines, and despite well structured code and comments, things can be a bit confusing.</p><h4><strong>Introducing projects entity</strong></h4><p>Just to demonstrate how flexible Sage is, we are going to describe how we introduced the entity <strong>projects </strong>in the theme.</p><p>In the ICIJ, every article is writen as part of an investigation. We named the investigations projects. Projects are a custom post type with special attributes created with <a href="https://www.advancedcustomfields.com/">Advanced Custom Fields</a>.</p><p>In functions.php we had to:</p><ul><li>rewrite the URLs to the new structure <em>/investigations/{investigation name}/(pages|articles)/{slug}</em></li><li>add a filter to fetch the investigation from the URL parameter and search the article inside that investigation pool</li><li>implement a new project controller to implement the home of an investigation together with a Blad template</li><li>amend posts controller to obtain more articles from the current investigation in a new method</li></ul><h4><strong>Project deployment</strong></h4><p>To start building the theme we had to setup a development environment. The idea behind Trellis and Ansible is to use the same roles for development, staging and production, so it comes with these three environments defined.</p><p>When you run development environment in your computer, you’ll be creating a <a href="https://www.vagrantup.com/">Vagrant</a> instance running Ubuntu. Internally it will install php, nginx, node.js, postgres or mysql and the rest of dependencies automatically. It won’t be any different with the staging or production environment except the domains, and the SSL certificates.</p><p>A good thing from Trellis is that roles will be part of the project code, and although they will work with the defaults you’ll be able to define and re-define small pieces, such as variables and settings.</p><p>We had also to define how the inventory of remote servers was obtained, due to the elastic nature of the production environment. Thankfully Ansible is very flexible and it can obtain the servers even from a remote JSON API.</p><p>Together with the provisioning roles there’s a deployment role implemented using <a href="https://github.com/ansistrano">Ansistrano</a> that can be executed in any environment and will run dependencies and update the code. It also offers rollback capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*VQndN4-x6nZ0QbhCRQjgww.png" /><figcaption>icij.org language distribution provided by Github</figcaption></figure><h3><strong>Conclusion</strong></h3><p>This post is a quick overview of Roots tools to build Wordpress sites in a modern way. Many concepts and good practices from other frameworks have been applied to make the development experience nice and robust:</p><ul><li>Bedrock organizes Wordpress code in a way that developers deal with Wordpress as an external dependency that can be updated without affecting your themes.</li><li>Sage changes Wordpress theme development process, and provides MVC code organization, with Laravel and Blade, and introduces a modern frontend stack with ES6 and Webpack.</li><li>Trellis simplifies the creation, configuration and deployment of the different environments of the site, using Ansible and Ansistrano roles</li></ul><p>Check out the resulting website at <a href="https://icij.org/">icij.org</a> — and be sure to think about donating to this real world-changing project.</p><p><a href="http://populate.tools/"><em>Populate</em></a><em> is a digital studio around civic engagement with base in Madrid, Spain. We work with organizations like ICIJ and the Barcelona City Council to help them design and build digital products. Learn more about the projects we do at </em><a href="https://populate.tools/"><em>populate.tools</em></a><em> and check out </em><a href="http://medium.com/lets-populate"><em>Medium stories</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c44bc2dd17b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/developing-a-website-in-wordpress-in-2018-1c44bc2dd17b">Developing a website in Wordpress in 2018</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CKAN: Automating deploys]]></title>
            <link>https://medium.com/lets-populate/ckan-automating-deploys-ede420ec2074?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/ede420ec2074</guid>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[ckan]]></category>
            <dc:creator><![CDATA[Alberto Miedes]]></dc:creator>
            <pubDate>Fri, 13 Apr 2018 07:39:01 GMT</pubDate>
            <atom:updated>2018-04-13T07:39:00.879Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://populate.tools/"><em>Populate</em></a><em> is a digital studio around civic engagement with base in Madrid, Spain. We work with organizations like ICIJ and the Barcelona City Council to help them design and build digital products. In this post we explain a tool to automate the deploy of CKAN and custom extensions.</em></p><p>Recently we built a custom <a href="https://ckan.org/">CKAN</a> installation for a client. CKAN is the most popular tool for building Open Data portals, and <a href="https://github.com/ckan/ckan">it’s open source</a>! Although it comes with lots of functionalities out of the box we needed to develop some custom features.</p><p>For this, we created several CKAN extensions for each of the functionalities: <em>Single sign-on</em>, a custom UI theme, an extended taxonomy for classifying the different datasets, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxdWtuQf-Y_iQu-FoDafbA.png" /><figcaption>data.gov.uk is a famous CKAN-based portal</figcaption></figure><p>CKAN already has <a href="http://extensions.ckan.org/">lots of open source extensions</a>, and the process for creating and installing them <a href="http://docs.ckan.org/en/ckan-2.7.3/extensions/">is well documented</a>. But it lacked something we needed: <strong>an automated way of deploying these extensions</strong> to our <em>staging</em> and <em>production</em> environments.</p><p>The fact that we were deploying these extensions at the same time we were building them raised some issues that made clear that we needed:</p><ul><li><strong>An automated way of doing deploys</strong> to each of the environments.</li><li><strong>A mechanism to isolate the dependencies</strong> of each one of the releases.</li><li>A way of <strong>doing a rollback of the last deploy</strong>, in case we broke something.</li><li>Doing some minor changes in the CKAN core files, without forking CKAN.</li></ul><p>CKAN is written in Python, so we missed a tool like <a href="http://capistranorb.com/">Capistrano</a> for these tasks. After some research, and given that we were already familiar with <a href="https://www.ansible.com/">Ansible</a> and following the inspiration of <a href="https://github.com/ansistrano">Ansistrano</a>, we decided to develop <a href="https://github.com/PopulateTools/ckanext-ansible-workflow">a set Ansible playbooks</a> that allowed us to do these tasks.</p><h4>What the tool does</h4><p>The playbooks make use of three main tasks:</p><ol><li><em>first_deploy.yml </em>— It’s meant to be run just the first time (although you won’t break anything if you run it again), and sets the folder structure in the server to make it ready for the next deploys.</li><li><em>deploy.yml</em> — Creates a new directory in the server to contain a new release, clones and installs all the extensions, updates the symlink that points to the current release and restarts the server service.</li><li><em>rollback.yml</em> — Reverts the last deploy.</li></ol><h4><strong>How do we accomplish this</strong></h4><p>In a standard CKAN installation you create a <a href="https://virtualenv.pypa.io/en/stable/">virtualenv</a> (a directory that encapsulates Python dependencies) in the <strong>/usr/lib/ckan/default</strong> directory. In our case <strong>default</strong> is not the virtualenv itself but a symlink to the virtualenv that represents the current release:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*-gADJ_gwgQJWlGbj6q3HvQ.png" /></figure><p>In case you’re wondering, <strong>deploy_base_venv </strong>is a virtualenv that just contains the CKAN core files with all its dependencies installed. We use this as the starting point for each of the releases, so we don’t have to clone CKAN again and install all the dependencies (which would slow down the deploy considerably).</p><p>The <strong>releases </strong>directory contains a timestamped directory for each of the previous releases, just like it’s done in a typical Ruby on Rails application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*g5RG5n70isapohSacQJuwg.png" /></figure><p>Each time a new release is created, all the extensions are cloned inside the <strong>src</strong> directory of the release virtualenv:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*5OASC1RD3S4T4NultCM0ow.png" /></figure><h4>The code</h4><p>Because we found the tool very useful and we think we’re not the only ones who have been in this situation, we decided to publish the code in the following repository:</p><p><a href="https://github.com/PopulateTools/ckanext-ansible-workflow">PopulateTools/ckanext-ansible-workflow</a></p><p>We hope this helps you!</p><p>—</p><p>Populate provides commercial design and technology services around open data and civic engagement. <a href="http://populate.tools/">Learn more</a> and <a href="http://lets@populate.tools/">get in touch</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ede420ec2074" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/ckan-automating-deploys-ede420ec2074">CKAN: Automating deploys</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cómo introducirte en el mundo del open source si eres estudiante (y ganar puntos para conseguir tu…]]></title>
            <link>https://medium.com/lets-populate/c%C3%B3mo-introducirte-en-el-mundo-del-open-source-si-eres-estudiante-y-ganar-puntos-para-conseguir-tu-1029c4d39fc7?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/1029c4d39fc7</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[university]]></category>
            <dc:creator><![CDATA[Alberto Miedes]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 08:13:29 GMT</pubDate>
            <atom:updated>2018-04-04T17:59:26.876Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cómo introducirte en el mundo del open source si eres estudiante (y ganar puntos para conseguir tu primer trabajo)</h3><p>Soy Alberto Miedes, y durante los cursos 2012–2017 estudié Ingeniería de Computadores en la Universidad Complutense de Madrid. Durante mi último año de carrera (y como parte de mi Trabajo de Fin de Grado) realicé varias aportaciones al código de <a href="https://decide.madrid.es/">Decide Madrid</a>, alojado en GitHub en el repositorio de <a href="https://github.com/consul/consul">consul</a>.</p><p>Gracias a esto desarrollé cierta soltura con este tipo de contribuciones, que me llevaron a hacer alguna aportación discreta a otros proyectos y que acabaron derivando en lo que es actualmente mi primer trabajo como desarrollador en <a href="http://populate.tools/">Populate</a>.</p><p>Aunque con los conocimientos que se tienen al acabar la universidad es difícil hacer una contribución de cierta envergadura a un proyecto, <strong>es fácil hacer aportaciones sencillas que vienen muy bien para familiarizarte con las herramientas que se utilizan fuera de la universidad</strong> <strong>y</strong> (con suerte) <strong>llamar la atención de los mantenedores del repositorio.</strong></p><p>Contribuir a un proyecto open source en tu tiempo libre supone un esfuerzo importante, pues implica que tienes que compatibilizarlo con el resto de tus obligaciones. En mi caso, el último año de carrera tenía únicamente el Trabajo de Fin de Grado pendiente, así que tuve más tiempo libre. Pero como no es lo habitual, me gustaría compartir algunos trucos para poder hacer alguna contribución puntual sin necesidad de invertir grandes cantidades de tiempo.</p><p><strong>Siempre da respeto enviar una contribución a un repositorio ajeno</strong>, pero si eres estudiante, llevas poco tiempo programando, o es la primera vez que decides hacerlo todavía puede resultar más intimidante.</p><p>En este post voy a contar algunos trucos que me han servido a mi para encontrar posibles puntos de contribución.</p><h4><strong>Busca tareas catalogadas como “sencillas”</strong></h4><p>Un primer paso sería buscar aquellas issues marcadas con labels tipo <em>good-first-issue, good-for-contribution</em> o algo del estilo. Por ejemplo, <strong>en el repositorio </strong><a href="https://github.com/publiclab/plots2/issues?q=is%3Aissue+is%3Aopen+label%3Afirst-timers-only"><strong>publiclab/plots2</strong></a><strong> reservan las issues con el label <em>first-timers-only</em> para aquellas personas que no han contribuido nunca</strong> a dicho repositorio (y que incluso puede ser su primera contribución a un proyecto open source). En estas issues prestan especial atención a la hora de redactar cuál es el problema e incluso proponen una solución tentativa y los pasos que habría que seguir para resolverla.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLRMHyfotMqN_FyqF6GMlg.png" /><figcaption>Ejemplo de issues marcadas para principiantes</figcaption></figure><p>No obstante no siempre vamos a encontrar este tipo de issues. Como en estos casos puede ser un poco abrumador encontrar un punto de la aplicación al que empezar a hincarle el diente, espero que los siguientes trucos te sirvan para encontrar posibles puntos de la aplicación que puedes mejorar.</p><h4>Arreglar typos (pequeñas faltas de ortografía)</h4><p>Es una de las más inmediatas, y por ese mismo motivo a mi a veces me daba vergüenza enviar una pull request para arreglarlos. No obstante arreglar un typo requiere bastantes más pasos de lo que puede parecer en un principio:</p><ol><li>Aprender los fundamentos de <a href="https://git-scm.com/">Git</a>. Si no lo has utilizado nunca, te recomiendo los tres primeros capítulos de <a href="https://git-scm.com/book/en/v2">este libro</a>.</li><li>Hacer un fork del repositorio y clonarlo. Si tienes dudas sobre este punto échale un vistazo a <a href="https://frontendlabs.io/3266--que-es-hacer-fork-repositorio-y-como-hacer-un-fork-github">este artículo</a>.</li><li>Modificar el archivo en cuestión y hacer un commit</li><li>Abrir una <a href="https://desarrolloweb.com/articulos/pull-request-git.html">pull request</a></li><li>Responder al feedback (si lo hay) y hacer los cambios oportunos para que te la mergeen.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*9ADk3J742nfYhWsSKf1LjA.png" /><figcaption>Muchas veces este tipo de commit son por typos ✍️</figcaption></figure><p>No obstante, este tipo de PRs son una buena forma de establecer un primer contacto con los <em>maintainers</em> del repositorio, ver si están pendientes de las contribuciones, si las mergean… Puedes verlo como una especie de <em>ping</em>.</p><h4><strong>Mejorar la documentación del setup</strong></h4><p>Son pocos los proyectos y librerías que tienen una documentación lo suficientemente completa. Además, está el factor de que “completa” en este caso es algo muy subjetivo. Como estudiante de la carrera a menudo me veía en situaciones en las que echaba en falta indicaciones adicionales en la documentación, no porque la documentación estuviese mal, sino porque hay muchos detalles que pueden ser obviados para gente con más experiencia. Alguien que haya trabajado con herramientas muy similares sería capaz de poner un proyecto en funcionamiento sin documentación, alguien con experiencia no necesariamente en las mismas herramientas podrían intuir muchos de los pasos o depurar los posibles problemas.</p><p>Esto puede ser un obstáculo importante a la hora de contribuir a un proyecto, pero es al mismo tiempo una oportunidad.</p><p>Por ejemplo, cuando empecé a hacer mis primeras contribuciones a <a href="https://github.com/consul/consul">consul</a>, recuerdo que tuve muchos problemas a la hora de instalar PostgreSQL. Hasta ese momento había instalado la mayoría de los paquetes haciendo doble click y no había tenido que pensar demasiado acerca de los directorios de instalación, los distintos binarios instalados etc.</p><p>La primera vez que lo intenté, estuve varias horas intentándolo sin éxito. Además cuando empiezas a <em>guarrear</em> instalando y desinstalando paquetes que no conoces es fácil acabar dejando restos de anteriores instalaciones que acaban en conflicto. Al final decidí dejarlo estar y retomarlo al día siguiente con mas calma.</p><p>Lo que hice fue eliminar todo lo que había instalado el día anterior, y a partir de allí ir apuntando en un documento todos los pasos que seguía, prestando atención también a como podía deshacerlos en el caso de que en algún paso posterior metiese la pata (que de hecho es una estrategia muy útil para cuando te toque escribir la documentación de un proyecto). Tras varios intentos lo conseguí, y esas notas se perdieron en una oscura esquina de mi disco duro…</p><p>Una de las cosas que estoy interiorizando desde que empecé a trabajar es que las mismas dudas y problemas que has tenido tu, las ha tenido ya antes otra persona en el pasado. Y cuando no es el caso, alguien las tendrá en el futuro.</p><p>Digo esto porque varios meses mas tarde, alguien abrió una <a href="https://github.com/consul/consul/issues/1209">nueva issue</a> en consul en relación a la documentación del proyecto. En ese momento hubo un pequeño debate en la issue en el que “me di cuenta” de que tenía sentido utilizar aquellas notas que había tomado en su día para mejorar la documentación, y me animé a hacer la que fue <a href="https://github.com/consul/consul/pull/1217">mi primera PR mergeada en consul</a> y mi primera aportación un proyecto no personal.</p><p>Así que la próxima vez que estés teniendo alguna dificultad a la hora de montar algún proyecto en local, aprovecha para tomar notas y con un poco de esfuerzo adicional puedes mandar una PR con tus aclaraciones. Yo seguí este truco con <a href="https://github.com/consul/consul">Consul</a> y <a href="https://github.com/PopulateTools/gobierto">Gobierto</a> y ambas fueron bienvenidas 😃</p><h4><strong>Mejorar la cobertura de código</strong></h4><blockquote>Este truco es un poco más avanzado, pues requiere cierto dominio de técnicas de testing y de integración continua. Si buscas un primer punto de partida para aprender sobre testing de aplicaciones échale un vistazo <a href="https://vimeo.com/157427268">esta charla</a> de <a href="https://medium.com/u/b9747b7db59c">Enrique Garcia Cota</a> y al libro <a href="https://pragprog.com/book/jrtest/the-way-of-the-web-tester">The Way of The Web Tester</a>, que es de lectura fácil y no demasiado técnico.</blockquote><p>Muchos proyectos open source tienen configurada algún tipo de herramienta que reporta el porcentaje de cobertura del código, es decir, el porcentaje de líneas de la aplicación que son ejecutadas al menos una vez al correr la suite de tests.</p><p>Esta me gusta especialmente por los siguientes motivos:</p><ul><li>Es posible que te resulte más satisfactorio que escribir documentación, pero no requiere modificar el comportamiento de la aplicación, así que (en principio) es difícil romper algo.</li><li>Puedes trabajar en ámbitos acotados del código (un método cortito, una clase que veas que es conceptualmente fácil de entender), así que no te sentirás tan desbordado como si tuvieses que pensar en los efectos colaterales que tiene lo que estás haciendo en otras partes de la aplicación.</li></ul><p>Por ejemplo en Gobierto usamos <a href="https://codecov.io/">Codecov</a> (podéis verlo <a href="https://codecov.io/gh/PopulateTools/gobierto">aquí</a>). Examinando estos informes es posible encontrar métodos que no estén testeados.</p><p>Por ejemplo en el caso del código de Gobierto he elegido <a href="https://codecov.io/gh/PopulateTools/gobierto/src/master/app/models/gobierto_participation/process_stage.rb">este método</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*BRxeNL5F7_eNiIjh4gS4Pw.png" /><figcaption>Las líneas en rojo no son ejecutadas por ningún test</figcaption></figure><p>A veces, la primera vez que se escribe un método es muy sencillo y se deja sin testear (mea culpa en este caso 😅), pero a medida que este se va modificando y complicando es fácil que el comportamiento esperado deje de ser trivial. En este caso era un método que incialmente solo comprobaba la fecha de publicación para comprobar si un determinado objeto era “pasado”.</p><p>Además, hay código comentado, y eso es un indicativo de que el comportamiento de lo que debía hacer el método no estaba del todo claro. Una manera muy buena de resolver estas ambigüedades sería escribir los tests correspondientes. Y que en los métodos tan cortitos suele ser muy sencillo (pero no por ello menos útiles).</p><h4><strong>Y para los que nos gusta hacer trampas… Rubocop!</strong></h4><p>Ir mirando todos los ficheros de un repositorio uno por uno con la esperanza de encontrar algún fleco que pulir es una tarea un poco ardua, así que un truco es utilizar herramientas como <a href="https://github.com/bbatsov/rubocop">Rubocop</a>, que te permiten detectar despistes como un <a href="https://github.com/PopulateTools/gobierto/pull/368">método duplicados u obsoletos</a> hasta secciones de código excesivamente complejas, que pueden ser buenas oportunidades para refactorizar o escribir de una forma más clara.</p><p>Una opción especialmente interesante de Rubocop para encontrar oportunidades de refactorización es esta:</p><pre>rubocop --only Metrics</pre><p>Que entre otras cosas es capaz de detectar los métodos excesivamente largos o complejos. Entre las distintas líneas de la salida podemos ver:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJexGoFgmeAVwT1doIR07Q.png" /></figure><p>Si buscamos el código del método en cuestión, es fácil ver que es un buen candidato para ser refactorizado:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daf6916036327f3b494ce4f92a542a05/href">https://medium.com/media/daf6916036327f3b494ce4f92a542a05/href</a></iframe><h4><strong>Conclusiones</strong></h4><p>Aunque cuando estás sumergido en el frenesí de la carrera es difícil encontrar un hueco para hacer este tipo de cosas, merece la pena intentar sacar un ratillo por los siguientes motivos:</p><ul><li>Empezarás a tomar contacto con el desarrollo en el mundo <em>real</em>. Desgraciadamente<strong> existe una brecha entre los conocimientos que se enseñan en la universidad y los que vas a utilizar a posteriori</strong>: no ya sólo en las herramientas que se utilizan (que no es tan importante) sino en la forma de trabajar, las consecuencias que tienen las decisiones que tomas, que detalles se pueden pasar por alto y cuáles no. Te darás cuenta de que <strong>no necesariamente lo que ha requerido más esfuerzo durante la universidad va a ser necesariamente lo más útil</strong>, y que cosas que ahora te gustaría saber en clase se dieron <em>“deprisa y corriendo”</em>. Esta verdad es <strong>dura</strong>, pero darte cuenta pronto te permitirá priorizar a qué asignaturas hay que dedicar el tiempo en la universidad, y en cuales no merece la pena desgastarse.</li><li>Mejorar tu fluidez escribiendo (para esto también te vale un blog). Las ideas en la cabeza siempre están muy claras hasta que llega el momento de tener que escribirlas.</li><li>Aprenderás a interactuar con otros desarrolladores, a recibir y dar feedback a otras personas, y a justificar las decisiones que has tomado ante un tercero.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1029c4d39fc7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/c%C3%B3mo-introducirte-en-el-mundo-del-open-source-si-eres-estudiante-y-ganar-puntos-para-conseguir-tu-1029c4d39fc7">Cómo introducirte en el mundo del open source si eres estudiante (y ganar puntos para conseguir tu…</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Populate helps Barcelona to visualize and track progress of its city plan]]></title>
            <link>https://medium.com/lets-populate/populate-helps-barcelona-to-visualize-and-track-progress-of-its-city-plan-b4a72b1f28e?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/b4a72b1f28e</guid>
            <category><![CDATA[barcelona]]></category>
            <category><![CDATA[transparency]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[open-government]]></category>
            <dc:creator><![CDATA[Álvaro Ortiz]]></dc:creator>
            <pubDate>Wed, 14 Mar 2018 10:23:52 GMT</pubDate>
            <atom:updated>2018-03-14T10:31:11.803Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://populate.tools/"><em>Populate</em></a><em> is a digital studio around civic engagement with base in Madrid, Spain. We work with organizations like ICIJ and the Barcelona City Council to help them design and build digital products. In this post we explain the project we did for the City of Barcelona around their city plan.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ei3CqZNin3oURe80fryYVg.png" /></figure><p>Can you imagine a government that tracks the implementation of their electoral program? This seems a no brainer, but we all know that political messages and action pivot around distant realities.</p><p>In Catalunya the regional legislation forces city councils to do something very similar. When a mandate starts they have to create, <em>and share</em>, the plan of projects they will carry out through the 4 year tenure. And not only share it, but also to update it along the mandate.</p><p>2016 brought to Barcelona a new city government that went even further: not only were they going to publish their city plan (PAM in its spanish acronym, from <em>Plan de Actuación Municipal</em>), but they were going to create it collaboratively through their brand new participation platform: <a href="https://www.decidim.barcelona/processes/pam?locale=es">Decidim Barcelona</a> (check out the <a href="https://www.decidim.barcelona/processes/pam/f/27/dataviz/summary?locale=es">visual recap of the process</a>).</p><h4>PAM evolution and updates</h4><p>Once they have reached the half-term, they have just published how the projects of the city plan are evolving. Internally, the city council has a cloud application that enables hundreds of city workers to update on the progress of their projects. This info is then synced with Decidim, the participation software.</p><p>At Populate we have designed and built the <em>accountability</em> module that enables to publish how results from participation processes are being implemented. <a href="https://www.decidim.barcelona/processes/pam/f/8/?locale=es">You can browse the city plan and its progress information in Decidim</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrVt3NRpB-PiwH1RioYCzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDQ6Eu0q9XUfIxK92nWu_Q.png" /></figure><h4>Decidim Barcelona and Populate</h4><p>Decidim is the <a href="http://github.com/decidim/">open source participation software</a> that the Barcelona City Council is building. It is an impressive example of how <strong>modern software should be developed in a public administration</strong>: open source, collaboratively and distributed, with coordination between various administrations, with an open and shared governance rules, with an ethics and social contract…</p><p>And with a procurement process that takes into account small and agile companies and even freelances. Populate is the designer for Decidim for 2018. <a href="http://gobierto.es/blog/20180123-decidim-diseno-populate.html">More about this in our spanish blog</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*ayyZiXuqLGCfn3filQm9Lw.png" /></figure><h4>Other Populate projects</h4><p>At <a href="http://populate.tools/">Populate</a> we are also <a href="https://medium.com/lets-populate/gobierto-the-open-government-platform-a00406428004">building Gobierto, an open government open source platform</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4a72b1f28e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/populate-helps-barcelona-to-visualize-and-track-progress-of-its-city-plan-b4a72b1f28e">Populate helps Barcelona to visualize and track progress of its city plan</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gobierto, the open government platform]]></title>
            <link>https://medium.com/lets-populate/gobierto-the-open-government-platform-a00406428004?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/a00406428004</guid>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[civic-engagement]]></category>
            <dc:creator><![CDATA[Álvaro Ortiz]]></dc:creator>
            <pubDate>Tue, 13 Mar 2018 09:32:21 GMT</pubDate>
            <atom:updated>2018-03-14T10:33:15.840Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua6Y4L511YD_qqJStpzYYA.png" /></figure><p><a href="http://populate.tools/"><em>Populate</em></a><em> is a digital studio around civic engagement with base in Madrid, Spain. We work with organizations like ICIJ and the Barcelona City Council to help them design and build digital products.</em></p><p><em>In this post we explain why and how we are building Gobierto, an open government platform to efficiently set up transparency and participation initiatives.</em></p><h3><strong>Motivation</strong></h3><p>Soon we’ll celebrate the 10th anniversary of <a href="https://obamawhitehouse.archives.gov/open/documents/open-government-directive">Obama’s Open Government Directive</a>, which kickstarted a new wave of global enthusiasm around public transparency and participation, giving concrete guidance on how to implement these kinds of initiatives.</p><p><strong>The open government landscape</strong> has slowly evolved in the last decade. Basic ideas remain the same; many initiatives have been set up (although with limited reach); public demand for transparency and participation have seen no radical increase; different organizations and activist groups continue doing advocacy work.</p><p><strong>In Spain, the Transparency Law enacted in 2013</strong> (making us one of the last countries in Europe to have one) forced public organizations to set up transparency portals; proactively publish economic, organizational and operational information; and created rules around the right of access to public information.</p><p><strong>On a practical level</strong> we have seen how different government organizations, from local to national, have been setting up open government initiatives. Various implementation strategies have been observed, but a common one is to launch specific portals for specific issues. This a quick way to starting things but with other medium-term drawbacks.</p><p><strong>Organizations end up with a myriad of portals</strong> (the main one, the transparency portal, e-services, budget visualization, participation, etc), costly to build and maintain, and with hidden costs in terms of the quality of the user experience: portals do not share completely common design and navigation patterns, reducing discoverability, usability and a sense of coherence in the messages of the public administration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sn_pCBCox-pFhuoAKH1hhg.png" /></figure><h3><strong>A common platform</strong></h3><p>So we set up to build an open-government platform that would allow an organization to have all their transparency and participation needs under the same roof. We are building a modular platform with shared horizontal infrastructure (content management, design and navigation, user notifications, APIs…) that allows building vertical applications to serve specific issues.</p><p>So far, Gobierto provides these tools:</p><ul><li>Budget visualization</li><li>People and agendas</li><li>Stats observatory</li><li>Plans</li><li>Participation</li><li>Budget consultations</li><li>CRM: notifications and newsletters</li></ul><p>We also have created the Budget Comparator: a data exploration and analysis tool that enables users to compare the budget of equivalent entities (ie. you can explore the budgets of the +8.000 spanish municipalities here: <a href="http://presupuestos.gobierto.es/">presupuestos.gobierto.es</a>)</p><h3>Modules</h3><h4>Budget visualization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rDFqK7cb6NdD10V1FY9nw.png" /><figcaption>Gobierto Budgets for Mataró (Spain) — see live at pressupost.mataro.cat</figcaption></figure><p>Allows to visualize the budget of an organization, its execution, a simulation of citizen share to the budget based on their properties, and an overview of invoices received by the organization:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp761QmxyfAY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp761QmxyfAY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp761QmxyfAY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c831b867ba119ed19017cc4bccf8463/href">https://medium.com/media/2c831b867ba119ed19017cc4bccf8463/href</a></iframe><p>We connect with client data (through their open data portals or via custom ETLs) to extract data and update Gobierto automatically.</p><p>Check an example at <a href="http://pressupost.mataro.cat/">pressupost.mataro.cat</a></p><h4>People and agendas</h4><p>Allows to visualize the organizational chart, showing the different profiles, and providing information for each (CV, bio, activities declarations, etc). Also, it allows to publish their agendas, directly from the native calendar system they use (Outlook, IBM Notes, Google Calendar…).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLIKSD5c2hlg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLIKSD5c2hlg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLIKSD5c2hlg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2dc70a426daec9e415fb3b40f1b1e4d/href">https://medium.com/media/c2dc70a426daec9e415fb3b40f1b1e4d/href</a></iframe><p>Check an example at <a href="http://altoscargos.go.dival.es/">altoscargos.go.dival.es</a></p><h4>Stats observatory</h4><p>Allows to understand the organization through its main metrics: economy, employment, taxes, demography… In case of spanish municipalities, we already have tens of indicators compiled.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnzKvoI1xLXA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnzKvoI1xLXA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnzKvoI1xLXA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f884e6ccc7b827653412aa1e3503e8c/href">https://medium.com/media/2f884e6ccc7b827653412aa1e3503e8c/href</a></iframe><p>Check an example at <a href="http://madrid.gobierto.es/">madrid.gobierto.es</a></p><h4>Plans</h4><p>Allows visualizing and keep track of progress of plans: strategic, government, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPXhxUph518OQcfm0JgmzA.png" /></figure><h4>Participation</h4><p>Our newest (and biggest!) module. A full feature participation tool to allow organizations to define participatory processes, launch polls, capture ideas and needs, publish docs, news and agendas… We are also taking the chance to experiment on how to rethink certain user interactions to increase engagement and making participation more appealing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGdKDEAxvlyWdFSgCPXTTg.png" /></figure><h4>Budget consultations</h4><p>A game to make citizens think about resource allocation in the budget. We confront them with the concepts of debt, deficit, budget balance… and make them choose ;)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWknA_nc73u8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWknA_nc73u8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWknA_nc73u8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/19c99ee5bf44b096dfb86390b2f7398c/href">https://medium.com/media/19c99ee5bf44b096dfb86390b2f7398c/href</a></iframe><h3>Gobierto infrastructure</h3><p>On top of these vertical modules, Gobierto allows you to publish content so you can set up a transparency portal with a standard hierarchical structure of sections, subsections and pages; upload documents and images; create agendas and news sections… Users can subscribe to content updates (so they can receive automatic updates and editorial newsletters).</p><p>Also, we already are multilanguage, both for interface texts and for created content.</p><h3>Clients</h3><p>During 2017 we have been working with several spanish public administrations, like municipalities, provinces, and regional governments to set up Gobierto. We have worked with places like <strong>Sant Feliu de Llobregat, Getafe, Mataró, Esplugues de Llobregat, Alcobendas, Diputación de Valencia, Generalitat de Catalunya</strong>… You can find several stories in our spanish blog: <a href="http://gobierto.es/temas/clientes/">gobierto.es/temas/clientes</a></p><h3>Services</h3><p>Apart from our Gobierto implementation services we (as <a href="http://populate.tools/">Populate</a>) also provide design and technology services around civic engagement. We have worked with the cities of <strong>Barcelona and Madrid</strong> to help them with the participation platforms; and worked with <strong>organizations like ICIJ</strong> to help them with their online presence (we have recently redesigned and migrated ICIJ.org, we built the Panama Papers microsite, the first version of the Offshore Leaks Database. Read here about how we created <a href="https://medium.com/lets-populate/how-we-did-continent-of-secrets-a-project-for-icij-supported-by-the-pulitzer-center-16870b86dd89">Continent of Secrets</a>, a game about Panama Papers and Africa).</p><h3>The future</h3><p>Starting up is the easy part. The challenge now is to keep improving modules, add new ones, onboard more organizations to use Gobierto and work with them so these kinds of initiatives have real and broader impact (the real difficult challenge ;)</p><p>Another module we’ll be developing in 2018 is Open Data: so you can have your open data portal integrated with the rest of Gobierto.</p><h3>Open source</h3><p>As it could not be other way, Gobierto is open source. You can check out our Github page: <a href="https://github.com/populatetools/gobierto/">https://github.com/populatetools/gobierto/</a> — We offer Gobierto both as a cloud solution or via on premises installation and deployment. And you can download, install, test it and provide feedback and contributions.</p><p>Further reading and seeing at our Gobierto blog (in spanish, for the moment ;) <a href="http://gobierto.es/blog">gobierto.es/blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a00406428004" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/gobierto-the-open-government-platform-a00406428004">Gobierto, the open government platform</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Populate will be speaking at T3chFest]]></title>
            <link>https://medium.com/lets-populate/populate-will-be-speaking-at-t3chfest-572e03306f48?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/572e03306f48</guid>
            <category><![CDATA[events]]></category>
            <category><![CDATA[populate]]></category>
            <category><![CDATA[civictech]]></category>
            <dc:creator><![CDATA[Fernando Blat]]></dc:creator>
            <pubDate>Mon, 22 Jan 2018 09:08:15 GMT</pubDate>
            <atom:updated>2018-01-22T12:05:57.703Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-E9PyZZ8ScvP9bgGuj0goA.jpeg" /><figcaption>T3chFest auditorium</figcaption></figure><p>The <a href="https://t3chfest.uc3m.es/2018/?lang=en">T3chFest</a> is a <em>free</em> technology event organized in the University Carlos III (Madrid, Spain) by their students during the 1st and the 2nd of March. Two days of talks, workshops, and hackathons where professionals and students meet each other.</p><p>Madrid development communities (Javascript, Python, Ruby, Devops, RLadies…) have been called to participate, resulting in a very diverse <a href="https://t3chfest.uc3m.es/2018/programa/">program</a> with topics such as bots, blockchain, opensource, artificial intelligence, data visualization, Javascript or GraphQL.</p><p>From <a href="http://populate.tools/">Populate</a>, we submitted a talk with the title “Working for the common good” that was accepted. Come to see us <a href="https://t3chfest.uc3m.es/2018/programa/">on Thursday after lunch</a>.</p><p><strong>“Working for the common good”</strong></p><p>We are a company founded a couple of years ago, and last year we managed to work only in civic tech related projects and be profitable to pay our salaries (we are 7 people right now).</p><p>With this talk we want to introduce the topics of <strong>civic tech</strong> and <strong>civic engagement</strong> and speak about transparency, data, data journalism, working with local administrations and ethics from our company point of view.</p><p>We also want to show the kind of projects we and others do to inspire the audience, to show new professional paths while you contribute to governments to be more transparent, to help citizens to be heard and improve the democracy, or to reveal an uncomfortable truth about tax havens.</p><p>And finally we want to highlight how <strong>ethics are becoming more and more important now that developers and engineers have the power</strong> to influence millions of people with the algorithms they program.</p><p><strong>Why is important to be in the T3chFest?</strong></p><p>We are really happy to be present in the sixth edition of the T3chFest. In 6 years they have managed to scale it from almost a local event to be one of the most important conferences in Spain, keeping it totally free thanks to their persistence looking for first level sponsors.</p><blockquote>We want they consider civic tech as a real professional opportunity</blockquote><p>For us it’s important to be here mainly because almost half of the assistants are students willing (and able) to learn and get inspired, and this is a great opportunity for them to connect with the real world they will face when they finish their grades. Apart from showing what’s civic engagement and the common well, we want they consider civic tech as a real professional opportunity.</p><p>If you haven’t considered assist to the <a href="https://t3chfest.uc3m.es/2018/?lang=en">T3chFest</a>, you should. It’s a great and diverse event that we are sure will accomplish your expectations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=572e03306f48" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/populate-will-be-speaking-at-t3chfest-572e03306f48">Populate will be speaking at T3chFest</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Populate 2016: A year in review]]></title>
            <link>https://medium.com/lets-populate/populate-2016-a-year-in-review-83ef2a2a631a?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/83ef2a2a631a</guid>
            <category><![CDATA[open-government]]></category>
            <category><![CDATA[panama-papers]]></category>
            <category><![CDATA[journalism]]></category>
            <dc:creator><![CDATA[Álvaro Ortiz]]></dc:creator>
            <pubDate>Sun, 08 Jan 2017 18:59:42 GMT</pubDate>
            <atom:updated>2017-01-08T19:57:35.271Z</atom:updated>
            <content:encoded><![CDATA[<p><em>[</em><a href="https://medium.com/lets-populate/populate-2016-nuestro-resumen-del-a%C3%B1o-d041727aead9?source=collection_home---4------1----------"><em>Spanish version</em></a><em>]</em> Populate started slowly in 2015. 2016 has been our first full year at full throttle. These are some of the things that happened: a simple reminder to our future selfs in a logbook style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*95i4lmZKUXrsbSRaqAatMQ.png" /><figcaption>Illustrations by Ajo Galván: <a href="http://ajogalvan.com/">ajogalvan.com</a></figcaption></figure><h3>Gobierto</h3><p>We started the year with our (Spanish) Municipal Budget Comparator: <a href="http://presupuestos.gobierto.es/">presupuestos.gobierto.es</a>. We converted an Access database published by the Spanish Treasury Ministry into a website to visualize and compare the budgets of the more than 8.000 spanish municipalities. We followed up with some analisys and visualizations around budget, debt… (in spanish: <a href="https://gobierto.es/blog/20160901-entendiendo-deuda-municipal.html">When your minicipality will finish to pay off all its debts?</a>, <a href="https://gobierto.es/blog/20160518-presupuesto_vs_ejecucion.html">Deviation analysis of budget and execution</a>… More in the <a href="http://gobierto.es/blog">Gobierto blog</a>)</p><p>Our vision with Gobierto is to create and open-source open government platform to make it as easy and cheap as possible for a public administration to provide useful transparency and participation. An ambitious vision, but we are not in a hurry. We have designed a simple economic structure supports it. In this 2016 we have layed the groundwork and we are already on the move. In addition to the <a href="https://gobierto.es/blog/20160914-madrid-gobierto.html">demo that can already be used</a>, the first projects using Gobierto will appear in early 2017.</p><p>It will take a long time to unfold this vision. See you in 10 years!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HZAI7QBbaInfdUrVsrevWw.png" /></figure><h3>Panama Papers</h3><p>During the first quarter of the year we worked hard on a project that we knew little about, and which we never imagined would have so much impact, and that would be the journalistic project of 2016 and who knows if of the decade: <a href="http://panamapapers.icij.org/">the Panama Papers</a>. We improved most of the metrics we set as objectives over the previous ICIJ website (okay, it was not difficult …), although we didn’t have time to implement many ideas we had. We specially did very good on the % of donations obtained; the dimension of the subject obviously helped.</p><p>After a Sunday night launch in which there were more than 25,000 active sessions in a matter of minutes according to Google Analytics’ Real Time, we again worked hard to create the web to explore the <a href="https://offshoreleaks.icij.org/">database</a>. Tens of millions of people have consulted directly both sites in 2016, with very considerable traffic peaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMw9ssqZf9zm8tmD5fbfAA.png" /></figure><p>In the summer we worked in another Panama Papers related project with the support of the Pulitzer Center: a game to understand the dimension and impact of tax evasion in Africa - <a href="https://africaoffshoregame.icij.org/">Continent of Secrets</a> (read <a href="http://pulitzercenter.org/reporting/how-we-did-it-behind-scenes-continent-secrets-game">How we did it</a> at the Pulitzer Center website).</p><h3>Office</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9niEZtr5BfxY7ntYRbBvQw.jpeg" /></figure><p>During 2015 we borrowed office space from our friends <a href="http://lostiumproject.com/">Lostium Project</a>. Earlier in 2016 we convinced them to move together. It was not easy but we found a beautiful and bright place. We can’t be happier. If you are <a href="https://www.google.es/maps/place/Populate/@40.432962,-3.714259,15z/data=!4m5!3m4!1s0x0:0xc53bd3349cdce326!8m2!3d40.432962!4d-3.714259">nearby</a> we invite you to coffee or beers, depending on the time of day.</p><h3>Populate Data</h3><p>The development of <a href="https://medium.com/lets-populate/espa%C3%B1a-en-cifras-a-data-journalism-project-by-populate-7481916b5d92#.fyjzi5hko">España en Cifras</a> confronted us with a problem: how to deal with more than 85 different data sources and build an application in record time (less than a month) that used them all. Working with the data structure of each dataset was not an option. So we built a small system to index any type of data and to have a common API. Our little experiment worked very well.</p><p>Since then, we’ve been iterating the system, polishing the API, adding more data… and we’ve used it internally for several projects. It is obvious that a similar tool would be very useful for other teams working with this type of data. One of our to-dos in 2017s is to launch Populate Data. If you are interested, <a href="http://lets@populate.tools/">write to us</a> and we will give you access to our testing service.</p><h3>Conferences and training</h3><p>We have given a few lectures, talks, courses … about data, transparency, participation… All of them in Spain. Lets hope 2017 take us abroad ;) We have been in Madrid, Salamanca, Barcelona, ​​Tenerife, Bilbao, Valencia … Some of them:</p><ul><li>UX Spain, Burgos</li><li>Databeers, Madrid</li><li>Experience Fighters, Madrid</li><li>Master of Data Journalism of Unidad Editorial, Madrid</li><li>Novagob, Tenerife</li><li>SEDIC Congress, Madrid</li><li>Rails Conference, Madrid</li><li>Creative Mornings, Madrid</li><li>Medialab-Prado Data Journalism Workshop, Madrid</li><li>Newspaper Journalism Data GO! Diputación de Valencia, Valencia</li><li>We’re still co-hosting the <a href="https://www.meetup.com/es-ES/Madrid-D3-js/">Madrid D3.js Meetup</a>, come on!</li></ul><h3>Projects that were not</h3><p>Like any company that does projects for third parties, we made a few proposals that finally did not come out. If you need help with your projects <a href="/service/mailto:lets@populate.tools">give us a call</a>.</p><h3>Team</h3><p>In the final stretch of the year three people have joined us: <a href="https://twitter.com/amaiac">Amaia</a>, <a href="https://twitter.com/rafadelascuevas">Rafa</a> and <a href="https://twitter.com/martgnz">Martín</a>, to help us build projects like the ones reviewed here. We have also worked with several collaborators: <a href="https://twitter.com/danguita">David</a>, <a href="https://twitter.com/jorgesancha?lang=es">Jorge</a>, <a href="https://twitter.com/gemaderus">Gema</a>…</p><h3>Pending</h3><p>As always many ideas have remained in our virtual inkwell in which we want to mix client projects with our own experiments and toys. In 2017 we will continue searching for the magic formula that allows us to combine it with agility and promise to share it if we find it ;)</p><h3>In addition… and for 2017</h3><p>In addition to these projects, we have done and we are doing a few more. News in the coming weeks.</p><p>Happy, prosperous and healthy 2017 to all.</p><p><a href="https://twitter.com/ferblape">Fernando</a> &amp; <a href="https://twitter.com/furilo">Álvaro</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ef2a2a631a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/populate-2016-a-year-in-review-83ef2a2a631a">Populate 2016: A year in review</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Populate 2016: Nuestro resumen del año]]></title>
            <link>https://medium.com/lets-populate/populate-2016-nuestro-resumen-del-a%C3%B1o-d041727aead9?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/d041727aead9</guid>
            <category><![CDATA[open-government]]></category>
            <category><![CDATA[populate]]></category>
            <category><![CDATA[transparencia]]></category>
            <dc:creator><![CDATA[Álvaro Ortiz]]></dc:creator>
            <pubDate>Thu, 29 Dec 2016 07:48:01 GMT</pubDate>
            <atom:updated>2017-01-08T19:57:08.239Z</atom:updated>
            <content:encoded><![CDATA[<p><em>[</em><a href="https://medium.com/lets-populate/populate-2016-a-year-in-review-83ef2a2a631a?source=collection_home---4------0----------"><em>English version</em></a><em>]</em> Populate comenzó a funcionar despacito a mediados de 2015. 2016 ha sido nuestro primer año completo y a toda marcha. Estas son algunas de las cosas que han pasado: un simple recordatorio para nuestros <em>yos</em> del futuro en plan <em>cuaderno de bitácora</em>…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*lgBbUbUh5naZEOrrgYPEMw.png" /><figcaption>Ilustraciones por Ajo Galván: <a href="http://ajogalvan.com/">ajogalvan.com</a></figcaption></figure><h3>Gobierto</h3><p>Arrancamos el año con el Comparador de Presupuestos Municipales de Gobierto: <a href="http://presupuestos.gobierto.es/">presupuestos.gobierto.es</a>. Convertimos una base de datos Access que publica el Ministerio de Hacienda en una web para visualizar y comparar los presupuestos de los más de 8.000 municipios españoles. A esto han seguido varios posts que exploran algunos temas en torno a presupuestos y deuda (<a href="https://gobierto.es/blog/20160901-entendiendo-deuda-municipal.html">¿Cuánto terminará tu municipio de pagar toda su deuda?</a>, <a href="https://gobierto.es/blog/20160518-presupuesto_vs_ejecucion.html">Análisis de la desviación de los presupuestos municipales y el gasto real</a>… más en el <a href="http://gobierto.es/blog">blog de Gobierto</a>).</p><p>Nuestra visión con Gobierto es crear una plataforma de gobierno abierto open-source para hacer que sea lo más fácil posible que una administración pública pueda ofrecer transparencia y participación útil, de la forma más económica posible. Una visión ambiciosa, pero no tenemos prisa. En este 2016 hemos sentado las bases y ya estamos en marcha. Además de la <a href="https://gobierto.es/blog/20160914-madrid-gobierto.html">demo de la que ya se puede disfrutar</a> a principios de 2017 saldrán los primeros proyectos que usan Gobierto.</p><p>Tardaremos varios años en ir desplegando todo lo que pensamos que tiene sentido. ¡Nos vemos en 10 años!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvOJ2Hpq9lptuTsV71YK4A.png" /></figure><h3>Panama Papers</h3><p>Durante el primer trimestre del año estuvimos trabajando a tope en un proyecto del que sabíamos poco, y del que nunca nos imaginamos que tendría tanta repercusión, que sería el proyecto periodístico del 2016 y quién sabe si de la década: los <a href="http://panamapapers.icij.org/">Panama Papers</a>. No nos dió tiempo a implementar muchas ideas que teníamos, pero sí que mejoramos la mayoría de las métricas que nos propusimos sobre la web anterior del ICIJ (vale, no era díficil…). Especialmente el % de donaciones conseguidas, a lo que obviamente ayudó la dimensión del tema.</p><p>Después de un lanzamiento un domingo por la noche, en el que en cuestión de minutos había más de 25.000 sesiones activas según el Real Time de Analytics, nos pusimos de nuevo a trabajar a tope para sacar la web que permite explorar la <a href="https://offshoreleaks.icij.org/">base de datos</a>. Decenas de millones de personas han consultado directamente ambos sites en 2016, con picos de tráfico muy considerables que se resistieron con bastante dignidad.</p><p>Y en verano sacamos otro proyecto con el apoyo del Pulitzer Center, un juego para entender la dimensión y el impacto de la evasión fiscal en África: <a href="https://africaoffshoregame.icij.org/">Continent of Secrets</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LryVM6hDrSBxOkvQHxeH-w.jpeg" /></figure><h3>Oficina</h3><p>Durante 2015 estuvimos de prestado en la oficina de nuestros amigos de <a href="http://lostiumproject.com/">Lostium Project</a>. A principios de año les convencimos para mudarnos juntos. Nos costó, pero encontramos un sitio precioso y luminoso. No podemos estar más a gusto. Si estás <a href="https://www.google.es/maps/place/Populate/@40.432962,-3.714259,15z/data=!4m5!3m4!1s0x0:0xc53bd3349cdce326!8m2!3d40.432962!4d-3.714259">cerca</a>, te invitamos a café o cervezas, dependiendo de la hora del día.</p><h3>Populate Data</h3><p>El desarrollo de <a href="https://medium.com/lets-populate/espa%C3%B1a-en-cifras-a-data-journalism-project-by-populate-7481916b5d92#.fyjzi5hko">España en Cifras</a> nos enfrentó a un problema: cómo trabajar con más de 85 fuentes de datos distintas y construir una aplicación en tiempo récord (menos de un mes) que las usase todas. Trabajar con la estructura de datos propia de cada dataset no era una opción. Así que construimos un pequeño sistema para indexar cualquier tipo de dato y poder tener una API común. Nuestro pequeño experimento funcionó muy bien.</p><p>Desde entonces, hemos ido iterando el sistema, puliendo la API, añadiendo más datos… y lo hemos usado internamente para varios proyectos. Es obvio que una herramienta de este estilo sería muy útil en una redacción o para el que haga proyectos que consuman varios datasets. Uno de nuestros to-dos del 2017 es poner en marcha <strong>Populate Data</strong>. Si te interesa, <a href="/service/mailto:lets@populate.tools">escríbenos</a> y te daremos acceso a nuestro servicio en pruebas.</p><h3>Conferencias y formación</h3><p>Hemos impartido unas cuantas conferencias, charlas, cursos… sobre datos, transparencia, participación… Hemos estado en Madrid, Salamanca, Barcelona, Tenerife, Bilbao, Valencia… Algunos de ellos:</p><ul><li>UX Spain, Salamanca</li><li>Databeers, Madrid</li><li>Experience Fighters, Madrid</li><li>Máster de Periodismo de Datos de Unidad Editorial, Madrid</li><li>Novagob, Tenerife</li><li>Congreso SEDIC, Madrid</li><li>Conferencia Rails, Madrid</li><li>Creative Mornings, Madrid</li><li>Taller de Periodismo de Datos Medialab-Prado, Madrid</li><li>Jornadas Periodismo Datos GO! Diputación de Valencia, Valencia</li><li>Seguimos co-organizando el <a href="https://www.meetup.com/es-ES/Madrid-D3-js/">Meetup de D3.js</a>, ¡vente! Madrid</li></ul><h3>Proyectos que no fueron</h3><p>Como cualquier empresa que hace proyectos para terceros, hicimos unas cuantas propuestas que finalmente no salieron. Si necesita ayuda y quieres propuestas (pero de las que salen, ¿eh?) <a href="/service/mailto:lets@populate.tools">dános un toque</a>.</p><h3>Colaboradores e incorporaciones</h3><p>En la recta final del año se han incorporado con nosotros tres personas: <a href="https://twitter.com/amaiac">Amaia</a>, <a href="https://twitter.com/rafadelascuevas">Rafa</a> y <a href="https://twitter.com/martgnz">Martín</a>, para ayudarnos a construir proyectos como los que os contamos aquí. Y a largo del año hemos trabajado con distintos colaboradores: <a href="https://twitter.com/danguita">David</a>, <a href="https://twitter.com/jorgesancha?lang=es">Jorge</a>, <a href="https://twitter.com/gemaderus">Gema</a>…</p><h3>Pendiente</h3><p>Y como siempre, muchas ideas se nos han quedado en nuestro tintero virtual en el que queremos mezclar proyectos de clientes con ir sacando nuestros propios <a href="http://peticiones.populate.tools/">experimentos</a> y juguetes. En el 2017 seguiremos buscando la fórmula mágica que nos permita compaginarlo con agilidad y prometemos compartirla si la encontramos ;)</p><h3>Además… y para el 2017</h3><p>Además de estos proyectos hemos hecho y estamos <a href="http://gobierto.es/blog/20161214-diputacion-de-valencia-gobierto.html">haciendo</a> unos cuantos más. Noticias en las próximas semanas.</p><p>Feliz, próspero y sano 2017 a todos.</p><p>Fernando &amp; Álvaro</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d041727aead9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/populate-2016-nuestro-resumen-del-a%C3%B1o-d041727aead9">Populate 2016: Nuestro resumen del año</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we did Continent of Secrets, a project for ICIJ supported by the Pulitzer Center]]></title>
            <link>https://medium.com/lets-populate/how-we-did-continent-of-secrets-a-project-for-icij-supported-by-the-pulitzer-center-16870b86dd89?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/16870b86dd89</guid>
            <category><![CDATA[panama-papers]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[journalism]]></category>
            <dc:creator><![CDATA[Álvaro Ortiz]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 07:54:52 GMT</pubDate>
            <atom:updated>2018-03-14T10:31:55.013Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOwDPEA7gfys4buNdKvSnA.png" /></figure><p>This summer we have worked again with ICIJ (International Consortium of Investigative Journalists) in a very special project: <strong>Continent of Secrets</strong>, an interactive game to explore how tax evasion impacts African economies. The project has been supported by the Pulitzer Center.</p><blockquote>Every year, more than $50 billion is siphoned out Africa, the world’s poorest continent, and into the coffers of corrupt officials, tax evaders, giant oil and mining companies, multinational corporations and many more. The scale of the losses — which is roughly equal to the amount of foreign aid pumped into the continent each year — is so huge that it can be difficult to quantify, and the mechanics — involving offshore companies, bank accounts, and complex financial structures — are often secretive and difficult to understand.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUW4tpEwNtElgMXdbsF54g.png" /></figure><p>We have written a post together with Hamish and Will from ICIJ to tell the story of how we did it, collaborating online between Washington and Madrid with a very tight deadline.</p><p>Read more over at the ICIJ Panama Papers website: <a href="https://panamapapers.icij.org/blog/20160909-continent-of-secrets-untold-stories.html">https://panamapapers.icij.org/blog/20160909-continent-of-secrets-untold-stories.html</a></p><p>Play the game at <a href="https://africaoffshoregame.icij.org/">https://africaoffshoregame.icij.org/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16870b86dd89" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/how-we-did-continent-of-secrets-a-project-for-icij-supported-by-the-pulitzer-center-16870b86dd89">How we did Continent of Secrets, a project for ICIJ supported by the Pulitzer Center</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working efficiently with Spanish geographical entities]]></title>
            <link>https://medium.com/lets-populate/working-efficiently-with-spanish-geographical-entities-5e6c71a77cda?source=rss----d79843990dde---4</link>
            <guid isPermaLink="false">https://medium.com/p/5e6c71a77cda</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Fernando Blat]]></dc:creator>
            <pubDate>Sun, 12 Jun 2016 08:11:22 GMT</pubDate>
            <atom:updated>2016-06-10T14:57:15.680Z</atom:updated>
            <content:encoded><![CDATA[<p>We are big fans of the Open Source community since we learned to program. Everyday we use many libraries created by people like us in their spare time. Apart from the time we save in writting code, what’s also very valuable in using open source is the knowledge implicit in the code: open source is not just sharing code for free, but a solution to a given problem in the form of code, patterns and documentation.</p><p>We want to give back to the community with a small project we use in many of our projects, it’s called <a href="http://populatetools.github.io/ine-places/"><strong>ine-places</strong></a>. We are releasing it as a <a href="https://rubygems.org/gems/ine-places">Ruby gem</a>, but in the <a href="https://github.com/PopulateTools/ine-places#ine-places-gem">README</a> you can find a bit of our experience working with Spanish regions, where the data can be found, in which format, and so on.</p><h4>The Problem</h4><p>We are not dealing with a big problem, in fact it’s quite simple. We needed a way to programmatically access to the official list of municipalities, autonomous regions and provinces from Spain <strong>with an unique ID shared accross all the official institutions and an official name</strong>. Thankfully <a href="http://www.ine.es/daco/daco42/codmun/codmun11/11codmunmapa.htm">that classification exists in the National Institute of Statistics</a> (the acronym is INE in Spanish).</p><p>The unique IDs will allow us to identify the entity in any dataset generated by an official institution. The official names are necessary to be included in lists, search forms, or pages.</p><h4>Our solution</h4><p>We created a package with the list of autonomous regions, provinces and municipalities in a Ruby gem. We also included Ruby well tested classes and modules to work with, in a very clean way:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0640ab8899af8ce0756675cdb3c34dbd/href">https://medium.com/media/0640ab8899af8ce0756675cdb3c34dbd/href</a></iframe><p>We don’t want to go deeper in the details, but the list of entities is efficiently <em>memoized</em> when accessed, and the library provides a suitable method to pre-load all the data: <em>INE::Places.preload. </em>It allows to create tools such a suggestion form, with super-fast response times.</p><p>Also, this week we have released a new and experimental feature we call <a href="https://github.com/PopulateTools/ine-places#hydratating-models-with-data-experimental-feature"><em>hydratation</em></a><em>. </em>Given a dataset which contains (apart from the data values) a column referring to the IDs, it’s possible to <em>hydratate </em>the Ruby classes with those values:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e91a616192dca1636f7a4d274bcca2/href">https://medium.com/media/84e91a616192dca1636f7a4d274bcca2/href</a></iframe><p>This is a very neat way to extend the models using external datasets of information. After solving this problem in different projects using different approaches this is, by the moment, our favourite.</p><h4>Plans</h4><p>We have some plans for this gem:</p><ul><li>allow the hydratation from an API endpoint, that could be the INE itself, a private data source, or CartoDB</li><li>make the gem more generic, maybe supporting geographical entities from the EuroStat</li><li>we are considering a Javascript version to enable all this toolkit to be available in the client side</li></ul><h4>Help</h4><p>Want to help testing the gem or adding some of the features above? Please <a href="http://lets@populate.tools/">write to us</a> or feel free to fork the project and <a href="https://github.com/PopulateTools/ine-places#contributing">send us a pull request</a>. We are open to suggestions and new ideas.</p><p>And, if you are using the gem and it’s been helpful just drop us a line or invite us to a beer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e6c71a77cda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-populate/working-efficiently-with-spanish-geographical-entities-5e6c71a77cda">Working efficiently with Spanish geographical entities</a> was originally published in <a href="https://medium.com/lets-populate">Lets Populate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>