<?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[Hello Heart / Tech Org. - Medium]]></title>
        <description><![CDATA[Hello Heart Tech org. - Medium]]></description>
        <link>https://medium.com/helloheart-rnd?source=rss----3550df0af08b---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Hello Heart / Tech Org. - Medium</title>
            <link>https://medium.com/helloheart-rnd?source=rss----3550df0af08b---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 16:09:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/helloheart-rnd" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Want to measure the effectiveness of development teams? Get familiar with the DECI index]]></title>
            <link>https://medium.com/helloheart-rnd/want-to-measure-the-effectiveness-of-development-teams-get-familiar-with-the-deci-index-5c6d9281b612?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/5c6d9281b612</guid>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[kpi]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Roi Ronn]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 08:26:46 GMT</pubDate>
            <atom:updated>2024-03-10T08:26:45.968Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mvO1xvEpt268wXqi" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We are data people - we measure and calculate data every day, but what do we do regarding development speed and quality? Here is a new metric that will help development understand how and where to improve.</p><p>Numbers and data are a major part of the technological environment. We measure views, clicks, engagement, and user acquisition costs. We are talking about revenue growth and customer satisfaction (CSAT). And here’s another example - it’s been a long time since there’s been a company event that isn’t followed by a survey to check how it went. Beyond that, in the last decades, when we started accumulating huge amounts of information we would establish entire departments of data people who analyze it and invent new metrics. Still, we fail to measure the world of development - the heart of high-tech activity. Developers don’t seem to practice what they preach.</p><p>In the absence of a better alternative, the DORA index has become the most common metric for measuring development organizations. It first came into use at Google to measure the DevOps organization. The index focuses on four sub-metrics: Deployment frequency, Lead time to change, Change failure rate, and Time to restore service. The index gives a good picture of the responsiveness and stability of the product. But since the picture that DORA produces is partial - additional attempts were made to thicken it by adding data. For example, Microsoft’s Space method adds to the equation the speed of writing the code and the satisfaction of the developers.</p><h3><strong>Development efficiency is measured by four parts, is it enough?</strong></h3><p>To understand why the indicators in use are not the optimal solution - it might be worth taking a step back and looking at the definition of effective development. Development in itself is a creative and non-measurable process by nature, so it will be easier to look at the role of development in a product company. Inspired by the famous quote of Carl von Clausewitz - “War is nothing but the continuation of the policy plus other means”, it can be said that development is a continuation of the work of the product by technical means. Therefore, it would be more useful to measure the effectiveness of the development while examining the benefit it brings to society.</p><p>Let’s break it down for a moment. Looking at, the efficiency of the development can be described using the following parts:</p><p><strong>Velocity</strong>: The speed with which tasks are performed.<br> <strong>Quality</strong>: The quality in which the tasks are performed.<br> <strong>Effectiveness:</strong> The ability to work on important tasks that make a difference in the other indicators of the organization.<br> <strong>Predictability:</strong> The development organization’s ability to predict task completion times.</p><p>Speed, quality, and effectiveness are relatively clear parts - but the prediction component, and specifically its differences from the speed component, need to be justified. To understand its need, it is necessary to go back and look at the development organization as part of a larger whole.</p><p>In a product company, each development operation entails additional operations by other parts of the organization. The salespeople promise the customers that they will receive the new product, the marketing people plan campaigns and a multitude of other different actions permeate the entire company. A development organization that is unable to reliably communicate to the other departments when a particular feature or performance will be ready, prevents the rest of the company from selling the product well. Also, the ability of the development organization to contribute to the organization decreases, even if the actual development speed is very high.</p><p>With these examples, it is easier to see that these indicators do not provide a complete answer. An index that only focuses on speed and quality (and does so indirectly) gives a very partial picture of development efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E43GOg9hHy99M108" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Efficiency led us to create an index that is worth getting to know</strong></h3><p>To overcome the problem - we developed a new index (DECI (Development Efficacy Composite Index). The index tries to provide a solution to the ability to assess the effectiveness of development in a company by referring to all the factors described above. Since the goal of the index is to enable efficiency and improvement in a specific development organization - we chose to deal with the problem of the “non-quantifiable” components by defining a relative index - which examines the improvement in development efficiency over time. The requirements from the index are simple:</p><ol><li>The output of the index should be a quantitative number.</li><li>The number should increase as development efficiency increases.</li><li>The number should decrease as development efficiency decreases.</li><li>The intensity of the increase or decrease should be relative to the intensity of the change in development efficiency.</li></ol><p>And before you ask, yes. The number should also remain the same if the development efficiency does not change. No need to Nitpick.</p><p>To produce such an index we need to do two things. First, we need to represent each of the development efficiency components using a simple relative measure. Second, we must define the relationships between these indices and generate a single number from them. The development efficiency components also behave as a multiplier. If one of them is zero, it will not help us produce good values ​​in the other components.</p><p>Therefore, we will represent the ratio in this way:</p><blockquote><em>DECI = Velocity x Quality x Predictability x Effectiveness</em></blockquote><p>Another action that is required is to find a way to represent all the other components using a number. Here too, we are not talking about measurable things, so we will try to produce sub-indices that are a good indication - even if indirect.</p><ol><li><strong>speed</strong>: In a large enough development organization, it can be assumed that the complexity and volume of the tasks opened in the task management system will be distributed in a normal way around a unique value for the organization. According to this principle, a change in the speed of development will manifest itself in a change in the pace of performing tasks and the time it takes to perform them. In other words, the organization will develop faster as more tasks are performed in a faster development time.</li></ol><p>As a result, this is how we will represent the speed of development:</p><blockquote>Velocity = Average Started Tasks per Day / Average Task Cycle Time in Day</blockquote><p>2. <strong>Quality</strong>: The quality of the product is a factor of the amount of bugs that reach production. To normalize this number and so that we can also evaluate our quality assurance process - we will refer to two numbers.<br> A. <strong>Deferred Defect Ratio: </strong>A number that examines the organization’s willingness to release a product with bugs. It is calculated by dividing the number of bugs found in QA and released to production by the total number of bugs found in QA.<br> B. <strong>Escaped Defect Ratio: </strong>An index that checks the quality control process. Calculated by dividing the number of bugs found in production by the total number of bugs found.</p><p>3. <strong>Effectiveness</strong>: To get an assessment of the level of effectiveness of the development we use the priority of the tasks performed. If we assume that the priority of each task is determined correctly, effectiveness can be measured as the percentage of high (or very high) priority tasks out of the total number of tasks.</p><blockquote><em>Effectiveness = (# of high or highest tasks / #number of tasks done)</em></blockquote><p>4. <strong>Prediction</strong>: The ability to correctly predict development efficiency translates into the ability to set and communicate execution times and meet them. If it is clear that it will not be possible to meet the original time - an organization with high predictive ability will recognize this at an early stage and update the execution time. Therefore - we will measure the percentage of tasks performed before the execution time out of the total number of tasks. Here, a more complex metric can be defined that allows the target date to be moved, but for now, we will keep it simple.</p><blockquote><em>Predictability = #task done before due date / # number of tasks</em></blockquote><p>Before we finish - we will note that different organizations operate in different environments and that is why it is clear that each component will have a different importance. A development organization that develops in an environment where the cost of error is particularly high (medical equipment, hardware, etc.) would prefer to develop more slowly and keep the amount of bugs low. An organization that develops directly for customers and communicates the development end times to them - would prefer to keep their word and maintain high predictability. At the same weight, a small organization will concentrate on effective development. To reflect this in the index -coefficients can be added to each of the components. For the sake of politeness, we will make sure that their sum is 1.</p><p>In summary - our index is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7KoEg1fDNe19tj3-xBrTeQ.png" /></figure><p>**Where Vcoef, Qcoef, Ecoef, and Pcoef are the coefficients we chose for our organization.</p><p>And now - congratulations! You have a number that describes your development efficiency. Yes, it’s not a lot - but it’s a start. The ability to describe development efficiency in an agreed and quantitative manner opens up many possibilities for optimization. The number itself does not mean much, but with its help, you can identify better or worse periods, and get a general direction as to what is causing the problem. Equally important -the ability to communicate such a complex subject in a relatively simple way, allows the development organization to be more transparent and self-aware. Correct use of the index creates a situation where it is easy to analyze the development work clearly and improve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c6d9281b612" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/want-to-measure-the-effectiveness-of-development-teams-get-familiar-with-the-deci-index-5c6d9281b612">Want to measure the effectiveness of development teams? Get familiar with the DECI index</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Scala — One year on]]></title>
            <link>https://medium.com/helloheart-rnd/learning-scala-one-year-on-e4236366ae88?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/e4236366ae88</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[scala-programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Ricardo Moreno]]></dc:creator>
            <pubDate>Tue, 12 Apr 2022 09:13:52 GMT</pubDate>
            <atom:updated>2022-04-13T08:15:18.191Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Scala — One year on</h3><p>A shoutout for all the content that empowered me to learn Scala</p><h4>tl;dr; Rundown of books, articles and tutorials that helped me learn Scala. See the end of the post for the list.</h4><h3>Introduction</h3><p>I joined <a href="https://www.helloheart.com/">Hello Heart</a> back in January 2021. Until then, I had never written a line of Scala. Since all the backend code is in the language, I had to become proficient in it as quickly as possible. Learning Scala has been a fun process for me and I wanted to share some insights and some of the materials that helped me get there.</p><h3>Beginnings (1–2 months)</h3><figure><img alt="Newborn kitten being held by a pair of hands" src="https://cdn-images-1.medium.com/max/1024/0*P8UlSjkmBgllGsRM" /><figcaption>Very inexperienced — please hold. Photo by <a href="https://unsplash.com/@sahandbabali?utm_source=medium&amp;utm_medium=referral">Sahand Babali</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It doesn’t matter how much experience you might have — I have learned a few programing languages in the past — learning a new programming language can be overwhelming. Fortunately for me Hello Heart has an excellent onboarding process that includes an in-house Scala tutorial.</p><p>The best support material I had during this time was the <a href="https://docs.scala-lang.org/overviews/scala-book/introduction.html">Scala Book</a>. Alvin Alexander’s <a href="https://alvinalexander.com/">blog</a> was also helpful, as well as the Twitter <a href="https://twitter.github.io/scala_school/">Scala school</a>. During this time I also read <a href="https://horstmann.com/scala/">Scala For The Impatient</a>, by Cay Hortsmann.</p><h3>Getting to grips — making the language work for you (months 3 to 9)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wQKw2waxaO9YSxWk" /><figcaption>Feeling awesome but still inexperienced — Photo by <a href="https://unsplash.com/@tomastuma?utm_source=medium&amp;utm_medium=referral">Tomas Tuma</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After finishing training, I was able to find my way in the company’s source code and even fix some bugs. At this point I realized I needed deeper understanding, so I tried reading <a href="https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/">Category Theory for Programmers</a> by Bartosz Milewski. I also found <a href="https://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html">Functors, Applicatives and Monads in pictures</a>, a blog post by Adit Bhargava.</p><p>Throughout these months I was able to better learn the language tooling (sbt, Intellij) and even adopt newer tools that suit me better (bloop, Metals)</p><h3>First feelings of expertise — fluency, helping others and leading into the future (after 9 months)</h3><figure><img alt="Cat sitting regally on a computer" src="https://cdn-images-1.medium.com/max/1024/0*2t0h8OpZey6pHJ3z" /><figcaption>Computer expert — Photo by <a href="https://unsplash.com/@ijeunes?utm_source=medium&amp;utm_medium=referral">Simon Hrozian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After some time I started feeling more confident. I was able to manage bigger refactors in our code base and have been able to write new code. Some of this expertise was gained by reading more advanced books like <a href="https://www.amazon.com/Reactive-Messaging-Patterns-Actor-Model/dp/0133846830">Reactive Messaging Patterns with the Actor Model</a> by Vaughn Vernon and developing expertise in the<a href="https://www.lightbend.com/"> Lightbend</a> ecosystem which includes the Play Framework and Akka.</p><h3>The future</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*31pLGX95yZ80FdXA" /><figcaption>Becoming a big cat — Photo by <a href="https://unsplash.com/@zmachacek?utm_source=medium&amp;utm_medium=referral">Zdeněk Macháček</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It has been fun to try to see the future of the Scala Programming language. In order to understand this I have been reading <a href="https://www.handsonscala.com/">Hands-On Scala Programming</a> by Li Haoyi and keeping an eye on the development of <a href="https://zio.dev/">ZIO</a> and the <a href="https://typelevel.org/">Typelevel</a> ecosystems.</p><h3>Some final thoughts</h3><p>Learning Scala has been a fun ride. I hope to keep on learning and it will be fun to do it as a team. If you enjoyed reading this you can check Hello Heart’s <a href="https://www.helloheart.com/careers">Careers page</a>. Maybe you can find your chance to write your own story.</p><h3>Appendix: List of reading material by subject</h3><p>Functional Programming:</p><ul><li>Introductory: <a href="https://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html">Functors, Applicatives and Monads in pictures</a></li><li>Advanced: <a href="https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/">Category Theory for Programmers</a></li></ul><p>Introduction to Scala:</p><ul><li>From Java world: <a href="https://horstmann.com/scala/">Scala For The Impatient</a></li><li>From Python/Javascript: <a href="https://www.handsonscala.com/">Hands-On Scala Programming</a></li><li>In a Blog: <a href="https://alvinalexander.com/">Alvin Alexander</a></li><li>A Tutorial: <a href="https://twitter.github.io/scala_school/">Scala school</a></li></ul><p>Scala Reference:</p><ul><li>The <a href="https://docs.scala-lang.org/overviews/scala-book/introduction.html">Scala Book</a></li><li>Akka: <a href="https://www.amazon.com/Reactive-Messaging-Patterns-Actor-Model/dp/0133846830">Reactive Messaging Patterns with the Actor Model</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4236366ae88" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/learning-scala-one-year-on-e4236366ae88">Learning Scala — One year on</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Looking Back at New Year’s Resolutions: A Hello Heart Data Perspective]]></title>
            <link>https://medium.com/helloheart-rnd/looking-back-at-new-years-resolutions-a-hello-heart-data-perspective-ab9c068624bb?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/ab9c068624bb</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[new-year]]></category>
            <category><![CDATA[blood-pressure]]></category>
            <category><![CDATA[hypertension]]></category>
            <dc:creator><![CDATA[Tomergazit]]></dc:creator>
            <pubDate>Sun, 06 Feb 2022 10:16:11 GMT</pubDate>
            <atom:updated>2022-02-09T11:20:21.197Z</atom:updated>
            <content:encoded><![CDATA[<h4>By Andrew Golsch</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42AxPdX0idOsYFejIBf60g.jpeg" /></figure><h4>How’s that New Year’s resolution going?</h4><p><strong>‍</strong>About one in four Americans planned to set a New Year’s resolution heading into 2022, according to a <a href="https://today.yougov.com/topics/lifestyle/articles-reports/2021/12/23/americans-who-plan-make-new-years-resolutions">recent <em>Economist</em>/<em>YouGov</em> poll</a>. The most common themes included: living healthier (23%), personal improvement or happiness (21%), and losing weight (20%). When it comes to follow-through, a majority of people are confident that they will be able to achieve their resolutions. Despite this commitment however, only 55% of resolvers stick to their resolution for a full month, according to a <a href="https://www.sciencedirect.com/science/article/abs/pii/S0899328988800166">study</a> published in the <em>Journal of Substance Abuse</em>. After 6 months, that figure drops to 40%, and by 24 months, 19% report that they successfully stuck to their resolutions.</p><p>This got us wondering — what does Hello Heart data tell us about New Year’s resolutions? So we analyzed aggregated, anonymized data from 12,329 Hello Heart users from Nov 2020 to March 2021 to look for changes, trends, and improvements in key user metrics. Users were grouped into cohorts based on their age, gender, and area deprivation index (ADI).</p><h4>Fact: More people die of heart-related causes during the Christmas holidays than any other time of year.</h4><p>A <a href="https://www.nami.org/Press-Media/Press-Releases/2014/Mental-health-and-the-holiday-blues#:~:text=Approximately%20755%20of%20overall%20respondents,pressure%20and%2057%25%20unrealistic%20expectations.">survey</a> by the National Alliance of Mental Illness (NAMI) showed 63% percent of people report feeling too much pressure during the holiday season. A <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7980726/">2016 study</a> conducted by Journal of the American Heart Association found that 4.2% more people die from cardiac events outside of a hospital between Dec. 25 and Jan. 7 than any other time of year. In fact, this “Christmas holiday effect” is observed in countries worldwide. In 2021, a large-scale <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7980726/">Norwegian study</a> found elevated death rates connected to cardiovascular disease during the Christmas holiday period. Similar patterns were reported in Sweden and Canada as well.<strong>‍</strong></p><h4>Personal health takes a backseat during the holidays</h4><p>While the Christmas holidays are perhaps the most critical time of the year to monitor one’s heart health, we see a dip from November to December in the number of times Hello Heart users log into the Hello Heart app. The chart below shows the % change in app sessions from one month to the next between November 2020 and March 2021. In December, session volume decreased 10% to 30% depending on age group — presumably a reflection of the unique changes in stress and behavior during the holiday season.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KRJUMrxxat_82v_P" /><figcaption>Month-over-month % change in Hello Heart app sessions, by age group</figcaption></figure><h4>New Year’s resolutions drive sustained increases in Hello Heart usage</h4><p>While the holidays bring a relaxed focus on health, the New Year ushers in the promise of a fresh start and a renewed commitment to being one’s best self. In the chart above, January saw a 20–80% increase in app sessions compared to December — a statistically significant jump (p&lt;0.01) across all age groups. Users under 35 years-old saw the most substantial increase in app sessions while each older age group saw progressively smaller increases — a real-world confirmation of <a href="https://www.statista.com/statistics/952321/new-years-resolutions-by-age/">studies</a> that show younger people are more likely to commit to New Year’s resolutions.</p><p>Although some age groups show slight decreases in Hello Heart usage following January, engagement with the Hello Heart app remains higher into February and March compared to pre-January levels.</p><h4>Socioeconomic status &amp; blood pressure monitoring frequency</h4><p>Our next chart shows the average number of monthly blood pressure readings for users between November 2020 and March 2021, grouped by <a href="https://www.neighborhoodatlas.medicine.wisc.edu/">Area Deprivation Index (ADI)</a>. According to The Center for Health Disparities Research at the University of Wisconsin’s School of Medicine &amp; Public Health, ADI “allows for rankings of neighborhoods by socioeconomic disadvantage.” ADI considers factors including income, education, employment, and housing quality, and “can be used to inform health delivery and policy, especially for the most disadvantaged neighborhood groups.”</p><p>High ADI corresponds to socioeconomically disadvantaged groups while low ADI signifies groups that are more well off in comparison.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4ULqIMoEtwFSXclt" /><figcaption>Avg. number of blood pressure readings by Hello Heart users, by socioeconomic status</figcaption></figure><h4>Disadvantaged groups use Hello Heart to monitor blood pressure more than advantaged groups</h4><p>Similar to the first chart, we see a dip in the number of blood pressure readings from November to December across all but one ADI group. However, in January 2021 all ADI groups surpassed the average number of blood pressure readings from the previous two months. Interestingly, while users recorded about 1 less BP reading in February compared to January, both February and March 2021 saw higher levels of blood pressure monitoring across all groups compared to November and December 2020. Hello Heart data shows that high and High-Mid ADI groups perform more blood pressure readings in most months compared to Low and Low-Mid ADI groups.</p><p>But why?</p><h4>Digital health solutions can help address the “wealth-health” gap</h4><p>It’s no secret that socioeconomically disadvantaged people face an uphill battle in the US healthcare system — from <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7314918/">poor access</a> to high-quality affordable healthcare to a <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7073799/">higher prevalence of cardiovascular disease and other heart-related conditions</a>, including hypertension, arrhythmia, and hyperlipidemia according the National Institutes of Health.</p><p>Convenient, easy-to-use, and <a href="https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2785012">proven-effective</a> solutions like Hello Heart may be helping employers bridge the “wealth-health” gap. It may be the case that users in disadvantaged groups are using Hello Heart to supplement less rich healthcare benefits, like high-deductible health plans, which often pay nothing until the member pays thousands of dollars out of pocket. Because people in high-ADI groups suffer more frequently from cardiovascular-related conditions, it may also be the case that Hello Heart users in these groups <em>rely</em> on Hello Heart to better manage and improve their heart health.</p><h4>Sex and Physical Activity: Female users outpace men in January</h4><p>Our final chart looks at the most common New Year’s resolution — ”work out more and be more physically active” — comparing female and male Hello Heart users. This chart shows the average number of daily activities tracked via Hello Heart’s integration with Google Fit and Apple Health. Activities can include walks, runs, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*reFhZRJbIqwn8ah7" /><figcaption>Avg. # of daily activities — Male vs. Female</figcaption></figure><p>Both male and female users trend in the same direction each month, with a statistically significant (p&lt;0.01) increase in activity in January, followed by a gradual decline in February, and then a much steeper decline in March. (Notably, users still exercised more in March than they did in November or December.) This chart seems to be a strong indicator that users are making resolutions to increase their physical activity, but unlike our measurements of blood pressure readings and app sessions, they are having a more difficult time sticking with it after a month or two. Also worth noting is that female users increased their physical activity by 14% more than their male counterparts between December and January.</p><h4>Conclusions</h4><p>While we know that around half of the individuals who make a New Year’s resolution fail to continue that resolution beyond January, Hello Heart’s data shows encouraging signs that our digital heart health program helps users build and maintain healthy habits even if they aren’t always sticking to their lofty New Year’s goals. This is particularly true for blood pressure readings and number of app sessions. The Hello Heart app uses a unique blend of digital coaching, AI, and behavioral science to empower users — in a fun and easy way — to reduce their blood pressure, take control of their heart health, and catch serious heart issues before they occur.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab9c068624bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/looking-back-at-new-years-resolutions-a-hello-heart-data-perspective-ab9c068624bb">Looking Back at New Year’s Resolutions: A Hello Heart Data Perspective</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Validating digital health solutions]]></title>
            <link>https://medium.com/helloheart-rnd/validating-digital-health-solutions-717216e34f0d?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/717216e34f0d</guid>
            <dc:creator><![CDATA[Tomergazit]]></dc:creator>
            <pubDate>Tue, 09 Nov 2021 13:31:00 GMT</pubDate>
            <atom:updated>2021-11-09T15:36:51.567Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I shifted from the lab to “real world” research at scale</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*warsKmvmZlwu3nK0vR1srQ.png" /></figure><p>Hi readers. I’m Tomer Gazit, data team lead at Hello Heart. In this post I’ll tell you about our new research which describes the sustained clinical impact that Hello Heart had on users with hypertension. I will describe how this research, which was recently published in <a href="https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2785012">JAMA Network Open</a>, came to fruition, what our goals were, the obstacles we faced, major findings and what plans we have for the future.</p><p><strong>Introduction</strong></p><p>A recent review in The Lancet from the <a href="https://ncdrisc.org/">NCD Risk Factor Collaboration</a> estimated that 1.2 billion people worldwide suffer from hypertension¹. This estimate includes nearly half of the US adult population, which contributes to <a href="https://www.cdc.gov/bloodpressure/facts.htm">more than half a million deaths</a> each year. Unfortunately, less than a quarter of people with hypertension have adequate control over their condition². Hypertension is often called ‘the silent killer’ because it shows no early symptoms and simultaneously can lead to a host of serious problems including heart attack, heart failure and stroke. Such widespread and long-lasting diseases demand solutions that are both effective and scalable. One of the reasons I joined Hello Heart was to combat this and have the opportunity to make a difference in people’s lives — and do it at scale. Having participated in and managed multiple clinical and research projects in the past, I found that when you want to scale up, you can only go so far with the data you collect in the lab. I believe that large-scale proactive and personalized health maintenance can be achieved by digital health solutions, and to study this, you need to go out into the real world.</p><p>Here’s where we come in. Hello Heart is a clinically-based smartphone solution for patients to track, understand, and improve their chronic conditions. Users are able to build healthy tracking habits and improve their health in real-time with an easy-to-use smartphone application. But, does it work? Can the results be sustained over time? Some studies argued that blood pressure (BP) self-monitoring alone is insufficient to lower BP without other co-interventions, such as lifestyle counseling³. In 2017, we published an initial paper describing a population of 5,115 users who enrolled in the Hello Heart app and followed them for 22 weeks. We found a positive correlation between user engagement and blood pressure reduction, and saw a normalization of BP for 69% of users. This initial study was a first step in proving the validity of our mobile solution for hypertension but we’ve gained traction since then, and we decided to take this to the next level. We now have a database of over 150,000 users who used the app for a period of up to five years, including cohorts that utilized our new features such as connecting to their clinic or to Google Fit / Apple Health and more. Our user population has also changed as we moved from B2C to B2B2C and marketed to self-insured employers who offer chronic health management solutions like Hello Heart to their employees. We wanted to reassess our clinical performances on a large and long-lasting cohort, and were interested in learning about other aspects such as the effect of the solution on potential hypertension crisis, and which factors were involved in the observed clinical outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*Ve0IYNgg549kPma-t4w6Cg.png" /></figure><p><em>Cartoon is copyright to </em><a href="https://cartoonsbyjim.com/"><em>Cartoons by Jim</em></a><em> and reproduced with permission from </em><a href="https://www.hinz.org.nz/page/HiNZCartoonGallery"><em>HiNZ</em></a><em>.</em></p><p><strong>BP change over time — Dealing with random effects</strong></p><p>We recently joined forces with <a href="https://www.ucsfhealth.org/providers/dr-alexis-beatty">Dr. Alexis Beatty</a>, a cardiologist and health systems researcher at The University of California, San Francisco (UCSF) to plan the study. We concentrated on users that (a) registered the app through their employer between January 2015 and July 2020, including 21 companies that participated in the Hello Heart program and (b) started with a systolic BP above what is considered normal (&gt;120mmHg). This resulted in <strong>28,189 users from these 21 companies</strong> that met the study criteria of entering at least two BP measurements. Not a bad starting point! We followed them at multiple time points from the first BP reading: first week (week 0),after 2, 4, 6, 12, 26 weeks, and after 1, 2 and 3 years. The 21 companies made up a diverse group, including large Fortune 500 organizations to smaller businesses. Some of the companies were more technologically-advanced while others were from more traditional industries that utilized minimal technologies. We assumed that users from different companies would interact differently with the app so the first challenge was to adopt a methodology that would take this into account. One option was to average within each company and then perform the statistics at a company level, but such analysis would drastically reduce our statistical power. We wanted to take advantage of our large user population while still controlling for the different variables within the company — in other words, a mixed model design. Mixed design models are useful when observations belong to hierarchical subgroups (companies in our case) within a population so that you can model both fixed effect (across entire population) while taking care of random effects, which are group specific (here is a nice <a href="https://stats.idre.ucla.edu/other/mult-pkg/introduction-to-linear-mixed-models/">conceptual explanation</a>).</p><p>With this approach we found a significant reduction in BP across time and this reduction was sustained for the entire period, up to three years. Systolic BP by year 1 was reduced in 53% of users with baseline elevated BP, 69.7% with baseline stage 1 hypertension, and 85.7% with baseline stage 2 hypertension. Participants who continued the program for three years maintained these lower levels, with a mean (SEM) reduction of 7.2, 12.2, and 20.9 mm Hg systolic BP compared with baseline for those starting with elevated, stage 1 and stage 2 hypertension, respectively. In the next figure you can see BP change across time for users who started with stage 1 (systolic &gt;130 mmHg) or stage 2 hypertension (systolic &gt;140 mmHg):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bN5RhmK2QsdEtrTZh7sgcw.png" /></figure><p><strong>What is engagement?</strong></p><p>Of course we wanted to test the effect of user engagement with the Hello Heart app on BP reduction over time, but how do you measure engagement? One disadvantage of doing research on real world data is that you don’t have control over many aspects of the design: how many times and how long the users use the app, what features they will use, etc. It becomes difficult to conceptualize a ubiquitous measure of engagement. For example, is using the app extensively over the first month better or worse than using it occasionally for a longer time period? Clearly, engagement at week 0 comes from a different distribution than engagement at year 1, etc.</p><p>While every decision has its pros and cons, we decided to proceed as follows:</p><p>(1) Evaluate for each time period how the user is engaged in the app (in terms of number of sessions)</p><p>(2) Compare this value to its peers by normalizing each user’s number of sessions by the mean and standard deviation of that specific time period</p><p>(3) Average these normalized values across “possible” time points to form an overall user engagement score</p><p>(4) Due to the exponential nature of the distribution of the number of sessions, the data was log transformed</p><p>This allowed us to take into account the relative engagement of the user at each milestone as well as the duration of use. The reason I use the word “possible” is that not all users had the chance to reach the three year mark. Again, due to the “real life” nature of the study, people registered at different time points; since we stopped the study in July 2020, a user who registered in July 2019 could only reach the one year mark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZW10bunu00PeGGo3Uzp3A.jpeg" /></figure><p>To classify users into different engagement levels, we used a simple K-means clustering algorithm. Then, we evaluated different Ks and, in accordance with the “elbow” approach (choosing the point where the curve visibly bends from high slope to low slope), and we found a value of three clusters to be informative (as shown in the following figure). Subsequently, we used this as a categorical variable, but also kept the continuous engagement estimation, both of which produced similar results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*PyCLvAHlB7UrSPFXGpJa3g.png" /><figcaption><strong>Classifying to engagement groups</strong>. a. Sum or Square Error (SSE) as a function of K-clusters. b. Counts of users in each engagement group</figcaption></figure><p>In the mixed design model we saw that greater engagement with the app was associated with lower systolic and diastolic BP. These effects can be biased by confounding factors, so we added any relevant information we could get including age, gender, depression, anxiety, diabetes, high cholesterol, smoking, <a href="https://www.neighborhoodatlas.medicine.wisc.edu/">Area Deprivation Index</a>, and regions in the United States. Even after accounting for external factors, the results still showed a significant effect of engagement on BP reduction.</p><p><strong>Engagement and Hypertension crisis — mixed design with categorical variable</strong></p><p>A Hypertensive Crisis (HTC) is a severe increase in blood pressure (systolic &gt; 180 mmHg, diastolic &gt;120 mmHg) that can lead to organ damage and/or stroke. In the descriptive analysis we saw there is generally a gradual rise in BP which becomes steep prior to the potential HTC and then a drastic decrease in BP following (see next figure). We wanted to evaluate cases where there was a rise in BP that had the potential to become an HTC, and examine whether being active in the app had a correlation to the number of HTCs in the following period. We evaluated 882 cases where users had a high BP (systolic &gt; 140 mmHg) and were observed to have an increase of more than 10 mmHg in mean weekly systolic BP over 3 weeks (without systolic BP &gt;180 mm Hg). We wanted to evaluate the association of the number of BP measurements entered into the app with the number of potential HTCs in the following month. We still needed a mixed design model to account for the effects of the different companies but our target variable was the number of systolic readings in the following month which were above 180 mm Hg. When you talk about a target distribution which represents the number of events, it smells like Poisson modeling. But it’s not fair to compare a user that usually enters many BP readings to a user that doesn’t, so you also have to normalize by the number of total BP readings. In this case, we used a generalized mixed model with a Poisson distribution with the number of potential HTCs measured as target and log of the number of total measures as an <a href="https://towardsdatascience.com/offsetting-the-model-logic-to-implementation-7e333bc25798">added offset</a>. Interestingly, we found that the more you measure your BP, the lower the probability of potential HTCs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttQ7HKNaneMByOVtuuih0Q.png" /><figcaption><strong>Suspected Hypertension Crisis (SHTC)</strong>. a. systolic BP rise before and fall after HTC. b. Probability for SHTC as a function of engagement in rise period</figcaption></figure><p><strong>What mediates the effect of engagement on BP reduction?</strong></p><p>We are often asked how our solution works and what changes it ignites that produce the previously described reduction in BP, prevention of potential HTCs and better health in general. This is a difficult question to answer and obviously it is a combination of many actions and lifestyle changes people adopt as part of the solution. This could include any combination of the following: adopting a better diet and losing weight, participating in physical activity, taking their medications more regularly, managing stress better or proactively managing their condition and not waiting for a crisis. Obviously, adding a measurement in the app by itself does not directly reduce BP, but it’s what you do with these measurements and how you manage your health that matters (see this recent report submitted by the <a href="https://validationinstitute.com/">Validation Institute</a> describing the <a href="https://validationinstitute.com/wp-content/uploads/2021/10/Hello_Heart-Savings-2021-Final.pdf">reduction in claims cost for employees that chose to use Hello Heart vs. others</a>). In other words, we suspected there are some factors that mediate the effect of engagement on BP reduction. To explore this, we followed users that either entered their weight in the app or connected their app with Google Fit or Apple Health. We found that for each 1000-step increase in daily steps, there was a 0.8 mmHg reduction in systolic BP (P = .03). But increasing the number of steps you walk in a day is one of the factors that mediate the effect of engagement on BP reduction. Meaning that part of the reason why using the app reduces BP is through the effect of walking more. We did not find such an effect for weight loss. So get out there and move, it’s good for your heart health!</p><p><strong>Conclusions</strong></p><p>After ~15 years of carefully designed lab research, this was my first attempt at doing a “real world” study. As a scientist, you always want to control as many variables as you can, so it’s not an easy transformation to evaluate app usability, but it is definitely rewarding. Once you deal with the obstacles, variability, and unknowns, you get the opportunity to evaluate how people really behave and how an app can improve their health. This study allowed us to describe outcomes from the largest and longest peer-reviewed study on digital therapeutics for management of heart health, showing a sustained and significant reduction in BP for up to three years.</p><p>So what’s next? Well, we’re just getting started. This large database allows us to study and conclude numerous insights on user activity and health, which we hope to use for the benefit of our users. Today, we continue to analyze this dataset and leverage the learnings to develop predictive and forecasting models to detect HTCs and other heart health crises ahead of time. These functionalities will enable Hello Heart to notify users and direct them to seek specific medical care in a timely manner. We are also working on personalizing user experience in the app. This means that users will receive tailored messaging and recommendations that will help encourage them to be proactive and to manage their own health. So stay tuned…</p><h3>Join Us!</h3><p>If you think this is cool, join us! <a href="https://www.helloheart.com/careers"><strong>Visit our careers page</strong></a> to see available related roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*up6tCwptDiGWskQhs-wzDg.png" /></figure><p><em>Cartoon is copyright to </em><a href="https://cartoonsbyjim.com/"><em>Cartoons by Jim</em></a><em> and reproduced with permission from </em><a href="https://www.hinz.org.nz/page/HiNZCartoonGallery"><em>HiNZ</em></a><em>.</em></p><p><strong>References:</strong></p><p>1.NCD Risk Factor Collaboration (NCD-RisC). Worldwide trends in hypertension prevalence and progress in treatment and control from 1990 to 2019: a pooled analysis of 1201 population-representative studies with 104 million participants. Lancet. 2021 Sep 11;398(10304):957–980.</p><p>2 <a href="https://www.cdc.gov/bloodpressure/facts.html">https://www.cdc.gov/bloodpressure/facts.html</a></p><p>3 Tucker KL, Sheppard JP, Stevens R, et al. Self-monitoring of blood pressure in hypertension: a systematic review and individual patient data meta-analysis. PLoS Med. 2017;14(9):e1002389. doi:10.1371/journal.pmed.1002389</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=717216e34f0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/validating-digital-health-solutions-717216e34f0d">Validating digital health solutions</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Redux Middleware for Bluetooth]]></title>
            <link>https://medium.com/helloheart-rnd/redux-middleware-for-bluetooth-3ec7510ba96d?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/3ec7510ba96d</guid>
            <category><![CDATA[redux-middleware]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[bluetooth-low-energy]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Alexander Shtromberg]]></dc:creator>
            <pubDate>Mon, 10 May 2021 08:29:00 GMT</pubDate>
            <atom:updated>2021-05-10T08:29:00.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3mu6Oygz9IvxDonNTfv4A.jpeg" /></figure><h3>Redux Bluetooth Middleware</h3><p>Hi there! I’m Alex, a technical lead at Hello Heart. I was hired initially to rebuild the entire application using React Native (why? You’ll find it on our next blog post. Spoiler alert — best decision ever). Oh boy, what a ride it was. I’ve decided to share with you and the internet some of the experience we have gained. This blog is not another recommendation of a library subset! I swear and sure you can realize the same functionality or\and middleware for the Redux approach with any library subset! I don’t have doubts that you are using the most suitable library for your needs.</p><p><em>Before we can continue, the article requires some basic knowledge of React, React-Native, and Redux.</em></p><h4>Feature overview:</h4><p>We found that <strong>Redux</strong> is a powerful tool that we can use as a main data-flow framework for the application. I like <strong>GraphQL</strong> very much, it is a very strong approach, I haven’t seen a solution that can utilize your API better. Also, I think <strong>MobX</strong> is interesting with its simplicity, but as a company, we decided that the most straightforward way<strong> for us,</strong> to support all our needs and features, is <strong>Redux</strong> and its ecosystem. In our implementation, <strong>data</strong> is transiting between API, UI, selectors, reducer, and persistent storage using Redux features and its store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/0*P9I3p1ahi7Zh2WUD" /></figure><p>If you are looking for answers to more basic questions, or you need a particular explanation of what Bluetooth or Middleware is — these two following articles can be useful, also inspired me to write my as well.</p><p><em>Why and how to use Middleware: </em>Middleware explanations and simple examples <a href="https://itnext.io/using-a-raspberry-pi-to-control-leds-part-iii-react-native-app-29ee3f4afb8c">BleMiddleware</a></p><p>For beginners with react-native or Bluetooth and/or have to support only 1 device, I would recommend you <strong>start from them</strong>;</p><h4>Motivation and design:</h4><p><strong>Bluetooth Low Energy</strong>(<em>BLE</em>) is a popular wireless protocol that is applicable in different fields. Here, at <strong>HelloHeart</strong>, we use BLE to connect to wireless health monitors like <strong>Blood Pressure, Glucose Meter, Digital Scales</strong>, personal <strong>EKG</strong> and <em>synchronize</em> them with our application. The application encrypts data and sends it to our backend. Backend learns AI algorithms with all data we send. Relies on users data and our study, using machine learning, we create<em> personal digital coaching</em> that helps our users track, understand, and improve their needs;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*dEX9a2RDED0WpFMG" /></figure><p>We chose<strong> </strong><a href="https://github.com/Polidea/react-native-ble-plx"><strong>react-native-ble-plx</strong></a><strong> </strong>as a bridge to work with native Bluetooth functionality. We found it well documented, with good code examples, and supports both major platforms(iOS and Android) that we are supporting currently. All basic and usually BLE functionalities are wrapped with JS layers, so on both platforms, we get similar endpoints to processes that act similarly on different platforms. What is specific for platforms, eg: request Bluetooth permissions, or control Bluetooth Module Power — are different according to platform abilities.</p><p>Here is the point, the wisdom we are trying to pass on: Typically <strong>the fewer references to the feature</strong><em>(BLE manager in the blog, but actually any feature)</em><strong> you have in the app — the easier is to control its state</strong>;</p><p>The nature of the feature is much more challenging than it may seem at first. If your app has <strong>multiple devices support</strong>, complex ways of handling them, like some bonding and some pairing devices, or different UI flow for each — <strong>should think about many of possible cases</strong>(eg several devices at the same time, loading Bluetooth Native Layer with messages that the app should convert from bytes to mostly strings) to provide your user a smooth user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*uDada_Pz30VU2EOj" /></figure><p>We have tried different approaches on how to manipulate BLE: <em>singleton</em> manager approach with reference to the manager all over the app, or<em> decorator that passes a reference</em> to the manager that is in saga root generator and trying to handle it there. The main problem is a bottleneck —js- bridge, that we need to control; make it safe, easy to manipulate, and enlarge with different devices or behaviors, encapsulated one! Cause as we have passed a reference to all our instances, especially if we grant abilities to users to control some of them(let’s say — call Scan <em>directly</em>, or call to Connect to the device <em>directly</em>) we are not controlling the feature anymore, the user or an occasion does. So the <strong>approach with BLE in Middleware</strong> seemed the most appropriate to us. It has one creation point, one entry point, all events come in the same place where we easily can control their execution and notify the system, or us, of a new state or issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*eOrKXsmSL35xz4fw.jpg" /></figure><h3>Realization:</h3><p>Let’s get our hands dirty: for the example app, I was using<strong> react-native cli </strong>tool to create the application. Then we installed redux, react-redux, <strong>react-native-ble-plx — </strong>actually, this is all we need to create <strong>react-native </strong>app using BLE. Let’s create an app that performs a scan, shows the result, and allows one of the devices to connect.</p><p>We need to install:</p><pre>redux react-redux react-native-ble-plx</pre><p>The app will be with 3 buttons to control the scanning process and a list of currently connected devices.</p><p>In App.js I’ve added Provider; Redux store was made with pure function <strong>initStore</strong>; the method should be called outside React lifecycle, so, let’s say that store and everything inside is independent of the UI part of the App;</p><p>We got something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6d7ed7fb6180d965414b73025695794/href">https://medium.com/media/e6d7ed7fb6180d965414b73025695794/href</a></iframe><p>The most straightforward here are the reducer and initStore, let’s quickly have a look.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02caecdd4a7a3c90532529a254c3c691/href">https://medium.com/media/02caecdd4a7a3c90532529a254c3c691/href</a></iframe><p>Now, let’s dive deeper into the middleware feature and realization. Again, you can see that defining of BleMiddlewareManager is happening inside createBleMiddleware; Also, check and wrap all code that can potentially throw an error with try-catch. Don’t lose your data and log errors! There are a number of solutions for that on the market such as Firebase Crashlytics, App Center Diagnostics etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/246109402a5aa1bdfa70de9361a4b4de/href">https://medium.com/media/246109402a5aa1bdfa70de9361a4b4de/href</a></iframe><p>And now let’s see step-by-step what is happening:</p><p>Redux middleware is a function that does nothing other than forwarding the action on to the next middleware:</p><pre>const middleware = store =&gt; next =&gt; action =&gt; next(action)</pre><p>So our goal is to get the store and use it with our manager, to let it use state and dispatch events. To do that we are calling and storing <strong><em>store</em></strong> reference to a manager with</p><pre>manager.setStore(store);</pre><p>Inside the method setStore we are doing something that may throw an error, that’s why it is wrapped with try-catch. We want our middleware to work with the application simultaneously, and clear it with the application as well;</p><p>All actions that middleware gets will be passed to the manager with:</p><pre>manager.handleAction(action);</pre><p>And the manager will decide what reaction it has related to the action and current store state. We may have (and highly recommend to) another middleware that can use the same action, so we are not filtering our events from the flow, and are calling to</p><pre>return next(action);</pre><p>at the end of the handler;</p><p>Let’s have a look at the least node of our middleware - BleMiddlewareManager.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70e023a0e447434006c348a248066d9e/href">https://medium.com/media/70e023a0e447434006c348a248066d9e/href</a></iframe><p><strong>handleAction</strong> function of the manager works like the reducer handler does, so the whole functionality should look and be familiar to the developer; <em>Realization with batch and debounce-accumulator is experimental</em>.</p><h3>Epilogue</h3><p>This is the solution we tried. Unfortunately, there is no Right solution, but there are comfortable to work with solutions, also bad ones that we experienced ourselves. In the next article, we will talk about supporting multiple BLE devices with different ways of pairing and reading from them. I hope you liked this approach and you found it interesting.</p><p>Everything that we’ve tried in the article you can find in my repo:</p><p><a href="https://github.com/OneStromberg/ble-rn-middleware">https://github.com/OneStromberg/ble-rn-middleware</a></p><h3>Join Us!</h3><p>If you think this is cool, join us! <a href="https://www.helloheart.com/careers"><strong>Visit our careers page</strong></a> to see available mobile engineering roles, or join other roles at the company</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec7510ba96d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/redux-middleware-for-bluetooth-3ec7510ba96d">Redux Middleware for Bluetooth</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 years of analyzing patients’ heart data revealed 4 fascinating behavioral correlations]]></title>
            <link>https://medium.com/helloheart-rnd/6-years-of-analyzing-patients-heart-data-revealed-4-fascinating-behavioral-correlations-df2d8910a42?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/df2d8910a42</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Michal Gutman]]></dc:creator>
            <pubDate>Sun, 11 Aug 2019 12:43:22 GMT</pubDate>
            <atom:updated>2020-01-27T08:54:44.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxDkxqzJounrkZt2KNE55Q.jpeg" /></figure><h3><strong>6 years of analyzing Hello Heart patients’ heart data revealed 4 fascinating </strong>behavioral<strong> correlations</strong></h3><p>At Hello Heart, our mission is to empower people to understand and improve their health using smartphone technology.</p><p>Our main focus is heart health (you would never have guessed it, right?) because it’s literally the largest problem in healthcare. It’s the <strong>number one cause of death in the world¹: </strong>heart disease causes 1 out of 4 deaths in the United States², and 42% of Americans have high blood pressure (hypertension) and are at high-risk³ of hypertension. It’s also the biggest cost factor in healthcare, costing over $300 billion dollars a year⁴ or roughly <strong>a billion dollars a day.</strong></p><p>Hello Heart’s flagship solution is a hypertension self-management program. It includes an FDA-approved Bluetooth-enabled blood pressure monitor paired with our smartphone app. Users track their blood pressure, weight and physical activity on their phone. The software provides medication adherence reminders and clinically-based digital coaching on lifestyle changes. The program drives meaningful clinical outcomes, outpacing available alternatives by 2–3x.</p><p>As Hello Heart has scaled its industry-leading solution for hypertension management, we’ve generated millions of data points including blood pressure readings, lab results, activity patterns and medication adherence. This incredibly rich and growing data set allows our team to continually uncover insights that drive the evolution of our solution. In this article, we will describe key insights our data has revealed.</p><p>Here are 4 fascinating behavioral correlations we found:</p><p><strong>1. User engagement drives blood pressure reduction, in numbers that have never been seen before.</strong></p><p>A retrospective study of 5,000 participants, conducted by researchers at Harvard and UCLA and published in <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5632340/"><em>Health Information Science and Systems</em></a>, found that use of Hello Heart generated blood pressure normalization for 57% of baseline hypertensives at four weeks and 69% at 22 weeks.</p><p>Researchers also discovered a “dosage effect” — the more people used Hello Heart, the better outcomes they experienced. <strong>After six months, the average drop was 22 points systolic.</strong> This is outstanding for blood pressure reduction and is more than 2–3x the industry average among disease management programs⁵.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTQ1poj7w_aVduzGJoKQTg.jpeg" /></figure><p>The research was led by Dr. Alan Kaplan from UCLA and Dr. Eyal Zimlichman, a lead researcher at Harvard Medical School and the Chief Medical Officer and Head of Innovation at Sheba Medical Center.</p><blockquote>“Many digital health companies have tried to generate patient engagement and move the needle on clinical outcomes at a population health level, but Hello Heart is one of the few that actually made that happen. What is unique here is Hello Heart’s ability to ‘close the loop’ by using data insights and AI to influence patients’ clinical outcomes, driving high engagement with patients over time because they are empowered to understand their condition and want to learn more,” <em>said Dr. Zimlichman.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rq1jhZGSmuLXmR3GCLL49g.jpeg" /></figure><p>When it comes to healthcare best practices, we know that user engagement leads to better clinical outcomes. But since hypertension is a condition you can’t see and feel, user engagement in disease management programs is usually low. It’s so low, in fact, that it’s almost a myth that you can lower blood pressure by increasing user engagement. However, Hello Heart has demonstrated that users in hypertension want to be (and truly can be) highly engaged in their condition, which leads to meaningful clinical outcomes.</p><p>The graph below illustrates that <strong>the more the user is engaged with our program, the greater the blood pressure reduction they experience in the first 4 weeks of use.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aK3nfSjEJbYYp_YFCS964g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvKYFM0pHvKBjRg45h0cXg.jpeg" /></figure><p><strong>2. Hypertensive Crisis: you don’t have to be “Mr. Healthy” to catch risk in time. Even moderate engagement can help you catch a hypertensive crisis.</strong></p><p>According to the American Heart Association, a “hypertensive (high blood pressure) crisis is when blood pressure rises quickly and severely with readings of 180/120 or greater,” where consequences can include stroke, heart attack, heart failure, loss of consciousness, and damage to the eyes and kidneys, which are all catastrophic clinical events.</p><p>Statistically, a portion of people with high blood pressure would always end up having a hypertensive crisis. Education of this risk, immediate attention, and thoughtful action are critically important at this stage. Enter: Hello Heart.</p><p>Hello Heart’s engagement remains consistently higher than the industry average, as seen across our users. In the case of one of the world’s largest airliners implementing Hello Heart, after one year in the program, nearly 80% of participants are still well engaged in the program.</p><p><strong>But what about users who are not highly engaged on a daily basis? Does the Hello Heart solution still help them?</strong></p><p>YES. Moderate engagement can still help patients catch risk in time.</p><p>We looked at the type of users that were able to catch a hypertension crisis in time using Hello Heart.</p><p>When users logged in to check their blood pressure (likely after a nudge from Hello Heart), they received notifications alerting them that their blood pressure was too high and it was very likely they may be experiencing a hypertensive crisis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxlAoDpKjw2C2co3ZxC6mw.jpeg" /></figure><p>Unlike most digital health solutions on the market, Hello Heart requires only a smartphone for access — <em>something people already carry with them everywhere</em>. Because of the software-only solution and ease of use, even patients in the lowest engagement categories can still catch a hypertensive crisis in time by logging in every couple of weeks. The convenient, easily-accessible digital program allows them to potentially catch the risk in time, avoid a catastrophic event, and save on healthcare costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dCC_6HLe0pYa-n0QzqylHA.jpeg" /></figure><p><strong>3. Good news for couch potatoes! The strongest correlation between blood pressure reduction and activity level is linked to 10 minutes of walking per day — not an hour or 10,000 steps.</strong> We examined the relationship between physical activity and blood pressure reduction. Surprisingly, we initially didn’t find any clear correlation…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Dsa6atxULo7g5P_ItunUw.png" /></figure><p>But after looking at the data in depth, we saw that users who have very low activity levels (almost no movement), who <strong>began walking 60 minutes a week for a period of 4 weeks, reduced their systolic blood pressure by an average of 8.25 points!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyaeHhUX8DGYI26jnR7-Mw.png" /></figure><p>So, if individuals are super active, adding more activity probably won’t change their blood pressure substantially. However, if they live a sedentary lifestyle, adding just 10 minutes of walking a day can make a HUGE difference. So start with that!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKklIieRKm8yW1PM0bvKwQ.jpeg" /></figure><p><strong>4. You can lose weight without trying to lose weight. Although Hello Heart has no weight reduction guidelines, users who lowered their blood pressure also reported lower BMI.</strong></p><p>The Hello Heart program allows users to track their weight, and 30% of our users actively self-report weight. However, the program is not focused on driving weight loss. So, we wanted to see if a reduction in blood pressure also influences weight. The results were somewhat expected but still very exciting: <strong>There is a direct correlation between users’ BMI and their blood pressure.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxdCMRX_1bJec_LZ1ujh0Q.png" /></figure><p>The graph below shows how the change in BMI affects the change in blood pressure after six weeks. Users who focused on managing their blood pressure also reduced BMI. Apparently, it’s possible to lose weight without trying to lose weight!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RERAEs-sCI2hbgCsSR-TjQ.png" /></figure><h4>Summing up</h4><p>One thing is clear from these findings: Awareness, tracking, and understanding of blood pressure are key factors for decreasing the chance of heart disease and increasing the chance of catching a heart crisis in time. The findings also support the known correlations between BMI, physical activity, and blood pressure.</p><p>Hello Heart will continue to lead the hypertension and cardiovascular disease prevention market by adding in-depth predictive algorithms and features to help patients mitigate serious risks in time. We have also recently launched a partnership with OneTouch to allow patients to monitor and manage type 2 diabetes. We are committed to the ongoing expansion of our offerings to patients who want to take control and improve their health.</p><h4>*These findings are based on 100% anonymized and aggregated data that cannot be traced back to specific Hello Heart users.</h4><p><em>[1] “The Top 10 Causes of Death.” World Health Organization, World Health Organization, 2018, </em><a href="http://www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death."><em>www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death.</em></a></p><p><em>[2] “Heart Disease Facts &amp; Statistics.” Centers for Disease Control and Prevention, Centers for Disease Control and Prevention, Nov. 2017, </em><a href="http://www.cdc.gov/heartdisease/facts.htm."><em>www.cdc.gov/heartdisease/facts.htm.</em></a></p><p><em>[3] “More than 100 Million Americans Have High Blood Pressure, AHA Says.” </em><a href="http://www.heart.org,/"><em>Www.heart.org,</em></a><em> 2018, </em><a href="http://www.heart.org/en/news/2018/05/01/more-than-100-million-americans-have-high-blood-pressure-aha-says"><em>www.heart.org/en/news/2018/05/01/more-than-100-million-americans-have-high-blood-pressure-aha-says</em></a></p><p><em>[4] “Heart Disease Facts &amp; Statistics.” Centers for Disease Control and Prevention, Centers for Disease Control and Prevention, Nov. 2017, </em><a href="http://www.cdc.gov/heartdisease/facts.htm."><em>www.cdc.gov/heartdisease/facts.htm.</em></a></p><p><em>[5] Uhlig, K., (2012). Self-Measured Blood Pressure Monitoring: Comparative Effectiveness. Agency for Healthcare Research and Quality (US). <br>“Improving patient engagement in self-measured blood pressure monitoring using a mobile health technology.” Alan L. Kaplan, Erica R. Cohen, Eyal Zimlichman. 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df2d8910a42" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/6-years-of-analyzing-patients-heart-data-revealed-4-fascinating-behavioral-correlations-df2d8910a42">6 years of analyzing patients’ heart data revealed 4 fascinating behavioral correlations</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LocalStack — mocking AWS for local development]]></title>
            <link>https://medium.com/helloheart-rnd/localstack-mocking-aws-for-local-development-fc37c8f4c947?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/fc37c8f4c947</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[mock]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[localstack]]></category>
            <dc:creator><![CDATA[Daniel Shalev]]></dc:creator>
            <pubDate>Sun, 14 Apr 2019 10:29:35 GMT</pubDate>
            <atom:updated>2019-04-28T07:38:34.801Z</atom:updated>
            <content:encoded><![CDATA[<h3>LocalStack — mocking AWS for local development</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzQmG7vD4EZTz4rMw3afTQ.png" /></figure><p>As Hello Heart’s R&amp;D team, we are responsible for developing a mobile solution that helps our users to track, understand and improve their health conditions.</p><p>Our backend is built using Scala on top of Play framework and deployed in AWS, taking advantage of an array of AWS services including S3, SQS, and more.<br>In this blog post I will focus on the advantages of running LocalStack in our development environment, and will share a simple how-to guide for integrating LocalStack with Play framework for local development.</p><h4>What is LocalStack</h4><p><a href="https://github.com/localstack/localstack">LocalStack</a>, which started within Atlassian, and now an independent open source project, is a fully functional local AWS cloud stack which allows you to develop and test your cloud apps offline.<br>LocalStack is built on top of existing mocking tools like Moto, and Dynalite for example, and supports 22(!) AWS services including S3, Kinesis, SQS, Lambda, DynamoDB, and more.</p><h4>Why LocalStack</h4><p>As mentioned above, our Play backend communicates with AWS services in order to perform some of its tasks, for example we use SQS as our queuing system, and S3 for static files storage.</p><p>When developing a backend feature that relies on a queuing service, we need to somehow have a similar service on our local machine in order to debug and test the new feature, Given we’re using SQS in production, and we want our deployment to production to be as safe and simple as it can be, we want this queuing system to be similar to our production queuing system.</p><p>The first thing that comes to mind is using a real AWS SQS queue for development. This is very much possible but has a few downsides:</p><ol><li>Debugging: Using SQS for local development means you will sometimes want to observe the contents of the queued messages, and that they are moving in and out of the queue as expected. This means the developer requires access to SQS, and depending on your access policy you will need to give and manage permissions and rules for developers.</li><li>Isolation: Separating between development and production will require you to manage another AWS environment that hosts queueing for development, which even means more configuration, and management overhead.</li><li>Cost: Depending on your use case, having additional environments and services in AWS will cost more money.</li><li>Testing effort: Mocking AWS services in unit and integration tests is much more efficient than writing code to simulate these services by yourself, or having your tests communicate with live AWS services.</li></ol><p>Considering the downsides, and our requirement for services that are similar to our production services, we chose to use LocalStack as a local development cloud environment. LocalStack has the advantage of an easy to use open source framework, with a large community (~16,000 Github stars) and the exact same API as our production services. This approach will save us time and resources, and all of this is free.</p><h4>Example time</h4><p>Let’s build a simple Play application that uses SQS and expose a single endpoint. Every call to this endpoint will add an item to the queue for other services to consume. For this tutorial we will use docker-compose to run LocalStack.</p><p>Prerequisites: <br>1. <a href="https://www.scala-sbt.org/">sbt</a><br>2. <a href="https://www.docker.com/">docker</a><br>3. <a href="https://aws.amazon.com/cli/">aws-cli</a><br>4. <a href="https://www.scala-lang.org/">scala</a></p><p>First, we will create a docker-compose configuration:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8328c4202a019b1f29314d2097700ca7/href">https://medium.com/media/8328c4202a019b1f29314d2097700ca7/href</a></iframe><ol><li>Run this using</li></ol><blockquote>docker-compose run</blockquote><p>2. If you are in macOS use</p><blockquote>TMPDIR=/private$TMPDIR docker-compose up</blockquote><p>3. Now create a new play application using sbt</p><blockquote>sbt new playframework/play-scala-seed.g8</blockquote><p>Use application name localstack-example when prompted</p><p>In your build.sbt file add aws java sdk for S3 and SQS</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e602e492fba26364ae0e8d21c1adc818/href">https://medium.com/media/e602e492fba26364ae0e8d21c1adc818/href</a></iframe><p>Delete the auto generated HomeController and create ExampleController:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/239ef067e37e2fc4d48ae8f8ab6ea052/href">https://medium.com/media/239ef067e37e2fc4d48ae8f8ab6ea052/href</a></iframe><p>Pay attention to lines 20–23, when running the application in dev mode, we are changing the endpoint configuration to use LocalStack. This way the application will use LocalStack for dev mode and SQS for production mode.</p><p>Lets add those endpoints to application.conf</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5476537c8471d1729019c85d2ba5b77/href">https://medium.com/media/b5476537c8471d1729019c85d2ba5b77/href</a></iframe><p>Your routes file should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ca8799ea1733ec00f84a90da35c570a/href">https://medium.com/media/9ca8799ea1733ec00f84a90da35c570a/href</a></iframe><p>Great, we’re all set! Now let’s create our S3 bucket and SQS queue in LocalStack using aws-cli. <br>From your command line run:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56ddd2395614b016e71c4c13484c52ff/href">https://medium.com/media/56ddd2395614b016e71c4c13484c52ff/href</a></iframe><p>We are ready to run our Play application:</p><ol><li>In the Play folder run:</li></ol><blockquote>sbt run</blockquote><p>2. and in another tab:</p><blockquote>curl ‘<a href="http://localhost:9000/&#39;">http://localhost:9000/&#39;</a></blockquote><p>This is it! Now check that the file was uploaded to LocalStack S3, and a message was added to the queue</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75cde71a18941e04def163231fe00553/href">https://medium.com/media/75cde71a18941e04def163231fe00553/href</a></iframe><p>You should be able to see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*u_TKu3ntvTKwvZoQnfS-tA.png" /></figure><p>Now check the queue:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3f10a9bab4a882f5e6313ef90b1f256/href">https://medium.com/media/d3f10a9bab4a882f5e6313ef90b1f256/href</a></iframe><p>And this should result with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wt9z0O6wT3ktc1Bu_vKmqQ.png" /></figure><p>All done! We built a tiny Play application that communicates with LocalStack services when running locally, and AWS services when running in production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc37c8f4c947" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/localstack-mocking-aws-for-local-development-fc37c8f4c947">LocalStack — mocking AWS for local development</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coderetreat — or why you should go and do it!]]></title>
            <link>https://medium.com/helloheart-rnd/coderetreat-or-why-you-should-go-and-do-it-a9fb6371f643?source=rss----3550df0af08b---4</link>
            <guid isPermaLink="false">https://medium.com/p/a9fb6371f643</guid>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[code-retreat]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Michal Gutman]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 06:49:20 GMT</pubDate>
            <atom:updated>2019-02-08T06:49:20.121Z</atom:updated>
            <content:encoded><![CDATA[<h3>Coderetreat — or why you should go and do it!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rw8NPKe_fXAQs5-G-pyoBw.jpeg" /></figure><p>Once a year, Hello Heart employees from all over the world are gathering in one place to review the past year and plan next year goals and roadmap.</p><p>This year we decided to try something new and dedicate a whole day for a skill and improvement workshop for each department.</p><p>Hello Heart R&amp;D is a diverse group, from culture to expertise. How can we find one workshop that will benefit everyone?</p><p>We decided to start from a goal list, what we want to achieve in this kind of workshop:</p><ol><li>Encourage teamwork — as a thriving startup, each engineer has its own responsibilities and projects. We don’t find time to switch between them and work with people from different teams.</li><li>Tackle problems in new ways — our group is comprised of top-notch seniors engineers, but as a result, when it comes to solving a problem, we are all focusing on how we already know to solve problems and don’t explore new directions</li><li>Step up our game — we want to be the best at what we do and improve all the time, but in a real-world environment, we don’t have time to brush up on the basic principles we learned earlier in our career.</li><li>Healthy competition — because who doesn’t like a good win? Especially when it comes to engineers :)</li></ol><p>After defining our goals it was easy to find the workshop for us — Coderetreat!</p><p><strong>What is a Code Retreat?</strong></p><blockquote>Coderetreat is a day-long, intensive practice event, focusing on the fundamentals of software development and design. By providing developers the opportunity to take part in focused practice, away from the pressures of ‘getting things done’, the Coderetreat format has proven itself to be a highly effective means of skill improvement. Practicing the basic principles of modular and object-oriented design, developers can improve their ability to write code that minimizes the cost of change over time. (taking from <a href="http://www.coderetreat.org/">www.coderetreat.org</a>)</blockquote><p>Basically, it means taking a step back from our daily race toward new features and go back to the basics. Remember what made us love programming and brush up some fundamental principles of good software like SOLID and the 4 rules of simple design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*comaEuWWN9LHz33q5Cw0ZQ.jpeg" /></figure><p><strong>Now what?</strong></p><p>First, we needed to decide if this is something we wanted to handle in-house or use an external facilitator. We decided to go with an external facilitator for the simple reason we wanted everyone to join. If you have the extra budget for it, we recommend you to do the same.</p><p>We approached <a href="http://articles.coreyhaines.com/">Corey Haines</a>, who is one of the founders of Coderetreat initiative and we were lucky enough that he was willing to join us in this event!</p><p>From that point, the rest was on Corey’s shoulders, and as expected he did an amazing job!</p><p><strong>Let’s program!</strong></p><p>The day consisted of five sessions with the goal to implement <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway’s Game of Life</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAKrqYuoq7F1xCrVUzbCyw.jpeg" /></figure><p>In each 45 minute session, we were coding in pairs, mixing the pairs after each session. The pair were forced to delete their previous work (believe me, you don’t know how hard it is until you try!), choose a common language and go bananas. By mixing pairs, we were able to work closely with teammates we don’t usually have the opportunity to work with, which was a ton of fun.</p><p>Sounds relatively easy, right? Think again! The first session was pretty straight forward but afterward… each session introduced a new constraint designed to force you out of your comfort zone and make you doubt the things you know. For example, you must write your entire program with no if statement. A small break for jaw drop.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6ZtdVxPKVu1tq8Fi%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FOriginals-amazed-shocking-say-what-3o6ZtdVxPKVu1tq8Fi&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o6ZtdVxPKVu1tq8Fi%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/d586ae14e5bd59eac7edc169e0a9bee0/href">https://medium.com/media/d586ae14e5bd59eac7edc169e0a9bee0/href</a></iframe><p>The most interesting part for me was the last session in which we were asked again to implement Conway’s Game of Life without the previous constraints. This gave us the opportunity to really reflect on the progress we’ve made during the day and see how far is our code from 8 hours ago.</p><p><strong>Conclusion</strong></p><p>At the end of the day, we were exhausted but satisfied.</p><p>Besides the simple fact that this day was a lot of fun, we successfully answered our goal list. We left the CodeRetreat with a better understanding of how to write clean, simple and flexible programs that minimize the cost of change over time. Big win for everyone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9fb6371f643" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helloheart-rnd/coderetreat-or-why-you-should-go-and-do-it-a9fb6371f643">Coderetreat — or why you should go and do it!</a> was originally published in <a href="https://medium.com/helloheart-rnd">Hello Heart / Tech Org.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>