<?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[Stories by Horia Constantin on Medium]]></title>
        <description><![CDATA[Stories by Horia Constantin on Medium]]></description>
        <link>https://medium.com/@horiaconstantin?source=rss-55adc3dbc333------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7c7RHy6zafHy2NF7R0K61w.jpeg</url>
            <title>Stories by Horia Constantin on Medium</title>
            <link>https://medium.com/@horiaconstantin?source=rss-55adc3dbc333------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 00:40:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@horiaconstantin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A virtual open-space]]></title>
            <link>https://horiaconstantin.medium.com/a-virtual-open-space-a833ed69137e?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/a833ed69137e</guid>
            <category><![CDATA[unconference]]></category>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 11:34:03 GMT</pubDate>
            <atom:updated>2021-01-10T21:08:15.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>CITCON 2020, a virtual unconference</h3><blockquote><em>CITCON rocked again, this time ONLINE! </em><a href="https://t.co/UpjmGAk95v"><em>https://t.co/UpjmGAk95v</em></a><em> </em><a href="https://twitter.com/hashtag/citcon?src=hash&amp;ref_src=twsrc%5Etfw"><em>#citcon</em></a><em> </em><a href="https://twitter.com/citcon?ref_src=twsrc%5Etfw"><em>@citcon</em></a><em> </em><a href="https://t.co/91irLY6Mrb"><em>pic.twitter.com/91irLY6Mrb</em></a></blockquote><blockquote><em>— Adina Moldovan (@adinnaplus) </em><a href="https://twitter.com/adinnaplus/status/1266772475003768838?ref_src=twsrc%5Etfw"><em>May 30, 2020</em></a></blockquote><p>Have you heard about <a href="https://en.wikipedia.org/wiki/Open_Space_Technology">open-spaces</a> before? Have you ever been to an unconference? If yes, find something else to read. Otherwise, keep on reading. I’m going to describe how I experienced a virtual unconference I recently attended. By the end, you will have some good reasons to join one.</p><h3>What is an unconference?</h3><p>I’ve written about <a href="https://www.horiaconstantin.com/tag/unconference/">unconferences</a> before, but I never explained why I love this event format. There’s a lot to say, but I’ll restrict myself to the top three reasons why I keep coming back:</p><ol><li>Autonomy and empowerment: <a href="https://en.wikipedia.org/wiki/Open_Space_Technology">the format</a> of the event allows the participants to focus on meeting their individual needs. The law of two feet means that you are expected to use your own two feet to move to whatever place you can best contribute and learn. In the same way, all participants are allowed to adjust scheduled sessions as they see fit.</li><li>Strong engagement of participants: anyone can propose a topic for a session. During a session, you are encouraged to suggest an improvement if you notice that a session is not going well.</li><li>Relaxed expectations: two<a href="https://www.openspaceworld.org/files/tmnfiles/2pageos.htm"> guiding principles</a> remind participants to take it easy. “<em>Whoever comes is the right people</em>” and “<em>Whatever happens is the only thing that could’ve</em> <em>happened</em>”.</li></ol><p>An open-space offers a different kind of experience than a regular conference. Even with a good understanding of the guiding principles, it’s going to be hard to imagine how it develops unless you attend it.</p><h3>A typical unconference session</h3><p>A typical unconference session is usually a “go-with-the-flow” discussion on the proposed topic, and it depends on the participants to set the direction and to keep the session on track. Often, participants, bring up a couple of subjects related to the topic. Commonly, some of the subjects will be touched only briefly. There’s no slide deck to take away at the end; every participant takes from the session whatever they need.</p><h3>CITCON unconference goes virtual</h3><p><a href="http://www.citconf.com/">CITCON</a> usually takes place in a European city. Since COVID-19 makes traveling unsafe, CITCON 2020 went online. I volunteered to help the organizers, <a href="https://www.linkedin.com/in/jfredrick/">Jeff</a> and <a href="https://www.linkedin.com/in/thepj/">PJ</a>. We used <a href="https://medium.com/swlh/how-to-run-a-zoom-cocktail-party-and-have-better-classes-conferences-and-meetings-too-dc2c5b58f8be">the suggestions</a> from Misha Glouberman, did a couple of test runs, and, in the end, we had a good understanding of the technology stack needed to need all the needs of an open-space. Amelie sums it up perfectly.</p><blockquote><em>Tool stack this time is:<br>– slack (single channel)<br>– zoom rooms (we’re all co-hosts)<br>– single google doc with All The Links<br>– miro for the schedule</em></blockquote><blockquote><em>— Amélie Cornélis (@AmelieCornelis) </em><a href="https://twitter.com/AmelieCornelis/status/1266680249124900865?ref_src=twsrc%5Etfw"><em>May 30, 2020</em></a></blockquote><p>The tools worked well on the day of the conference (~70 participants). A couple of notes on the tools: the organizers arranged for a basic Zoom subscription, and a basic <a href="https://miro.com/app/">Miro</a> subscription. There was also a need for a full-time “Zoom receptionist”, with the primary responsibility of elevating participants to co-hosts. Being a co-host means that you can move around the breakout rooms, which served as the rooms of the sessions (the blue horizontal swimlanes in the schedule below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dk-Ik4vZiHCLzGfANTexcw.jpeg" /><figcaption>This is how the final schedule looked like (Miro)</figcaption></figure><h3>When it’s over, it’s over</h3><p>I am finishing with another of the four principles of open-spaces. <em>Creativity has its rhythm. So do groups. When you think it is over, ask: Is it over? And if it is, go on to the next thing you have passion for. </em>See you at <a href="https://citconf.com/">CITCON</a>. Or at <a href="https://www.humansconf.org/">humansconf</a>. Or at <a href="https://devopsdays.org/">DevOpsDays</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a833ed69137e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Checklist for learning Scala]]></title>
            <link>https://horiaconstantin.medium.com/checklist-for-learning-scala-66bfe6d1ac2b?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/66bfe6d1ac2b</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[scala]]></category>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Mon, 03 Feb 2020 11:25:37 GMT</pubDate>
            <atom:updated>2020-02-03T11:25:37.157Z</atom:updated>
            <content:encoded><![CDATA[<p>The moment that Scala blew me away was when I wrote the definition of a set as a function.</p><p>Horia Constantin</p><p><a href="https://horiaconstantin.com/checklist-for-learning-a-new-programming-language/">In a previous article</a>, I’ve proposed the use of a checklist to give structure when learning a new programming language. With writing this article, my intentions are to clarify the application of the checklist for learning a new programming language and to offer a good starting point for learning Scala.</p><h4>The checklist</h4><p>Mindset<br> <strong>Personal why’s for learning Scala</strong>: I’ve wanted to start to learn a new programming language for some time. I chose Scala thinking that I can get a freelance gig faster than anything else. And because a former colleague recommended it.<strong>Find a project/application to build with Scala</strong>: a web app that supports most technologies that are required these days for a fully-featured website. I called it <a href="https://github.com/treaz/scalatraseed">scalatraseed</a> since it uses the Scalatra web framework at its core.<br> Setting<br> <strong>Find a high-quality online Scala course/book</strong>: I’ve found excellent resources <a href="https://docs.scala-lang.org/learn.html">here</a>. Scala originated in EPFL, so I started with <a href="https://courseware.epfl.ch/courses/course-v1:EPFL+progfun1+2018_T1/about">Functional Programming Principles in Scala</a>.<strong>Find/create Scala cheat sheet</strong>: <a href="https://github.com/treaz/scala-cheat-sheet">here</a><strong>Find the official Scala documentation</strong>: start with the <a href="https://www.scala-lang.org/api/2.13.1/">standard library</a><strong>Find/create a comparison between Scala and Java</strong>: <a href="https://docs.scala-lang.org/tutorials/scala-for-java-programmers.html">these docs</a> and <a href="https://app.pluralsight.com/library/courses/scala-for-java-developers/table-of-contents">this course</a><strong>Find/create a dictionary/glossary of the concepts, keywords, etc.</strong>: I haven’t been doing very well at this point because I tend to look up a concept as soon as I encounter it. <strong>Take notes: questions, curiosities, “strange” code</strong>: useful point, but the questions and curiosities change from one day to another that it makes it useless to write it here.<strong>Start collaborating on an open-source library</strong>: this point was a bit more complicated than I thought. Many libraries are either too big or have too many contributors already or are too advanced for a beginner or don’t have good-first-issues. I decided to settle down on <a href="https://github.com/scalatra/scalatra">Scalatra</a> because I was already using it in my demo project.<strong>Find/create a roadmap that describes the learning process</strong>: <a href="https://www.scala-lang.org/old/node/8610">this</a> is a good start<strong>Find a code conventions document</strong>: the online Scala course that I’ve started uses <a href="http://www.scalastyle.org/">Scalastyle</a> for enforcing the style of the code. If it’s good enough for the Scala core team, it’s good enough for me.<strong>Find/create a list of antipatterns</strong>: I couldn’t find anything, probably because Scala is such a flexible language (allowing full OOP or FP and anything else in between). The small things that I’ve found so far revolve around using the language constructs correctly (e.g., use “if” as an expression, not a statement). So, nothing useful here.<strong>Find and learn how to use the most popular build tool</strong>: I wanted to leverage my maven knowledge initially, but it’s a constant uphill battle. <a href="https://www.scala-sbt.org/">Sbt</a> for the win!<strong>Find a list of Scala project seeds</strong>: <a href="https://developer.lightbend.com/start/">from lightbend</a><strong>Find the frameworks</strong>: <a href="http://www.scalatest.org/">Scalatest</a>, <a href="http://scalatra.org/">Scalatra</a>, <a href="https://sangria-graphql.org/">Sangria</a></p><p>Having applied the checklist, I’m discovering that some points are part of the continuous process of learning (take notes; create a dictionary/glossary), while others are a one-time task (find the official documentation).</p><p>I’m also learning that some tasks are not so useful as others. That can be because they’re part of another, more comprehensive task (the online Scala course that I found uses Scalatest) or because they’re not that important at this stage of learning (they just take up mental and checklist space).</p><p>Based on this experience and the idea of lean learning, I’ll be updating the <a href="https://horiaconstantin.com/checklist-for-learning-a-new-programming-language/">checklist template</a> so that it is a more effective learning resource. For historical reasons, I’ll keep the checklist in this article as it is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66bfe6d1ac2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Checklist for learning a new programming language]]></title>
            <link>https://horiaconstantin.medium.com/checklist-for-learning-a-new-programming-language-a52dc0172ce5?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/a52dc0172ce5</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Fri, 03 Jan 2020 11:54:35 GMT</pubDate>
            <atom:updated>2020-01-03T11:54:35.680Z</atom:updated>
            <content:encoded><![CDATA[<p>In a workshop that I recently gave, I compared learning a new programming language with learning a new natural language. Depending on your experience, learning a new programming language might be a medium difficulty task or a hard project. In the latter situation, you’re going to need to have some structure in your approach, to ensure you reach your goal. But what is an easy way to start? I propose to use a checklist similar to the one I’ve written below.</p><h4>Naive solution</h4><p>“I’ve got enough Java experience. I’m a good software engineer. I’ve played with other languages before, and it went well.” I said to myself. I was aware that Scala has some very funky notations and that it uses plenty of functional programming concepts. But my confidence was high. I’ll do it as I did it before: take an online course, read a book, find the documentation, make a small app, and go from there. But I didn’t expect to get into analysis paralysis because of the overwhelming number of books, frameworks, courses, etc. I eventually decided on an online course and finished it only to realize that I wasn’t learning as much as I wanted. I decided to make the learning process explicit by creating a checklist that I could improve iteratively.</p><h4>The checklist</h4><p>I created this checklist iteratively as I was learning Scala, but I’ve generalized it for any programming language. In a future post, I’ll show how I’ve applied it to my learning.</p><p>There are two components that I found valuable while learning Scala: keeping my motivation high (mindset) and having a good learning plan that supports my learning experience (setting). Start with mindset first (ordered starting with top priority), continue with the setting (no particular priority).</p><p>Mindset<br> Clarify what your personal why’s for learning are. <a href="https://en.wikipedia.org/wiki/Self-determination_theory">Try to connect this to intangible needs/wants/dreams</a>. Bad: I want to learn this because it’s nice to have on my CV. Good: I want to learn this because I’m curious about how it worksFind a project to build while learning. Online courses and books tend to teach concepts without applying them to real-world use cases.<br> Setting<br> Find a high-quality online course/book about the language. Material created by the language’s author or main contributor clarifies the language philosophy and its specific patterns.Find/create a cheat sheet with the most common expressions and idioms of the language and keep it open in a browser tabFind the official language documentation, learn how to read it and keep it open in a browser tabFind/create a comparison between the new language and another that you’re familiar withFind/create a dictionary/glossary of the concepts, keywords, etc. which are specific to the new language (consider making a mindmap). Aim to understand the uses cases for them. And practice it.Take notes: questions, curiosities, “strange” codeStart collaborating on an open-source library. Pick a common one, but not a complex one. Start by searching on GitHub.Find someone to review the code that you write. Works well with the aboveFind/create a roadmap that describes the steps that you will go through (the table of contents of online courses are usually a good source)Find a code-conventions/style-guide documentFind/create a list of antipatterns. It might be syntax or design patterns, but the language that you are learning is going to do a couple of things differently compared to what you were used toFind and learn how to use the most popular build toolFind the frameworks that you foresee needing and are the most popular (GitHub search with the new language tag)<br> Work in progress</p><p>At this point, I’m convinced of the usefulness of having a checklist for learning a new programming language. However, I’m aware that some of these ideas are more effective than others. In a future article, I’ll tell you how my learning process was affected by following this checklist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a52dc0172ce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile app makers review]]></title>
            <link>https://horiaconstantin.medium.com/mobile-app-makers-review-a9c0f0e4e8af?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9c0f0e4e8af</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 08:14:19 GMT</pubDate>
            <atom:updated>2019-12-02T08:14:19.184Z</atom:updated>
            <content:encoded><![CDATA[<p>A friend came to me recently with the idea of creating a mobile app that would support the learning platform that he already has. We discussed what features he wanted and what his budget was. The budget was tight, as is normal for any small and medium enterprise and I realized that developing the app from scratch was not an option. Mobile app makers to the rescue!</p><p>I knew that there should be some mobile app generators on the market, but I had no idea what features they offered and at what cost. Actually, I only knew that they “had” to exist. I was thinking that I’ll find a few online platforms tackling this problem. To my surprise, I discovered that there were more than mature 20 platforms, all offering similar features. I soon found out that the industry, of mobile app makers, is quite mature: there are <a href="https://www.websitetooltester.com/en/blog/app-makers/">reviews</a> and <a href="https://apptooltester.com/best-app-maker/">comparisons</a> and <a href="https://mashable.com/article/build-mobile-apps/?europe=true">top10&#39;s</a>.</p><p>Soon after I started reading I understood that all those articles will not help me with my problem: determine how much it would cost to run such an app. The reason is that the platforms are vastly diverse in terms of their offering: different prices for similar, but not always the same set of app features. The services included in the contract and the actual terms would also vary greatly. I had to make my own research and comparison, based on the needs of the friend.</p><p>In this post, I’m sharing the results of the research that I’ve done. Disclaimer: 1) I only used <a href="https://www.websitetooltester.com/en/blog/app-makers/">this article</a> as a source for mobile app makers, so I might have missed a few. 2) My focus during the research was on the feature set that my friend needed, so if a feature isn’t there, it might still be available. 3) I only spent 10–15 minutes with each app builder platform, so I might have missed details that need more digging (or contacting customer support).</p><p>This comparison sheet is not detailed nor complete enough to allow me to select a “winner”. Instead, I will use it during the discussions with my friend to make a shortlist of 2–3 mobile app makers that I will investigate further.</p><p>If the table below is too hard to read, you can <a href="https://docs.google.com/spreadsheets/d/1WyHLw6Me-z0Xlr7LN3yDkofoKiII19xEZYAQILvR5-0/edit#gid=0">access the comparison sheet directly</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9c0f0e4e8af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit testing algorithms]]></title>
            <link>https://horiaconstantin.medium.com/unit-testing-algorithms-29f7f13c99b7?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/29f7f13c99b7</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Mon, 04 Nov 2019 08:45:23 GMT</pubDate>
            <atom:updated>2021-01-08T22:06:00.536Z</atom:updated>
            <content:encoded><![CDATA[<p>In the last weeks, I’ve been improving my computer science knowledge by solving programming problems. Since these problems have multiple solutions, I find myself writing duplicated unit tests. And refactoring these tests is cumbersome (if find&amp;replace doesn’t work).</p><p>To make the point clear, I’m going to pick a problem with many possible implementations: sorting an integer array. Let’s keep things simple and solve the problem using heap sort, insertion sort, merge sort, quick sort, and selection sort. When the time comes to write the tests, all of the tests will be duplicated between implementations. If, in the future, I come up with a new test case, I have to write (copy&amp;paste) that test to the test class of each implementation. This is far from optimal.</p><p>After doing a bit of digging, I found a convenient solution to removing the duplication: JUnit5’s @ParameterizedTest and @ValueSource. I had to do a bit of refactoring: I created a new interface that declares the sort method, and I made sure that all *sort classes implement the interface properly (you did create one class per implementation, right?). After that, it was just a matter of wiring up the tests.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/87fb303f1b7fa0907adf37a67daa1fc3/href">https://medium.com/media/87fb303f1b7fa0907adf37a67daa1fc3/href</a></iframe><p>Cool! 🙂 Before, the unit tests were all over the place, and not all implementations had all the corner cases tested. Soon enough, I found that the QuickSort implementation throws StackOverflowError when the input array contains duplicate values. You can find the source code <a href="https://github.com/treaz/algorithms/tree/master/src/main/java/com/horiaconstantin/sorting/bycompare">here</a>.</p><p><em>Originally published at </em><a href="https://www.horiaconstantin.com/unit-testing-algorithms/"><em>https://www.horiaconstantin.com</em></a><em> on November 4, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29f7f13c99b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xiaomi MiBand3 and privacy… not much]]></title>
            <link>https://horiaconstantin.medium.com/xiaomi-miband3-and-privacy-not-much-b6fd149337f3?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6fd149337f3</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 12:30:54 GMT</pubDate>
            <atom:updated>2021-01-08T21:57:11.111Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>29/12/2020 Update</strong>: Almost a year after my complaint, I received an answer: the Dutch Personal Data Authority are not going to research my complaint further because they can’t say if they are able to be effective in reaching the goal of the complaint. Additionally, there were no other complaints against Huami, so they consider it a small risk (I wonder if they know that Huami is actually behind Xiaomi). I’m attaching the official response below.</p><p><a href="https://www.horiaconstantin.com/wp-content/uploads/2020/12/Scannable-document-op-18-dec.-2020-19_46_20.pdf">https://www.horiaconstantin.com/wp-content/uploads/2020/12/Scannable-document-op-18-dec.-2020-19_46_20.pdf</a></p><p><strong>02/06/2020 Update</strong>: While still waiting for a response from the <a href="http://autoriteitpersoonsgegevens.nl/">dutch personal data authority</a>, I’ve been contacted by Kevin Grahl, who wrote a <a href="https://kevingrahl.de/article/mi-band-4-review">great article</a> on how to protect yourself from leaking personal data to Xiaomi. The trick is to use the <a href="https://lockdownhq.com/">Lockdown</a> iOS app. I’m confident about this solution 🙂</p><p><strong>27/11/2019 Update:</strong> After 2 SARs without a response from Huami, I’ve decided to make a complaint with the <a href="http://autoriteitpersoonsgegevens.nl/">dutch personal data authority</a>. The estimated response time is 3 months.</p><p><strong>7/11/2019 Update</strong>: I just received a concrete answer from Xiaomi’s Privacy Office: “MiFit is a product of Huami. Xiaomi Singapore Pte Ltd is not the MiFit data controller and is not responsible for processing the personal data of MiFit ‘s data subject. Please refer below Huami’s contact information is privacy@huami.com.”. So, I’ve made a <a href="https://www.mydatadoneright.eu/">SAR</a> to Huami.</p><p>MiBand is a wearable activity tracker produced by Xiaomi. The 3rd generation has a reasonable feature set, and it is 2–3 times cheaper than its competitors. It’s a great entry-level band if you want to begin tracking your fitness levels.</p><p>I bought a Xiaomi MiBand3 because I was hoping to make sense of my erratic sleeping patterns. I was also eager to discover how much movement I was getting through the day. Additionally, I was hoping to connect with some faraway friends via the MiFit phone app.</p><p>“But what about privacy?” a nagging voice in my head kept asking. The data that a fitness tracker generates feels personal, and Xiaomi is a Chinese company. I don’t want the Chinese government to have information about me. It’s bad enough that <a href="https://en.wikipedia.org/wiki/Mass_surveillance_in_China">Chinese citizens have no privacy</a>. To make an informed purchase, I searched for articles about “Xiaomi privacy”. I found two articles ( <a href="https://openeffect.ca/fitness-tracker-privacy-and-security/">1</a> and <a href="https://www.av-test.org/en/news/seven-fitness-wristbands-and-the-apple-watch-in-a-security-check-2016/">2</a>) reviewing the InfoSec aspects of a couple of fitness trackers. Yet, nothing that answered my question about Xiaomi. In the end, I decided to buy the band, but I felt uneasy every time the MiFit app “synchronized” with the band. Uneasy, but not concerned enough to look deeper into the matter.</p><p>Susana Sanz, from <a href="https://balkontactics.nl/">BalkonTactics</a>, renewed my interest in privacy and InfoSec. After our talk, my unease changed into serious concern about the data generated by my shiny, new fitness tracker. The ethical/moral/philosophical aspect of privacy did not interest me; that’s something that others have talked in more detail ( <a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters">Glenn Greenwald</a> and <a href="https://www.amazon.com/Permanent-Record-Edward-Snowden/dp/1250237238">Edward Snowden</a> come to mind).</p><p>I was interested to know what exactly does Xiaomi know about me. <a href="https://www.techrepublic.com/article/how-to-request-your-personal-data-under-gdpr/">Making a Subject Access Request</a> (SAR), a right recognized by the is one way to go about it. For the sake of learning how SAR work, I submitted one to <a href="/service/mailto:privacy@xiaomi.com">privacy@xiaomi.com</a>. But this process would take a long time, and patience is not one of my virtues. While waiting for an official response, why not use a “hacky”, DIY approach to get an answer?</p><p>Nowadays, almost all phone apps communicate with a server on the internet. It is possible to intercept that communication, while it’s happening (see the technical method section at the bottom of the post). Thirty minutes later, I confirmed my concern: Xiaomi collects all the data that MiBand generates. To be more specific, all the data displayed in the MiFit app (e.g., sleep data, training data, heart rate) gets uploaded to the Xiaomi servers. There is no way to disable the upload in the configuration of the application. The band keeps a backlog of all the recorded data, and everything gets uploaded to Xiaomi when you use the mobile app. If you don’t use the MiFit app, you’ll end up with a band that only knows how to count your steps and how to measure your heart rate.</p><p>The only good news here is that, at this moment, the geo-location data is not collected passively (outside training sessions). But there is no guarantee that it will stay like this in the future.</p><p>In the end, I’m left with a feeling of disappointment that Xiaomi has unrestricted access to sensitive information about my lifestyle:</p><ul><li>what would happen if someone infiltrates their systems? I’m sure that there are ways in which this data could be exploited to my disadvantage.</li><li>What’s up with this shady <a href="https://www.mi.com/us/about/agreement/">user agreement</a>? Not clear to me what Xiaomi and its partners do with the data. I understand that the moment it gets uploaded, I “waive any and all ownership, legal and moral rights” to my data. But how does Xiaomi use it? Who are the third parties or Xiaomi affiliates that have access to it? Is it sold or monetized in any way? Lots of questions and no clear answers.</li></ul><p>If you’ve been on the internet long enough, you’re familiar with the phrase “If you’re not paying for the product, you are the product”. Fun fact, in 2016, the average worth of a Facebook user was <a href="https://www.theguardian.com/technology/2016/jan/28/how-much-are-you-worth-to-facebook">$3.73 per quarter</a>. I’m not ok with that, but let’s leave it there for now. Thinking logically, the phrase should not stand once I start paying for the product. Right? Well, it seems that this is not the case with Xiaomi MiBand.</p><p>I’m dissatisfied that, despite paying for the MiBand, I “waive any and all” rights over the data that I generate. In this new light, what seemed to be a good deal (best cheapest fitness tracker on the market) became a lousy deal when reading the fine print and doing a bit of research.</p><p>In the end, there are two big questions left in my mind about this way of collecting personal data:</p><ul><li>Is this a general practice of the fitness band industry, or is Xiaomi an exception?</li><li>Are other Xiaomi products collecting data in the same way?</li></ul><p>If you own a fitness tracker or another Xiaomi product, can you do a bit of digging around and let me know? Or get in touch with me and we can do the research together.</p><p>The technical method of finding out what MiBand3 data gets uploaded to Xiaomi’s servers was simple. Had I known it would be so simple, I wouldn’t have postponed it so much.</p><p>The hardware setup: I had to install <a href="https://mitmproxy.org/">mitmproxy</a> on my laptop.</p><ul><li>connect both my phone (with the Xiaomi MiFit app) and my laptop to the same WiFi network</li><li>install and run <a href="https://mitmproxy.org/">mitmproxy</a> on my laptop</li><li>install the mitmproxy root certificate on my phone</li><li>on my phone, set the proxy server for the WiFi to point to my laptop</li><li>open the Xiaomi MiFit app and look at the requests going into the proxy running on my laptop</li></ul><p>Out of all the requests made by the Xiaomi MiFit app, only one sends a lot of data:</p><pre>POST <a href="https://api-mifit-de.huami.com/v1/data/band_data.json?r=50AB6198-7007-47BF-86AC-53F606CDD4F6&amp;t=1565977799279">https://api-mifit-de.huami.com/v1/data/band_data.json?r=50AB6198-7007-47BF-86AC-53F606CDD4F6&amp;t=1565977799279</a></pre><p>In the payload of this request is a key called data_json that contains all the recent band data (as the name of the endpoint suggests). I took a look at the data in the JSON object and saw all the data points that are shown on all the graphs (in the app), including all the geo-coordinates of my running sessions. To my surprise, the MiFit app didn’t seem to send to Xiaomi information about my current location. Yet, this is not a guarantee that this information will remain on my phone in the future.</p><p>From a technical perspective, I enjoyed doing this little research. Using was straightforward, and I recommend it if you want to see what communication goes on between the apps on your phone and the internet.</p><p><em>Originally published at </em><a href="https://www.horiaconstantin.com/xiaomi-miband3-and-privacy/"><em>https://www.horiaconstantin.com</em></a><em> on September 29, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6fd149337f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database integration tests]]></title>
            <link>https://horiaconstantin.medium.com/database-integration-tests-c315d082dc74?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/c315d082dc74</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 09:30:15 GMT</pubDate>
            <atom:updated>2021-01-08T21:54:58.779Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you ever struggle while trying to write integration tests without mocking the third party? I know I did.</p><p>I’ve known about Martin Fowler since I was a junior developer. He is one of my favorite technology thought-leaders and I enjoy reading the thought-provoking articles that he publishes on <a href="https://martinfowler.com/">his blog</a>. In this post, I want to expand on his article <a href="https://martinfowler.com/bliki/TestPyramid.html">about the test pyramid</a>, in which he explains the difference between unit tests, integration tests and, UI tests. I’ll expand on the part about integration tests.</p><p>I want to show you an easy way to run integration tests against a database. With this goal in mind, I’ve created <a href="https://github.com/treaz/integrationtestingdocker">this java demo project</a>. It illustrates the concept and is useful as a starting point for more complicated applications.</p><p>In the past, I would delay writing the integration tests. I dislike the idea of not having any integration tests. Fixing errors at runtime is not something that I want to do in Java. Meanwhile, I didn’t want to invest time on setting up a separate test infrastructure. And tests running against a mocked database, are not testing anything. The options seemed limited:</p><ul><li>mocking the database interaction layer</li><li>connecting to an in-memory database</li><li>connecting to a local/remote test database</li></ul><p>Regardless of the option I picked, I always had the feeling that the solution could be more elegant. My hesitation would turn into frustration as the application grew and the tests would become harder to maintain. Recently, I discovered a better option: connecting the tests to a database running in a Docker container.</p><p>In my last project, <a href="https://www.linkedin.com/in/vladyslav-maksymenko-453b3838/">Vlad</a> and <a href="https://www.linkedin.com/in/mchireychik/">Max</a> showed me that using docker containers simplifies running integration tests against a database. No mocking, no complicated infrastructure, no tinkering with configuration files. As long as you can run Docker on the build machine, you can run the tests.</p><p>This is the elegant solution that I was looking for:</p><ul><li>install and configure Docker on the build servers and the developer machines that will run the tests</li><li>use <a href="https://github.com/fabric8io/docker-maven-plugin">docker-maven-plugin</a> to build a docker image of the database and start/stop a container based on the image</li><li>populate the database with the necessary data (use ‘/docker-entrypoint-initdb.d/’ or a database migration tool like <a href="https://flywaydb.org/">flyway</a>)</li><li>finally, use <a href="https://maven.apache.org/surefire/maven-failsafe-plugin/">maven-failsafe-plugin</a> to run the integration tests</li></ul><p>I like this approach because the <strong>integration tests are portable and easy to debug. </strong>If the tests run on my laptop, they will run also on the build machine. If the tests fail on the build machine, the problem will also appear on my laptop.</p><p>I also like that the <strong>tests are repeatable</strong>: the plugin builds the Docker image from scratch before the tests start and removes it after the tests finish.</p><p>Finally, I like that <strong>this approach is transferable</strong> to other types of integration tests. It’s easy to replace the database container with a dockerized REST API (in a move towards <a href="https://martinfowler.com/articles/practical-test-pyramid.html#ContractTests">contract testing</a>) or with a message queue container.</p><p><a href="https://github.com/treaz/integrationtestingdocker">The demo project</a> is more than a typical “hello world” application. The integration test starts a docker MySQL container and makes a simple SQL query. You will notice that the docker-maven-plugin configuration is more complicated than necessary, given such a simple test. The reason: the code samples that I found online seemed trivial. I wanted to have a “bootstrap” project that I could reuse in real-life projects without the hassle of gluing everything from scratch.</p><p>This approach to writing integration tests has opened my eyes to the possibilities that exist today in the QA automation domain. The tools built on top of Docker seem varied enough to accommodate all test types. The number of plausible excuses for not having a proper CI pipeline is getting too low…</p><p><em>Originally published at </em><a href="https://www.horiaconstantin.com/database-integration-tests/"><em>https://www.horiaconstantin.com</em></a><em> on February 12, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c315d082dc74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving to horiaconstantin.com]]></title>
            <link>https://horiaconstantin.medium.com/moving-to-horiaconstantin-com-438ebc8063c8?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/438ebc8063c8</guid>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 15:23:35 GMT</pubDate>
            <atom:updated>2019-02-11T15:23:35.695Z</atom:updated>
            <content:encoded><![CDATA[<p>Medium is nice, but I want more control over my content. And I want to migrate before it becomes a hassle.</p><p>See you on <a href="https://horiaconstantin.com/">https://horiaconstantin.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=438ebc8063c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up a “fresh” MacBook]]></title>
            <link>https://horiaconstantin.medium.com/setting-up-a-fresh-macbook-ad664f3aaadd?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad664f3aaadd</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[macbook]]></category>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Sun, 13 Jan 2019 07:29:55 GMT</pubDate>
            <atom:updated>2019-01-20T04:51:23.540Z</atom:updated>
            <content:encoded><![CDATA[<p>Only for developers that use macOS…</p><p>Setting up a “fresh” laptop for development is always painful, be it windows, macOS or linux.</p><p>It’s the second time in the last year when I do a fresh install of macOS on my MacBook. I’m tired of installing all the apps that I need in one-by-one fashion. I’m tired of doing all the small configurations (for macOS and for the apps). Most of the time I forget some of them and there are a couple of settings for which I have to search online.</p><p>I start off by making a list of settings and application that I use and then I discover that most of these things can be automated via the command line. I’m sure that someone did this before me and I start searching for some scripts that automate the installation of the development environment on a MacBook. I hit jackpot.</p><p>Using a couple of GitHub repositories as inspiration, I create a couple of simple scripts that should install almost everything that’s required for development on a MacBook. The scripts and the instructions are available here: <a href="https://github.com/treaz/mac-dev-setup/blob/master/README.md">https://github.com/treaz/mac-dev-setup/</a></p><p>I’m curious how much it will hurt next time that I have to setup a development MacBook.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad664f3aaadd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple (and fun) 360 feedback process]]></title>
            <link>https://horiaconstantin.medium.com/simple-and-fun-360-feedback-process-847396de07f2?source=rss-55adc3dbc333------2</link>
            <guid isPermaLink="false">https://medium.com/p/847396de07f2</guid>
            <category><![CDATA[feedback]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[teamwork]]></category>
            <dc:creator><![CDATA[Horia Constantin]]></dc:creator>
            <pubDate>Tue, 04 Dec 2018 08:21:00 GMT</pubDate>
            <atom:updated>2019-01-23T05:37:03.586Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simple and fun 360 feedback</h3><p>In the last year I’ve been experimenting with a feedback meeting style that has a lot of value for me. Besides the energy that I get from the session, I also get points for improvement that show me what I need to do in the next 3–6 months.</p><p>This style of 360 feedback is the simplest, most fun and most revealing version of feedback that I know of. The credit of coming up with it goes to one of my previous scrum masters: <a href="https://www.linkedin.com/in/cfidelaire/">Caroline Fidelaire</a>.</p><p>I’m sharing this post and these slides because I wasn’t able to find them anywhere online while I was preparing for a recent 360 feedback session. I found plenty of articles about it, but nothing straight to the point.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FkZ8EMQuEbfDTv5&amp;url=https%3A%2F%2Fwww.slideshare.net%2FHoriaConstantin%2F360-feedback-124468333&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2F360feedback-181130080043-thumbnail-4.jpg%3Fcb%3D1543565503&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a7013475e10e06b19f5877a09f17da8/href">https://medium.com/media/4a7013475e10e06b19f5877a09f17da8/href</a></iframe><p>The intention of the session is to gather as much feedback from your colleagues as possible in the easiest way possible. It’s like going out for beers with your team, but different ;).</p><p>I hope that the slides are self-explanatory and that they will serve as a good baseline when you do your own 360 feedback sessions. Good luck and have fun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=847396de07f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>