<?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[PEBMED - Medium]]></title>
        <description><![CDATA[Usamos a tecnologia para melhorar a saúde do Brasil através do apoio aos profissionais de saúde - Medium]]></description>
        <link>https://medium.com/pebmed?source=rss----c27394720d78---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>PEBMED - Medium</title>
            <link>https://medium.com/pebmed?source=rss----c27394720d78---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:44:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/pebmed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Favourite Principles in Software Engineering]]></title>
            <link>https://medium.com/pebmed/my-favourite-principles-in-software-engineering-1f2df793eb42?source=rss----c27394720d78---4</link>
            <guid isPermaLink="false">https://medium.com/p/1f2df793eb42</guid>
            <category><![CDATA[dry]]></category>
            <category><![CDATA[kiss]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[pareto]]></category>
            <dc:creator><![CDATA[Luan Fagundes]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 16:42:47 GMT</pubDate>
            <atom:updated>2020-08-17T16:44:19.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wnRWw29OXgD_gkjmhmyxlg.jpeg" /></figure><p>I have been working as a Software Engineer for several years, and I have a different approach depending on the problem I face. I like to use some principles in software engineering that help me overcome most of these problems.</p><p>So, underneath I decided to share my favorite principles and I hope It can be useful to you. Enjoy the text.</p><h4><strong>Divide and Conquer</strong></h4><p>One of the most common approaches that can even be used in other contexts that Software engineering. It is simple to break a problem into small pieces then solve each part until you complete the big problem.</p><p>A scenario that is very normal to happen is when I have a regular expression. I start to match a small piece of text, then move forward to match another and so on until I match the whole piece I’m looking for.</p><h4><strong>Principle of good enough</strong></h4><p>Does WordPress fill the expectations of my team and the users?</p><p>By starting asking a simple question about the solution we can avoid going too far in any strategy we are planning.</p><p>Every day I see people complaining about that some technology is not good enough to perform such a job and should be something more trend or easy. But, It is important to remember about objectives and expectations on the product itself.</p><h4><strong>Pareto principle 80:20</strong></h4><p>For many events, roughly 80% of the effects come from 20% of the causes.</p><p>I like to take advantage of the 80:20 rule when I’m dealing with performance issues because I put my effort into that 20% that causes 80% of trouble in my application.</p><h4><strong>KISS</strong></h4><p>A new functionality came up and my brain starts to work out ways to solve this using a design pattern, tool, library, etc. Suddenly, I realize I’m over-engineering that solution instead of KEEP IT SIMPLE, STUPID.</p><p>Coding is a creative process and because of the many possibilities we have, It is very easy to lose ourselves in complex solutions. So, while you are planning how to develop the functionality try to think how far do you want to go in terms of complexity.</p><h4><strong>DRY</strong></h4><p><em>Don’t repeat yourself</em> can help you to develop more abstract code avoiding duplications in your codebase.</p><p>I’m not saying to create big Utils classes, but It could be a good idea to create more specialized classes and modules.</p><h4><strong>Perfect is the enemy of good</strong></h4><p>Coding is one way to express my creativity and how smart I am. After finishing my job or my task, I want someone that reviews my code to feel pleasant about how perfect it is. But in real life, we have to meet a deadline that makes your code not always be perfect as you expect. More than perfect, It should be in production up and running without bugs.</p><h4><strong>Proof of concept (POC)</strong></h4><p>Proof of concept will lead you to understand and measure how tangible is to implement a feature or validate a technical capability of any implementation in your application.</p><p>Very common when I have a third party service to implement or integrate.</p><h4><strong>Rule of thumb</strong></h4><p>Trust in your workmates, since theory sometimes will not beat experience or practice. Some conditions are better to make use of the rule of thumb. Ask your colleague’s opinion when you get stuck in something that maybe someone has overcome in the past.</p><h4><strong>You aren’t gonna need it</strong></h4><p>Let’s add more related methods inside this class, someone could need one day. This is a legitimate true intention. However, good intentions are not always valuable for your project. I like to think when I need, I’ll include it. And the great news is, fewer tests to write, fast builds, and smaller files.</p><h4><strong>Easier to Change</strong></h4><p>By far my favorite principle. We get used to writing a code that should scale, be robust, and so on. Now, what if that amazing solution did not meet our expectations? Yes, you have to remove but sometimes is not easy as we think, so let’s leave it. (very common)</p><p>The next time you discover that library, package, or framework, try to answer if something goes wrong how easier it&#39;s to change? Just in case.</p><p><em>Remember, planning is half the job done, and using one or some of those principles would make your job a lot less stressful.</em></p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f2df793eb42" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pebmed/my-favourite-principles-in-software-engineering-1f2df793eb42">My Favourite Principles in Software Engineering</a> was originally published in <a href="https://medium.com/pebmed">PEBMED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering subscriptions in iOS: What's new from WWDC 2019]]></title>
            <link>https://medium.com/pebmed/mastering-subscriptions-in-ios-whats-new-from-wwdc-2019-87f8f713974e?source=rss----c27394720d78---4</link>
            <guid isPermaLink="false">https://medium.com/p/87f8f713974e</guid>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[in-app-purchase]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[subscription]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Pedro Gemal]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 13:42:15 GMT</pubDate>
            <atom:updated>2020-01-17T23:50:24.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTla3XeXOpPuyML3txPEfg.jpeg" /><figcaption>Offering multiple products with in-app subscriptions may be tricky. Here are some tips for what to (and not to) do.</figcaption></figure><p>Every year, as Apple Worldwide Developers Conference (<strong>WWDC</strong>) 2019 takes place in San Jose, California, new features and innovations are presented to the world.</p><p>As a developer that works daily with managing products running on subscription business model, it is extremely important to be up to date to all what&#39;s new from this standpoint.</p><p>Based on sessions <a href="https://developer.apple.com/wwdc19/302">302</a> and <a href="https://developer.apple.com/wwdc19/305">305</a> of this year&#39;s WWDC, and also on the following documentations (reach them in the end of this post), I’ve written some valuable tips for anyone willing to strive on subscriptions taking all the advantages of Apple In-app Purchases.</p><p>To start, 3 sentences to sum up what will change your life from now on regarding App Store Connect:</p><ol><li>Testflight: They reinforced the value of using public links for distribution to external testers. Now they’ve done Testflight Localization and included a feedback feature.</li><li>Feedback (screenshot and crash). Through the App Store Connect, we now can manage feedbacks.</li><li>Localization: Included more languages ​​and facilitated multi-country distribution. This will even be portrayed on product pages.</li></ol><p>And now, the most expected part of this article, <strong>what is really</strong> <strong>hot and</strong> <strong>new in StoreKit and subscriptions.</strong></p><p>While coding and testing the purchase flow, please make sure to note 3 important coding tips:</p><pre>SKStorefront: Used to display customer-specific purchases (by countryCode and device type).</pre><pre>TransactionObserver: you now can reload your product list based on StoreFront return. There is now an observer to validate that the purchase items offered are correct by region.</pre><pre>Pre-Orders App: It will become a parameter within the receipt to know which customers pre-ordered the product.</pre><p>While testing your subscriptions in your backend, please note that there will be a couple of new things regarding Server-to-Server Notifications.</p><p>First of all, please make sure you always return a 200 status code when receiving any notification.</p><blockquote>If you don&#39;t return a status code, you may receive the same notification again (up to three times) and this will mess things around. Believe me, I&#39;ve been on this place before. More than once.</blockquote><p>Also, make sure to comply with App Transport Security (currently managed by the subscription library).</p><p>Regarding receipt data, new fields will be added:</p><pre>unified_receipt<br>latest_receipt<br>latest_receipt_info<br>pending_renewal_info<br>status<br>environment</pre><p>As presented, unified receipt will now return the entire receipt on trigger [with limit of last 100 purchases] (which previously returned in / verifyReceipt). For more than 100 purchases from the same receipt (if you need this history indeed) they will stick with the verifyReceipt endpoint.</p><h3><strong>What about server-side notifications?</strong></h3><p>Regarding the notifications, there is a lot of new features (similarly, but at the same time differently, from what&#39;s been developed on Google&#39;s RTDN). Please make sure to handle the new ones (always looking for the lockup with original_transaction_id):</p><ul><li>DID_CHANGE_RENEWAL_STATUS: Whether the user cancels the automatic renewal. This must be the trigger for callback actions. Look at the following payload fields: auto_renew_status (true, which means it will renew, or false — always as a string). This notification is already available for the public.</li><li>DID_FAIL_TO_RENEWAL: Renewal charge failed. This is the case with grace period (“inactive” or “billing retry”). Make sure to look for the is_in_billing_retry_period field (1 represents being charged). The expires_date is in the past, as it would be the renewal date. This notification, and the following, are not yet available.</li><li>DID_RECOVER: This mean that the user was retrieved during retry. This may replace the renewal trigger. The renewal date may not change [unlike in Google Account Hold]. Must become subscription state as “active”.</li><li>PRICE_INCREASE_CONSENT: User has entered in the price change flow; this will include a field in the payload (price_increase_date). They recommend using a flag for this subscription (something like “price increase”). Make sure to track the payload price_consent_status (0/1) field.</li></ul><p>Regarding the already known notifications, they also presented some tips:</p><ul><li>INITIAL_BUY: Sent on user’s first in-app purchase. They recommend us to use some active / subscriber flag and make sure to enable the product usage immediately; content purchase_date_ms represents the start date of the subscription; web_order_line_item_id links purchase with other notifications.</li><li>INTERACTIVE_RENEWAL: will always come with a CANCEL notification (in case of upgrade); however, if the user re-subscribed after churn, we will only receive the trigger from INTERACTIVE_RENEWAL.</li><li>DID_CHANGE_RENEWAL_PREF: When user downgrades inside a subscription group.</li><li>CANCEL: When the user cancels through customer support, but also if he has upgraded his subscription. Make sure to track cancellation_date_ms.</li></ul><h3>So, how about a full subscription lifecycle?</h3><p>This was really helpful, and I do recommend you guys checking the videos listed in the beginning of this post. Regarding the subscription lifecycle itself, they also made some recommendations. When the new user subscribes, in addition to saving the original_transaction_id, they recommend us to link web_order_line_item_id to link with notifications (at this time, you will receive INITIAL_BUY’s). <br>In the case of renewal, there is no notification at this time. We follow with `/verifyReceipt` endpoint.</p><p>In case of subscription upgrade, CANCEL and INTERACTIVE_RENEWAL notifications will be sent. At this time, they recommend us keeping track the date of the upgrade (something like &quot;upgradeDate&quot;).</p><p>In case of cancellation, we recommend that we no longer use/verify Receipt, but rather DID_CHANGE_RENEWAL_STATUS notification.</p><p>For billing errors, look for DID_FAIL_TO_RENEW notifications. From then on, wait for DID_RECOVER in case billing retry works.</p><p>A small pause to talk about billing retry: They&#39;ve updated retry models using ML and new techniques, and concluded that most recoveries (80%) are within the first 16 days. On any recovery, make sure to immediately release the service (never too much to repeat this). Also, please note that the renewal date will be modified (subscription starts a new billing cycle and the paid service days are reinstated).</p><p>Another great announcement: Billing grace period will be also available! To implement it, you will need to authorize on App Store Connect (default will be 16 days — unlike Google Play, where you may select from a few options). The verify receipt endpoint will now contain a key referred to as the grace_period_expires_date in the payload. It may make sense to keep this date in your database, as well as for other platforms. For billing retry customer messaging, they reinforce the recommendation to use deeplinks to this path: apps.apple.com/billing. Now, Apple customer&#39;s can have up to 10 forms of payment, and the best way for each case will be chosen.</p><h3>So, that&#39;s it?</h3><p>This is just the first part of this session covering what&#39;s new about subscriptions in WWDC 2019. Make sure to look for part 2, where I will cover all about subscription offer best practices. See you soon! Any feedback will be appreciated!</p><h3>Additional resources</h3><ul><li><a href="https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html">https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html</a></li><li><a href="https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html">https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html</a></li><li><a href="https://developer.apple.com/app-store/subscriptions/">https://developer.apple.com/app-store/subscriptions/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f8f713974e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pebmed/mastering-subscriptions-in-ios-whats-new-from-wwdc-2019-87f8f713974e">Mastering subscriptions in iOS: What&#39;s new from WWDC 2019</a> was originally published in <a href="https://medium.com/pebmed">PEBMED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>