<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Christopher Allène on Medium]]></title>
        <description><![CDATA[Stories by Christopher Allène on Medium]]></description>
        <link>https://medium.com/@crsohr?source=rss-572ea0d2c27a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Y87ZrGFhETW8tUJMrpXjrw.jpeg</url>
            <title>Stories by Christopher Allène on Medium</title>
            <link>https://medium.com/@crsohr?source=rss-572ea0d2c27a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:22:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@crsohr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I wrote, using my iPad, one of the largest app submitted to App Store Connect]]></title>
            <link>https://medium.com/@crsohr/how-i-wrote-using-my-ipad-one-of-the-largest-app-submitted-to-app-store-connect-b91fc98ab179?source=rss-572ea0d2c27a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b91fc98ab179</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Christopher Allène]]></dc:creator>
            <pubDate>Tue, 14 May 2024 16:08:31 GMT</pubDate>
            <atom:updated>2024-05-20T12:30:03.717Z</atom:updated>
            <content:encoded><![CDATA[<h3>The story of one of the largest app written from an iPad, submitted to App Store Connect</h3><p>This story is about an app I wrote on my iPad. With about ~1MB of source code, this is <em>probably </em>one of the largest ever sent to Apple. At first glance, nothing shows it has <em>not</em> been made on a computer: the app looks, and feels, like any app should. To give an idea, if I had written a book instead, it would have slightly more characters than the first two Harry Potter’s combined, <em>The Philosopher’s Stone</em> and The <em>Chamber of Secrets.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MuQKzT97Phtjo82PX-b-g.jpeg" /><figcaption>What a lovely setup to write an app.</figcaption></figure><p>Although the journey was fun, let’s be honest, there were a lot of bumps along the road. Swift Playgrounds occasionally falls short, and then you have to find your way.</p><p>In this article, we’ll jump through hoops that are general to many advanced iPad use cases, like using a version control system, edit files in bundles, how using a Mac could still be necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7x1Nnobe0gtPfjftOrr6eQ.png" /><figcaption>The iPad development experience.</figcaption></figure><p>We’ll also cover stuff more related to <em>coding</em> by itself, like improving compile time, use hardware-accelerated computations, change settings not accessible from the UI.</p><p>I believe this will be interesting to read, even if you’re not a software developer yourself, because for some reasons, it highlights some of the limitation of the platform, how users can turn around them, and, hopefully, how iPad will be even better in the future.</p><h3>Is iPad (almost) the new Mac (yet)?</h3><p>In 2020, I wrote my first Medium article, that somehow quickly got popular, claiming: <a href="https://medium.com/swlh/the-ipad-is-the-new-mac-d0c0b0cb8074">The iPad is the new Mac</a>. We were having a pandemic, and the world went weird, for a lot of reasons. With time to spare, I designed a website from my iPad, from sketching, to design, to actual programming and delivery. I loved the iPad experience, and since felt a special connection to the tablet.</p><p>Fast forward to 2024, the world moved on. iPad continued to improve, its software getting better and better, especially with the release of iPadOS 16. Where are we now?</p><h3>Swift Playgrounds, aka XCode Mini or XCode Air</h3><p>With WWDC 2021, Apple release Swift Playgrounds 4, a new way for developers to use Swift directly from an iPad, and publish apps on the App Store.</p><p>This is the moment I started playing with writing apps on iPad. I played with Swift code in the past, but never on full-scale projects, and, to be honest, Swift Playgrounds can be fun to use, with its paradigm that everything you type on the editor gets reflected immediately in the <em>app preview </em>pane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GpCT9hqXNw9Ihan0J9MTsw.gif" /><figcaption>A Swift Playgrounds project saying hello, and updating in real time</figcaption></figure><p>However, while Swift Playgrounds has the basics, it misses many features of the full-fledge XCode. No debugger, no profiler, a limited subset of entitlements you can add to your app (no push notifications support, or WeatherKit entitlement, for example), no support for Apple Watch, no support for extensions of any kinds which means no WidgetKit support… We’ll get to that later, some of these limitations can be worked around, but alas, some cannot. If you need them, you need <strong>Swift Playgrounds Pro</strong> — err, I mean, XCode.</p><h3>On the Road To Unexpectedly Making an App</h3><p>I have Type-1 Diabetes, which means a lot of guessing: how much carbs am I eating? how much insulin do I need? The idea would be to make an app that stores all of this, with an ability to forecast, based on previous events and current blood glucose trends.</p><p><em>(Given the specifics of the app, and for reasons beyond this article, I have not [yet?] released it publicly — a part of me is not so sure if it would classify as a medical app, and be within store limits. I have, however, open-sourced the underlying framework it is using [check </em><a href="https://github.com/open-gluck"><em>https://github.com/open-gluck</em></a><em> if interested], and a companion app that supports all available widgets for iOS, iPadOS, watchOS and tvOS .)</em></p><h4>The iGood, The iBad, And the iUgly</h4><p>Swift Playgrounds is clearly designed for fun, side, projects. If you’ve got a background in development of any kind, and are willing to learn Swift, it’s good as you won’t have a lot of options and settings to confuse you around. Even if you know Swift already, and know that XCode has its intricacies, Swift Playgrounds can be a relaxing experience, as no options also means no mysterious errors to solve (if you’ve been there, you know).</p><p>On the other hand, its interface has clearly not been intended for medium- or large-sized projects (although this has been greatly improved in version 4.1, more on that below). If you have a lot of Swift files, navigating around can be… disorienting at best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*Tjcp67dUaeLrgni3UuHypQ.gif" /><figcaption>Can you spot AddInsulinButton?</figcaption></figure><h4>Swift Package Manager</h4><p>Good news, Swift Playgrounds can use SPM packages. That means you can easily add third-party packages to your projects (or, in my case, share some of the common stuff).</p><p>Bad news, you don’t truly have the same flexibility than in XCode. Basically, you can track a package up to the next major release, and that’s all. You can chose to track a branch, but then the “Update” mysteriously command stops working then.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*9Fd1Y_alMfCQ23vQKCjxxA.jpeg" /><figcaption>You can Update All dependancies to the next releases, but not individual packages.</figcaption></figure><p>Another bad news, you can only add the most basic packages, that provide Swift source code directly. Anything that tries to download a pre-built binary, compile code, or do anything fancy will not work. If you were thinking about adding Firebase to one of your playground, stop thinking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TMaU9pYZjYs5IKHHqVGtQ.png" /><figcaption>Adding Firebase, or any other complex SPM package, is out of reach for the simple Swift Playgrounds app.</figcaption></figure><p>However, when it works, it’s nice. Coupled with a GitHub repository with GitHub Actions for linting and packaging, an SPM package is definitely one of the power tool that’s useful if your setup includes sharing code between regular XCode projects and playgrounds.</p><h4>Git To The Rescue</h4><p>Let’s be honest: Swift experience on iPad wouldn’t be the same without tools such as <a href="https://workingcopy.app/">Working Copy</a> that help you track your work. I am a big fan of this wonderful app from Anders Borum, that brings Git to the iPad.</p><p>What’s nice about Swift Playgrounds is that it stores all its files in the Files app. Then, you can tell Working Copy to to link to an external directory. This is a way to say: “<em>here, I am working on this directory that I want you to version for me, but please, do not place any files in here, like your .git directory, so as to not confuse other apps.</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*Xn0Cs1qz6KYkltEAZNUo2Q.png" /><figcaption>Linking to an external directory in Working Copy</figcaption></figure><p>And <em>voilà</em>, here you have the power of git on your iPad. You can make changes in your playground, you can stash stuff that don’t work. You can easily branch, revert, create a pull request and review it on GitHub.</p><h4>Edit the hidden, but still useful, files in the playground bundle</h4><p>One last useful trick: playgrounds are bundles, which means you won’t be able to browse its contents from the Files app. But, Working Copy will happily show you whatever that’s inside, and let you add and edit individual files.</p><p>That’s very useful because it means you can edit otherwise hidden files. For example, everytime you upload your app on the App Store, it will ask you if your app is using non-exempt encryption. Storing a plist in the root of your bundle will save you a ton of time in the long run; without it, you’d need to check a box on the App Store website for every release:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBPXndHxnhFI3iwX6hJzJw.png" /><figcaption>Working Copy, showing the file TrackerInfo.plist in edit mode</figcaption></figure><p>Note that this is not something magic related to Working Copy. You can do the same using, say, tools such a text editor (such as iVim) and browe the bundle as a folder. The nice UI of Working Copy makes it just much more convenient. I wish the Files app would expose a command <em>Show Package Contents</em> just like on macOS.</p><h3>Swift Playgrounds Improves, One Feature at a Time</h3><p>The team responsible for Swift Playgrounds is not too much active, but lately it has delivered very impressive new features, though they do not gain much traction from the media. <strong>I wouldn’t be surprised if one of these feature is part of the master plan of the next release of iPadOS.</strong></p><p>One of the small things, you can now edit the minimum iOS version, without requiring to edit the Package.swift file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A45vOW0cgJFU6kOPI55RYw.png" /><figcaption>Playgrounds can now be updated between iOS versions</figcaption></figure><p>More impressive, you now get <strong>Quick Actions</strong> from the Playgrounds app. Hit Command+Shift+A, and you’ll get a popover menu with more actions available, and showing their keyboard shortcuts, if any.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wyTMigheE1M4MxyAUFqYg.png" /><figcaption>The Quick Actions UI is very nicely done</figcaption></figure><p><strong>Consider me sold on this. I want Quick Actions everywhere.</strong> These would be handy in all the other apps, and would even replace the not-so-useful popover that appears when you hit Command and keep it for a few seconds. Fingers crossed this is a foreteller sign for the next version of iPadOS…</p><p>One nice improvement added along with the Quick Actions is the ability to Quick Open a file. For me, having a source code that’s getting big with the time, this is clearly a lifechanging feature, just hit Command+Shift+O and the popover appears instantly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9KIBlfEd7YooPdXyM2-iA.png" /><figcaption>Quick Open has landed</figcaption></figure><p>You might notice on the screen that it shows file as well as symbols. Well, symbols don’t work on my playgrounds, not sure if this is a glitch that will be fixed, or if the feature just shipped too quickly.</p><p>Speaking of symbols, autocomplete has been improved, too. Now you get a list of symbols with a nice view of their signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uiR39fLvm2vdGHtVwe4cw.png" /><figcaption>Auto-complete with symbols and signatures. One inch closer to XCode.</figcaption></figure><h3>Improving Your Swift Playgrounds Experience</h3><p>We’ll now go through some hints and tips to make a better use of Swift Playgrounds.</p><h4>Edit Package.json</h4><p>Remember Apple created a strip-down UI for editing playgrounds on the iPad, but still, the toolchain is mostly the same than on macOS (thanks to ARM that unified both worlds). This means that <strong>most of the tricks that work on the Mac still work on the iPad</strong>.</p><p>For example, here is my <strong>Package.json</strong> file — disregard the stock comment asking you not to edit it by hand (sticking to the format will be fine, and changes will be preserved).</p><pre>// swift-tools-version: 5.7<br><br>// WARNING:<br>// This file is automatically generated.<br>// Do not edit it by hand because the contents will be replaced.<br><br>import PackageDescription<br>import AppleProductTypes<br><br>let package = Package(<br>    name: &quot;Diably&quot;,<br>    platforms: [<br>        .iOS(&quot;17.0&quot;)<br>    ],<br>    products: [<br>        .iOSApplication(<br>            name: &quot;Diably&quot;,<br>            targets: [&quot;AppModule&quot;],<br>            bundleIdentifier: &quot;com.fc865c1a-c3d9-40a5-8dde-19d154d8ba90.diably&quot;,<br>            teamIdentifier: &quot;AAAAAAAAAA&quot;,<br>            displayVersion: &quot;2.23.6&quot;,<br>            bundleVersion: &quot;52&quot;,<br>            appIcon: .asset(&quot;AppIcon&quot;),<br>            accentColor: .presetColor(.green),<br>            supportedDeviceFamilies: [<br>                .phone<br>            ],<br>            supportedInterfaceOrientations: [<br>                .portrait<br>            ],<br>            additionalInfoPlistContentFilePath: &quot;TrackerInfo.plist&quot;<br>        )<br>    ],<br>    dependencies: [<br>        .package(url: &quot;https://github.com/open-gluck/OG.git&quot;, &quot;1.0.90&quot;..&lt;&quot;2.0.0&quot;)<br>    ],<br>    targets: [<br>        .executableTarget(<br>            name: &quot;AppModule&quot;,<br>            dependencies: [<br>                .product(name: &quot;OG&quot;, package: &quot;OG&quot;),<br>                .product(name: &quot;OGUI&quot;, package: &quot;OG&quot;)<br>            ],<br>            path: &quot;.&quot;,<br>            resources: [<br>                .process(&quot;Resources&quot;)<br>            ],<br>            swiftSettings: [<br>                .unsafeFlags([&quot;-Xfrontend&quot;, &quot;-strict-concurrency=complete&quot;, &quot;-Xfrontend&quot;, &quot;-warn-long-function-bodies=200&quot;, &quot;-Xfrontend&quot;, &quot;-warn-long-expression-type-checking=200&quot;])<br>            ]<br>        )<br>    ]<br>)</pre><p>Let’s start by the roadblocks: you won’t be able to give your app entitlements that the UI does not support.</p><p>In the past, editing this file was the only way to change the minimum version of iOS supported by a playground. That value was hard-coded to the latest supported by Swift Playgrounds at the time your project was created. Fortunately, it is now exposed as a setting in the UI.</p><p>There are some other interesting changes that can be made here. For example, you can use the <strong>additionalInfoPlistContentFilePath</strong> property to add properties to your plist. You can use it to store secrets or configuration for the App Store approval process.</p><p>Another nice property is the <strong>swiftSettings</strong> flags, that allows you to pass flags to the Swift compiler. More on that on the section below.</p><h4>Hacking swift compile flags</h4><p>I am using the <strong>swiftSettings</strong> flag to ask the compiler to do basically two things for me:</p><ul><li>give me all the warnings you find about my use of concurrent code (async/await),</li><li>help me find out why my code is compiling slowly.</li></ul><p>To be honest, I would expect the warnings about concurrency to be enabled by default. I don’t get the point of letting users write <em>poor code,</em> that might lead to crashes, on a device that doesn’t feature a debugger.</p><h4>How to optimize incremental and full builds</h4><p>Regarding the compile times, that’s one of the main pain with using Playgrounds. Compiling takes a lot of power, the iPad doesn’t have a fan, and its battery is tiny compared to a MacBook. On my usage, when I’m heavily working on my app on the go, I know my battery will last just a few hours at most.</p><p>So, it’s crucial that we actually make sure the code compiles as fast as possible. To ensure that, we have to understand that Swift Playgrounds compiles an app in two ways:</p><ul><li>a full compile, when you first open the project;</li><li>an incremental compile, when you make some changes in your files.</li></ul><p>Each of these ways comes with different optimization techniques. Some file can compile fast when using a full compile, and yet take ages when using an incremental compile (one of the many bugs of the swift compiler, though it improves over time).</p><p>As a developer, we don’t have much control over what we can do. One of the most efficient way to speed up compile time is to give the compiler as much context as for how variables are typed. And, one way of getting notified, is by adding a flag to the swift compiler letting us know when something needs improving.</p><p>This is the purpose of <strong>warn-long-fonction-bodies</strong> and <strong>warn-long-expression-type-checking</strong> and in configuration below:</p><pre>.unsafeFlags([&quot;-Xfrontend&quot;, &quot;-strict-concurrency=complete&quot;, &quot;-Xfrontend&quot;, &quot;-warn-long-function-bodies=200&quot;, &quot;-Xfrontend&quot;, &quot;-warn-long-expression-type-checking=200&quot;])</pre><h4>Have you tried turning it off and on again?</h4><p>Sometimes, the Swift compiler is stuck. On a Mac, you would clean the cache and rebuild, but unfortunately this doesn’t exist on the iPad.</p><p>One life-saving trick is to add or remove an empty line somewhere. That instantly triggers an incremental rebuild of the current file. Handy if, for example, you were quick making some changes, and they have been missed.</p><p>But, sometimes, you need more than just re-compile the current file, you need a full clean build. To my understanding, when you close and open the playground, you are triggering a full build of your playground, but still some compile data is being cached.</p><p>However, if you quit the Playgrounds app and open it again, the cache is cleared, and any bugs with using different incremental builds will be resolved.</p><p>One last quirk: Swift Playgrounds is using some sort of private API to sign the builds on the device and actually run your app locally. This process sometimes has bugs as well. If you find yourself not being able to launch your app at all, or something is definitely wonky, just resort to the basic trick:</p><ol><li>Close the playground</li><li>Quit Playgrounds</li><li>Restart your iPad</li></ol><h4>Logging</h4><p>A Console app is one of the other things that’s missing from the iPad development experience. Let’s be honest here, I don’t have a perfect solution for this. So far, my pick has been to create a custom class that I use to log stuff, and then I have a UI in my app that is showing the logs, with a Share button if I need further inspection in a text editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZtH-jsDqjMRJJt7Zn__Bw.png" /><figcaption>Author’s own logging class, UI showing in Preview. A text file can be generated and shared.</figcaption></figure><p>It’s certainly not industry-standard level but it does the job. Fingers crossed at one time, we’ll get better debugging support for the iPad.</p><h4>Use Advanced Frameworks, such as Accelerate or Charts</h4><p>This being on the iPad doesn’t mean we don’t have access to advanced frameworks from Apple, such as the excellent <strong>Swift Charts</strong> framework.</p><p>When I started writing my app, I didn’t immediately think of using Swift Charts in my app, like if, for some reasons this would be XCode-specific. Of course — and hopefully — it is not, which makes it for a nice way to have lovely stuff in your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpOqnKDfW36eQCGEWWdiGg.png" /><figcaption>Some Swift Charts, from the Swift Playgrounds app</figcaption></figure><p>What’s even better is that you can use low-level frameworks such as <strong>Accelerate</strong> to speed up code that would be otherwise CPU-intensive. Granted it’s probably a corner case, but at least I’m glad that Apple opened the door.</p><p>Unsafe pointers, hardware accelerated vector metrics? All from an iPad? You bet!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhmkDGurUvG1fegGP-yGyQ.png" /><figcaption>No need to say, this was running way more slowly before using Accelerate.</figcaption></figure><h3>So… Can We Make It Without XCode yet?</h3><p>This brings us to the question: are we good enough yet to actually make some serious development on the iPad?</p><p>As much as I’d like to answer yes, the real answer is probably a mix of <em>yes, sort of</em>, and <em>yes, but should we.</em></p><p>There’s undeniably something cool about using an iPad from A to Z. Though, in real life, it’s more like from I to D — or from I to O if you’re on an iPad Pro. There’s a lot of things possible now, that we couldn’t even think of a few years back. And, on the other hand, there’s so much that’s still missing.</p><p>It looks like the future of iPad is still lying ahead. It’s sadly becoming a thing in this world: iPad hardware keep on getting more and more insane, though software keeps lagging behind.</p><p>Back to the question, have I used XCode to develop the app?</p><p>Honestly, the answer is yes. But maybe not for the reasons you’d expect. At some point, I was trying to figure out how to improve the performance of a specific portion of the app. I tried using logs, but nothing beats a profiler.</p><p>Another time, my code wasn’t performing as expected, and I couldn’t figure out why. After more logs that lead to nowhere, I used the Mac once again, and with the help of the debugger it became immediately clear what was going on.</p><p>However a strange thing happend. When on the Mac, my experience with writing code was… not as much fun. I liked how Swift Playgrounds was nice and tidy on the iPad — like, it literaly takes out so much stuff that it puts me into another mindset. Coding on a Mac sounded like the traditional <em>work</em>. Coding on an iPad feels a much different experience by itself. There’s something truly whimsical about coding on an iPad.</p><p>Nice trick: the Swift Playgrounds app stores the playgrounds on iCloud. Which means it’s easy to synchronize the code on multiple devices, Mac and iPads. Just make sure to close the project and open it only once at a time, as XCode will change internal files that will confuse iOS into thinking a conflict occured.</p><h3>Where We Go Next</h3><p>At time of writing this article, the iPad Pro M4 has just been announced. Not lying to you, I have already pre-ordered one, and I’m eager to report on the performance improvements of the new hardware.</p><p>We’ve talked about it earlier, compiling takes age when your project grow. A full compile takes about twenty to twenty five seconds.</p><p>The new iPad Pro features a chip that’s supposedly 50% faster, so even if I gain only ten seconds that’d still be impressive. Keep in mind <a href="https://www.macrumors.com/2024/05/07/ipad-pro-ram-storage/">you need to buy an iPad Pro with at least 1TB of storage</a> to benefit from double the amount of RAM, and the maximum number of CPU/GPU cores.</p><p><em>Edited: compile time dropped from 26 seconds to 18 seconds. That’s a 30% speed improvement!</em></p><p><strong>I never intended to write an app using my iPad, and yet, this is something that was fun enough to do — so it happened.</strong></p><p>To me, that’s clearly the best selling point of Swift Playgrounds. You don’t really need a purpose. Just try something fun and see what comes out.</p><p>By no mistakes this was an easy journey, though. Someone with no prior knowledge about Swift, or development in general, would probably stumble on so many quirks and gotchas, that they would quickly move from “oh that’s fun” to “what the duck am I supposed to quack now”. Somehow, this is true even for more advanced use cases. Let’s face it, the community around advanced Swift Playgrounds users is <em>tiny</em>. There’s no way (yet?) a project using a playground would gain traction in a team.</p><p>But, Apple has the power to change that. In the short term, by continuing to release small, incremental, updates to Swift Playgrounds. Each time they remove a roadblock, some new use case begins to be even more fun, leading to more users of the platform.</p><p>In the medium term, by improving the tools and performance of Swift Playgrounds itself. A debugger? a better console? a profiler? integration with XCode as a companion?</p><p>And, for the long term —yet it might still sound sketchy — why not envision a future where XCode finally comes to iPad?</p><p><em>This story has been written on an iPad. And while on a Disney Cruise, so please forgive all the Mickeys hidden in my screenshots.</em></p><p><em>Thanks for reading! Have you been using the iPad for serious purposes? or interested in doing so? I’d like to hear your comments about it! And, please clap if you think the idea is worth thinking about it!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b91fc98ab179" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Open Letter to Helping People with Diabetes — OpenGlück Manifesto]]></title>
            <link>https://medium.com/@crsohr/an-open-letter-to-helping-people-with-diabetes-opengl%C3%BCck-manifesto-a09326d118a6?source=rss-572ea0d2c27a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a09326d118a6</guid>
            <category><![CDATA[diabetes]]></category>
            <dc:creator><![CDATA[Christopher Allène]]></dc:creator>
            <pubDate>Sat, 09 Dec 2023 10:47:51 GMT</pubDate>
            <atom:updated>2023-12-09T10:47:51.425Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Open Letter to Helping People with Diabetes — OpenGlück Manifesto</h3><p>What if handling diabetes was <strong>easier</strong>, <strong>friendlier</strong>? What if you could use the <strong>same apps</strong>, see your results using the same UI/UX, regardless of your hardware?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93H5ObDrTkutN0liUf7rOw.png" /><figcaption>OpenGlück App UI/UX, showing widgets and complications on iPhone and Apple Watch</figcaption></figure><p>Today my HBA1c is under 6.5 (often, in the 5–6 range), without following any specific diet, and I’m pretty confident that getting the right <em>data</em>, at the right time, has a great part to play in that.</p><h3>Introducing OpenGlück</h3><p>We already have dozens, if not hundreds, of communities working on vibrant projects: xDrip, Nightscout, Loop, and many more.</p><p>OpenGlück is replacing <em>none</em> of these great projects, nor is it casting any shade on any of them.</p><p>In fact, all the opposite: it wants to <em>link</em> these projects together.</p><h3>Data, Feedback, Action</h3><blockquote>If you have diabetes, you know that there is always a striving balance between <strong>control</strong>, feedback, and action.</blockquote><h4>Control = Data + Action</h4><p>Your body is not producing insulin, so you find a way to control it by yourself.</p><p>How? You need <strong>data</strong>. How much insulin have you got, lately? How is your blood glucose going?</p><p>With this data, you perform <strong>actions</strong>. You can confirm previous actions served their goals. You can adjust, and, sometimes, perform corrective actions.</p><h4>Feedback</h4><p>Feedback the link between Data and Action.</p><p>Wouldn’t it be nice if you had a way to show your data nicely, using a clear UI/UX, and the same interface regardless of the brand of all devices you use in your daily life?</p><p>Here enters OpenGlück. It bridges with existing apps (those apps that brings your <strong>data</strong>, and those apps that allows you to take <strong>actions</strong>) and links them into a unified point of view.</p><h3>Project Goals</h3><h4>Open to Any Apps</h4><p>Any app can add support for OpenGlück.</p><p>OpenGlück Server uses a standard REST API, over HTTPS. This is convenient: adding support for OpenGlück in any app should require no more than writing a few dozen lines of code.</p><h4>Feedback on All Devices</h4><p>In today’s life, we all encounter various digital devices.</p><p>We might start the day with our phone, then switch to our iPad, continue on a Mac. Sometimes, we use several of these devices at once. Some of us have Apple Watches. And some may have non-Apple devices.</p><p>All of this is fine.</p><p>OpenGlück uses a small piece of software called the OpenGlück Server to bring knowledge to all these apps. This API works with Apple and Android devices, Mac and PCs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5POxxaPegYnKdEib3xNUBg.png" /><figcaption>OpenGlück Server links all compatible apps. Our app to the bottom right, other compatible apps on the bottom left.</figcaption></figure><p>All compatible apps connect to it, and deliver their feedback in the same way.</p><h4>Extensible, by Design</h4><p>OpenGlück supports extensive web hooks, that you can use to further extend the integrations between the server and other software.</p><p>You can choose what event trigger which <em>web hooks</em>, and even use a powerful syntax to narrow them down to just the events you’re interested in.</p><p>And if you need to synchronize application specific data, you’re covered, with arbitrary <em>user data</em>. And you can trigger web hooks when your user data changes.</p><h4>Not Dedicated to Any Specific Hardware</h4><p>While all apps can add support, and while all apps can use <em>user data</em> to store any app-specific information, OpenGlück is not dedicated to cover the needs of any particular brand or manufacturer.</p><p>The screen below shows the Apple Watcha app, with common data you would be interested in no matter which device you use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oV3Sfo5bFuUmpe_JmvhIiw.png" /><figcaption>OpenGlück Apple Watch app, showing how it renders usual indicators</figcaption></figure><blockquote>To give an example: any CGM with support for historic (past) data should be able to upload it to the OpenGlück server. And any compatible app should be able to read it, regardless of the brand and model of the CGM sensor.</blockquote><p>That’s a huge point of differentiation between this project and other projects. Not being tied to a brand means users are free to switch, and yet, still use the same apps they love. And that work for them.</p><h3>Join In!</h3><p>Let’s build it together!</p><p>OpenGlück is on GitHub👇</p><p><a href="http://github.com/open-gluck">OpenGlück</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a09326d118a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seven Steps I Followed To Cut My AWS Costs In Half]]></title>
            <link>https://medium.com/@crsohr/seven-steps-i-followed-to-cut-my-aws-costs-in-half-1f728c501842?source=rss-572ea0d2c27a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f728c501842</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Christopher Allène]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 14:31:41 GMT</pubDate>
            <atom:updated>2020-07-25T14:31:41.073Z</atom:updated>
            <content:encoded><![CDATA[<p>The cloud has dramatically changed how we design software. We get infinite scalability with almost zero commitment. But it also comes at a cost. Literally.</p><p>During the past few years, my company has spent millions on Amazon Web Services. As a CTO, my goal was to increase the value of our product for our customers. I have reduced our AWS bills, with no noticeable impact for our customers and clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yY69fcKiCAsS10BL-0tAsA.jpeg" /><figcaption>Our AWS bills for the last few months. Scale redacted for confidentiality.</figcaption></figure><p>After much guesswork on how to best proceed, I was finally able to find a procedure that works. Significantly: costs have been cut in half.</p><p>In this story, I am going to share the mistakes I made early in the process, the steps I followed to finally succeed, and share some of the principles we’re now enforcing on every new project.</p><p>Note that you do not need to have a deep understanding of AWS or their billing. Anytime I’m speaking about a specific AWS technology, I’ve added an hyperlink to the documentation. Essentially, this is more about the <em>mindset </em>than technology or tools (even though we are still going to take care of some dirty work at one point or another).</p><h3>Before We Start: No, Cloud Billing Is Not Opaque, Nor Confusing</h3><p>First, let’s crash a common complaint about cloud pricing in general, and Amazon in particular. No, it’s not opaque. It’s not difficult to understand how it works. You won’t get a six-figure bill by merely checking the wrong checkbox. Everyone makes mistakes, so do not hesitate to open a billing ticket if you think you were overpriced. If you made an honest mistake, Amazon will do their best to revert the charge.</p><p>You need to think of the billing the other way around. It’s not complicated in order to <em>trap you in</em>. It’s complex because it’s all about giving you <em>choices</em>. You are <em>in control</em>. You have <em>options</em>.</p><blockquote>Amazon pricing is complex because it is all about fairness.</blockquote><blockquote>If you use resources that are sparse, or that costs Amazon to operate, you are going to pay.</blockquote><p>With AWS, you pay for the bandwidth (egress), you pay for the CPU, you pay for the storage… This is precisely why cloud services are so powerful, especially regarding cost efficiency: if you need more, you can get more (and pay more), if you need less, you can use less (and pay less).</p><p>For every services, Amazon publishes a sheet that states clearly what is free to use, what you have to pay for, and how much it is going to cost you. No surprises. Just Google “<em>AWS &lt;service&gt; pricing</em>” and hit “I’m Feeling Lucky” as it usually is the first hit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1YMlvJ6x4Y-QkFzouY8MQ.png" /><figcaption>AWS Pricing is never too far away</figcaption></figure><p>Better yet: if you are using some service and their pricing changes, no hidden surprise on your next bill: Amazon will send you an email before the change will apply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nlsF4tklXC973Fq3bqThA.png" /><figcaption>Some email that I received from AWS, warning me of an upcoming price change for one of the service that we use</figcaption></figure><h3>Ideas That Didn’t Work</h3><p>Before I talk about the steps that finally worked for me, I wanted to be honest. At first, when I tried cutting down our costs, I failed.</p><p>Understanding your failures will help you understand how to succeed.</p><p>I’m so glad I have the chances to share my failures with you.</p><blockquote>“Technology is the problem, it should be the cure.”</blockquote><p>After all, it’s the technology that cause invoices to be sent. My first failure was to think that technology alone had to be considered to help reduce our costs, maybe with a better understanding of the billing, by upgrading parts of the software that were using obsolete or inadequate components, by rewriting parts of the code that I believed cost the most, and so on.</p><p>It didn’t work as I expected for a very simple reason: technology is just a tool. You can usually get small gains by a better understanding of it, maybe you can buy <a href="https://aws.amazon.com/ec2/pricing/reserved-instances/">reserved instances </a>and lower you costs by a few percent, maybe you can lower the <a href="https://aws.amazon.com/s3/storage-classes/">storage classes </a>of some of your S3 buckets… all these steps would work to some extend, but they will not <em>drastically </em>change your AWS bill. If you’re only thinking about small improvements on how much you Amazon each month, then you can just think about doing just that, and skip reading this story. It will work. It will not just work enough when you need more savings, because what’s missing in how much <em>value</em> you provide to your clients. You need to get a <em>business picture</em>, not a <em>technological picture</em>, to relate your costs to your company revenue. Your ultimate goal is to create the <em>best value </em>for your customers, at the <em>lowest cost</em>.</p><blockquote>“Instance reservation is the only way to save costs on EC2.”</blockquote><p>When I learned that Amazon would be willing to sacrifice some of the costs associated to EC2 servers if I committed to long-term usage, with what they call <em>reserved instances</em>, I first imagined that this was the only way money could be saved. I was wrong. (After all, if all you have is a hammer, everything looks like a nail.)</p><p>But what if you have other tools in your tool belt? Maybe you could use <a href="https://aws.amazon.com/ec2/spot/">Spot instances</a>. Maybe you don’t need as much power every hour of the day, and you could change your instance types. Maybe some of your workflows could be converted to <a href="https://aws.amazon.com/lambda/">serverless Lambda functions</a>. Hosting a database? What about <a href="https://aws.amazon.com/rds/">RDS</a>. There are always more possibilities that you can expect.</p><p>Note that I am not telling you to avoid using reserved instances. Ask your Account Manager for feedback, they are more than willing to help, and will provide you with valuable details about how you could save most, depending on how long you are willing to commit. And remember reservation is not only available for EC2 instances, you can also save on RDS as well.</p><blockquote>“We should focus on services that costs the most.”</blockquote><p>This is maybe one of my biggest failure. If you have one service that costs $10,000 and another that costs $2,000, which is the first you are going to consider? My error was to pick the service that cost $10,000, work on it for a few days, maybe a few weeks. Say, in the end, I ended up saving $1,500; now I move up to the second service and, with a clever optimization trick, I also save $1,500, but this time only in a few hours.</p><p>Your potentiel gain alone should not drive your decisions. Reducing your AWS bill needs planning. Think about all possible solutions, how much they will save, how long they will require you to work on. Think smart before you do any work!</p><blockquote>“There is no possible way I could ‘cut my costs’ more.”</blockquote><p>Optimization is a work that never stops. Never think “okay, I did it, now I’m done”, because everytime you do, you lose an opportunity to save even more.</p><p>Of course, this doesn’t mean you should spend all your time reducing your bill. You still need to grow your business. A sweet spot that works for me is to spend an hour every month looking at my invoices. This usually is more than enough to check my current billing a few times a week, and, at the end of the month, once the invoice is consolidated, to compare the figures against those of the previous month.</p><h3>The Seven Steps That Helped Me Save Money</h3><p>In the last months, following these seven steps helped me save money on my AWS bill. The key here is not to jump over any of them. Before I give you more details for every of these rules, here they are:</p><ol><li>Speak with your Product Manager, and learn which features create the most value for customers.</li><li>Use advanced AWS tools to get a better understanding of your billing.</li><li>Draw a vertical line on a sheet of paper. On the left, name your jobs and workflows. On the right, list the AWS services that you use. Then, connect them together.</li><li>Discuss options with your team. Adapt a blue-sky mentality: at this point anything should be possible (sky is the only limit).<br>Focus on the ideas that will help you get a better understanding of your costs (for example splitting a server that provides two functions) and those that will reduce your costs.</li><li>Note each idea on cards (or post-its notes). Play planning poker to estimate the gain and effort for each cards.</li><li>Order cards by “gain per time spent”. Work first on ideas that provide the best ratio. <em>Definition of Done</em> MUST include validation of the financial gain in the next days billing.</li><li>Reiterate from step #1 every few weeks or months, depending on how fast your product is evolving.</li></ol><h4>Step One: Speak with your Product Manager, and learn which features create the most value for customers.</h4><p>Think about it. If your product is mature enough that it will benefit from AWS cost savings, it probably does a lot. I bet new features are added every months, maybe every week. I guess features added last month are being actively used. But what about those added last year? The year before that?</p><p>Speaking with my product team on the angle on cost savings has allowed to gain invaluable knowledge. Some expensive features that I thought essential weren’t used as much as I expected, and other I didn’t suspect were being actively promoted.</p><p>Knowing what the customers actually want is key to lowering your bill. If some feature that nobody is using costs money, why keep it? And, about the features that are actively used, what value do they really generate? Would there be a way to improve their value?</p><p>Gaining this intel is important because we want to focus on our customers. We don’t want to change how our product work because we can or because some components are expensive: we want to do so because it will help us drive our costs down, and, in the end, better serve our customers by providing the <em>same service</em> at a <em>much better value</em>.</p><h4>Step Two: Use Advanced AWS tools to get a better understanding of your billing.</h4><p>The Amazon <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/invoice.html">Billing Dashboard</a> is intuitive and easy to use: at a glance, you can see your costs for the current month, how much you paid last month, how much there is forecast, and also, the AWS services that are the most expensive:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rbWANOsUtyCrAVd0Q80vQ.png" /><figcaption>AWS Billing Dashboard (figures redacted)</figcaption></figure><p>However, the Billing Dashboard does only tell one part of the story: the big picture. You don’t watch a movie only by its teaser, do you? Same for your billing. You have to dig deeper.</p><p>The <a href="https://aws.amazon.com/aws-cost-management/aws-cost-explorer/">Cost Explorer</a> is a particular neat tool, that is built-in, and free to use. You can customize the dates shown (I usually to “month-to-date” a lot), the chart type (I like “stacked bar” as I can see in one shot how much different things contribute to every day billing) and add filters (you can include only things you chose, or exclude them and see everything else).</p><p>One formula that works for me is a month-to-day stacked bar where every service is shown in a different color, excluding Support and VAT (those are billed separately the first day on the month and I want to be able to compare the first day with the second):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TO1wc0nRogweIwg2hTpgA.png" /><figcaption>Cost Explorer, showing how much each service is costing us for every day of the month.</figcaption></figure><p>Another great feature is the ability to define <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">cost allocation tags</a>. You can attach tags to many AWS resources, such as EC2 instances, auto-scaling groups, and more. With cost allocation tags, you can opt-in the tags of your chosing to be consolidated in the billing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YFfErBA0qD_Qn7OwgzW-Vg.png" /><figcaption>A partial view of our Cost Allocation Tags screen. Tags that are enabled to consolidation in the AWS billing are deemed “Active”. Note that built-in tags, such as “aws:autoscaling:groupName” are eligible to be used as cost allocation tags (this is nice).</figcaption></figure><p>For each tag, you will be able to use Cost Explorer to learn how much each value for this tag is costing you. I’m not showing an actual screenshot from my billing because it would provide sensitive data, but here is one screenshot shared by the team at AWS that shows you how it looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXp_4DuK2qQMRvVvVVZmlw.png" /><figcaption>A Cost Explorer report, detailing usage by a custom Cost Allocation Tag</figcaption></figure><p>If you need to dig further, AWS has you covered. You can run a custom Lambda function that will convert your daily AWS billing data into a format that would be readable with <a href="https://aws.amazon.com/quicksight/">QuickSight</a>, Amazon’s own data vizualization tool. There is a <a href="https://aws.amazon.com/blogs/big-data/query-and-visualize-aws-cost-and-usage-data-using-amazon-athena-and-amazon-quicksight/">post on the AWS Big Data Blog</a> detailing the process, and it’s absolute worth reading, especially if you are already using QuickSight in your organization (or if you already have some knowledge on similar tools such as <a href="https://www.tableau.com/">Tableau</a>). Here is some screenshot on how it looks (once again, taken from the AWS blog, for similar reasons):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4vh6TWNPmeLUYKPJO7o2Jw.gif" /><figcaption>Learn more about your own billing using powerful Amazon QuickSight</figcaption></figure><h4>Step Three: Draw a vertical line on a sheet of paper. On the left, name your jobs and workflows. On the right, list the AWS services that you use. Then, connect them together.</h4><p>To service your customers, you probably need a whole lot of jobs and workflows. At the same time, you are probably using a lot of AWS services. But how do they connect together?</p><p>I’ve found a simple way to answer that question. Get a blank sheet of paper (or if, like me, you don’t like paper so much, use a digital notetaking app, I recommend <a href="https://www.goodnotes.com/">GoodNotes</a> because it shines on my iPad and there is also a macOS version).</p><p>Divide your note in two. On the left, list your jobs and workflows. On the right, list the AWS services that appears in your bill. Then, connect them together.</p><p>Suppose I were to run a fictional business that would encode videos in different bitrates for my customers, and allow them to embed a video player on their website. Here is what I could come up with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96nPF0chC-_-OHuXX00tmg.jpeg" /><figcaption>My jobs and workflows on the left, the AWS Services on the right</figcaption></figure><p>Of course, this is a simplified example, and a diagram for your actual company will probably be much bigger. However, the idea remains the same: it helps you see what services are connected to what workflows.</p><p>Here, you see instantly that <em>Elastic Transcoder</em> is only connected with <em>Encode videos</em>. If we no longer need to encode videos, or if we find an alternative way, we will no longer need the Elastic Transcoder service.</p><p>For <em>S3</em>, this is a bit different, as it is used by three different workflows. We don’t know at first sight the part of each of these workflows in our S3 costs. To help us dig further, we might need cost allocation tags, that we discussed earlier.</p><h4>Step Four: Discuss options with your team. Adapt a blue-sky mentality: at this point anything should be possible (sky is the only limit).<br>Focus on the ideas that will help you get a better understanding of your costs (for example splitting a server that provides two functions) and those that will reduce your costs.</h4><p>Remember I told you I made many mistakes early on. I would start directly with Step Four, even though my knowledge was incomplete. Worst: I would sometimes start working on some ideas. This was not efficient.</p><p>My first word of advice is to never stop thinking of something because it is too big. Suppose you identified you spend a lot of S3. Do you really need to store files online? If no, then, problem solved. If you still do, how long do you need them? Do you need a high storage class? Is the data already duplicated somewhere else, such as a database? Would it be possible to add a CDN in front of your bucket?</p><p>My second work of advice would be not to focus entirely on the tasks that will lower your bill. Suppose you have a lot of service that does something which AWS also provides on its own, such as converting CSV files into Parquet file. This is something that could be done with <a href="https://aws.amazon.com/kinesis/data-firehose/">Kinesis Firehose</a>. Obviously, writing code to use this new service would cost more (because you would have to pay for Firehose) but in the end, you might be able to cut your own service and actually save.</p><p>Also, sometimes, understanding your bill is not easy, and you need to work on intermediate tasks that will help you get a better picture. Here are a few recommandations:</p><ol><li>Try not to host multiple services on the same EC2 server if possible. This makes it harder to find out the culprit when the bill increase. Plus, it is easier to get a clear view if your instances are tagged (with cost allocation tags we’ve seen before).</li><li>If you’re hosting different services that never speak together (say, for different customers), it’s best if you keep them into separate accounts. You can use <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/consolidated-billing.html">Billing Consolidation</a> to get your billing into one, master, account, so you’re still getting one bill. Only, all the expenses will be split into separate accounts, and easier to track.</li><li>Avoid storing too much files on a single S3 bucket. Suppose you have logs for your dashboard, and logs recording video playback. You should create two seperate S3 buckets rather than use only one with separate subdirectories. This is because you can tag each buckets independantly, but you cannot tag folders inside a bucket.</li></ol><h4>Step Five: Note each idea on cards (or post-its notes). Play planning poker to estimate the gain and effort for each cards.</h4><p>Now that we have a list of tasks, note every idea on a separate card (or post-it note), and gather your team. Speak together and find out how much each card is worth, and how long it would take to run the task.</p><p>It is sometimes difficult to predict the value and effort required. Agile methodology can come at a rescue, with something called “planning poker”. There are variations on the concept, the basic idea is that everyone is around a table (or attending a video conference call). First member of the team picks the first card, and place it in the center of the table. Second member picks the second card, and makes a decision: if they believe the second card has a greater financial gain, it should be placed left, else, it should be placed right. If everyone agrees, next member continues with the third card, else, everyone raises their opinion until there is a consensus. Eventually, all cards are ordered by potential gain, and everyone should agree on writing a figure on each card.</p><p>Once the first round is done, planning poker is repeated, only this time we won’t focus on the potential gain, but rather on how much time would be required to implement the task.</p><p>After this second round, all cards have been given a gain and the required effort to achieve it.</p><h4>Step Six: Order cards by best gain per time spent. Work first on ideas that provide the best ratio. <em>Definition of Done</em> MUST include validation of the financial gain (or eventually loss) in the next days billing.</h4><p>If you like to put your hands in the engine and do the hard work, this step is for you. This is when we’re actually going to get to <em>real work</em>. Notice we haven’t reached this point until late in the process.</p><p>Thanks to all the knowledge that we’ve gained, we can calculate a “gain per time” for each card. Suppose a card will helps use gain $2,000 and requires five days, while another is only $500 worth but requires only one day. First card has a value of $400 per day, which is less. Even though the final gain would be higher, we will start with the second card.</p><p>After each card is completed, we can’t yet consider the task complete. We need to let a few days pass (remember the billing is collected every night, and some items needs a few days to appear) and validate that the optimization is working. Sometimes we think of a wonderful idea that has no reason not to work: and yet it doesn’t deliver. We don’t want to spoil our overall progress by letting a single task eat all our hard-earned profits.</p><h4>Step Seven: Reiterate from step #1 every few weeks or months, depending on how fast your product is evolving.</h4><p>Once you’ve run through enough cards and reached your goal, your AWS bill should be lowered by a significant amount. Though, do not forget: cost saving is a never-ending operation. Why not allocate some of your time to it regularly? Think of it as an exercice that will keep your bill healthy.</p><p>You won’t even need to go through all the steps. Just start with step #1, collect enough info to find out a new set of tasks. If none of them actually makes sense (too little savings, too much effort), you can safely stop and come back to step #1 a few weeks later. This is the worst-case scenario, and there is always the possibility you will come up with an idea that will actually proves itself useful.</p><h3>Bonus: Design Principles For Better Cost Management</h3><p>After a while working on the subject of increasing the value we deliver to our customers, I have listed a few principles, that must be followed everytime a design decision is being made:</p><ol><li>Isolate completely separate services on different accounts, and use <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/consolidated-billing.html">Consolidated Billing</a>.</li><li>Tag all your resources (instances, auto-scaling groups, spot requests, RDS databases, DynamoDB tables, S3 buckets…), and enroll those tags as <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Cost Allocation Tags</a>.</li><li>Isolate business services on different EC2 instances. Better use two m5.large, with dedicated cost allocation tags, than one larger m5.xlarge with a less meaningful tag. Or, better yet: make the switch to <a href="https://aws.amazon.com/ecs/">ECS</a>, and run your services in isolated containers.</li><li>Create separate S3 buckets for separate jobs and workflows. Logs of different kind should have their own buckets. Never use a single bucket with many directories in it. This will help you tag your resources accordingly.</li><li>When storing files on S3, always consider <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">lifecycle management</a> from the early stage. How long does the data needs to be available? Which storage class should be used?</li><li>Do not keep EC2 instances doing nothing. Use auto-scaling groups, schedule changing instance types if load is lighter during night/day, consider using Lambda if that is cost efficient.</li><li>When creating a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html">Spot Fleet Request</a>, add a tag (I call mine “Fleet”) with a short description of the request. Enroll this tag as a cost allocation tag.</li><li>Tag your development and production resources. Better yet: define your infrastructure as code with the help of tools such as <a href="https://aws.amazon.com/cloudformation/">CloudFormation</a> or <a href="https://www.terraform.io/">Terraform</a>, and run your development and production services in <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/useconsolidatedbilling-procedure.html">linked AWS accounts</a>.</li><li>If you have dedicated servers that serves specific customers, create a new tag (for example “Customer”) and enroll it as a cost allocation tag.</li><li>Speak with your AWS Account Manager. Their job is not to get the maximum cash from your company. Their job is to make sure your customers are happy, because this will make your business grow. They are talented and will be happy to assist.</li><li>Use your own judgement to estimate how much a new product will cost, and feel free to use the <a href="https://calculator.aws/">AWS Cost Calculator</a>. But do not show over-confidence: once the product is live on production, always check your live bill.</li><li>Every month, check your AWS billing. Note your own progress and if you notice anything drifting suspiciously, act immediately.</li></ol><p>Thanks for reading through! If you have any questions or suggestions, feel free to reach out in the comments.</p><p>Have you been succesful into optimizing your AWS bill? Share all your tips below, and let us know if my tips have proven helpful to you as well!</p><p><em>Disclaimer: I had this article in draft for quite some time. I have switched job since I wrote it. I am still working as CTO in another company, that is also using AWS. Good news: I was successful in applying the principles described in this story.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f728c501842" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The iPad Is The New Mac]]></title>
            <link>https://medium.com/swlh/the-ipad-is-the-new-mac-d0c0b0cb8074?source=rss-572ea0d2c27a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0c0b0cb8074</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Christopher Allène]]></dc:creator>
            <pubDate>Sat, 09 May 2020 15:00:41 GMT</pubDate>
            <atom:updated>2020-05-12T09:02:25.280Z</atom:updated>
            <content:encoded><![CDATA[<h4>Been thinking about using an iPad for web design and web development? Not a crazy idea.</h4><p>This story is about how I used my iPad to create my latest web site, <a href="https://covidvision.org/">CovidVision.or</a>g. I’ll walk you from the initial design steps to the final product, show you the apps that I found useful, and how iPadOS made it a success, by enabling powerful workflows where a task was started within an app, and completed in another.</p><p>In this story, we’ll be taking a journey from the initial mock-up, shown left, to the final website, shown right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StZK-VA5G7K1Avo5rvD3-w.png" /><figcaption>From sketch to reality</figcaption></figure><p>At work, I use both a MacBook and an iPad, although I do love the tablet more. However, I’ve never done something like this only with an iPad. Could it be done?</p><p>I was about to find out. (The answer is YES.)</p><h4>The project goals: who? what? where? when? why?</h4><p>I love data visualizations. My job is to create technologies that enable advertisers and web agencies to run and optimize their campaigns, both online and offline. This involves handling a lot of data, dealing with always-changing algorithms that makes decision in real-time, and ultimately, lot of dashboards to display the trend, how much they spent, and overall how much they performed.</p><p>With the confinement about to take place, I’ve been thinking. I wanted to create a tool to help visualize the dynamics of the Covid-19 pandemic. Rightly so, many websites already existed, and mine would surely be another one on top of the others, but still, there were several features that I wanted, and that I couldn’t find elsewhere:</p><ul><li>the ability to perform arbitrary comparisons between differents US states, countries, continents, or even the world, per capita or in absolute;</li><li>interactive charts where you could manually “timeshift” some curves to see how they overlap (say, if you wanted to compare the percentage of deaths in several places that got hit at different times);</li><li>some confidence with the data (we all know that aggregating so many different data sources — coming from literaly thousands of countries — can be an overwhelming task).</li></ul><p>I will work alone on this project. The website would be done using <a href="https://reactjs.org/">React.JS</a>. This is perfect for a project like this: components are easy to write, easier to rewrite, and combine, once the need arise. Since I want to release the first version in just a few days, I need full flexibility and things to be easy. Plus, there are so many cool chart libraries that integrates with React, such as <a href="https://recharts.org/">Recharts</a>. Providing I18N is almost fun with the help of <a href="https://lingui.js.org/">LinguiJS</a>. Last, the UI components would be provided by <a href="https://material-ui.com/">Material-UI</a>, which also gives the ability to streamline CSS within JavaScript with the powerful <a href="https://github.com/cssinjs/jss">JSS</a> library.</p><p>I already rent a server on <a href="https://www.scaleway.com/en/dedibox/">Scaleway</a> which could be used for the project. To speed things up, our friends at <a href="https://www.cloudflare.com/cdn/">CloudFlare</a> would be glad to provide us CDN service. With a “free” price tag, and a fairly decent set of features, that’s difficult to beat.</p><p>This could be done. And this could <em>all </em>be done on an iPad. We’re about to cover the following parts:</p><ul><li>On part one, we’re going to cover the mock-up and early design;</li><li>On part two, we’ll start coding using my favorite tool: a terminal;</li><li>On part three, we’ll talk about the power of Files, and how different apps integrate with it. This is where we’ll cover Git;</li><li>On part four, we’ll see how to design and debug CSS and HTML locally on the iPad;</li><li>On part five, we’ll open the door to debugging the site on a real Windows computer;</li><li>On part six, we’ll cover advanced workflows between apps, with the power of tools such as Shortcuts.</li><li>Finally, we’ll sum it up!</li></ul><h3>Part One: iPad Unlocks Creativity</h3><h4>It’s Mock-Up Time!</h4><p>Before going to the real work of coding the website, I first needed to sketch a mock-up of what the website would look like.</p><p>A tool that I like is the powerful <a href="https://apps.apple.com/fr/app/adobe-comp/id970725481?l=en">Adobe Comp</a>, which is a free app. This app is king on the early stages of designing a new product, especially when brainstorming with your team: get yourself around a table, drop the iPad in the center, and let the creativity spill out.</p><p>Where this app really shines is that it provides you with a handful of gestures: with the power of your finger (or your Apple Pencil) you can easily create new shapes, duplicate them, erase them at will, and even insert <em>lorem ipsums</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaUP6qFA15trI4Nu9qZ0hw.png" /><figcaption>First mockup of the web site, using Adobe Comp</figcaption></figure><p>Everything doesn’t need to be perfect. The items are lazily aligned, font size isn’t ideal. That’s not the point yet: the goal at this stage is to throw ideas on paper, see what’s working, see what’s not.</p><p>I’m also using a lot of <em>placeholders </em>(the gray rectangles with the two cross lines). In the website, these are going to be the charts. I don’t need them to be visible at this stage, but I want to get a visual cue of the physical state they’ll be needing.</p><p><em>My tip</em>: take some time to memorize all the gestures that the app offer. For example, drawing a plus sign (“+”) duplicates the selection. The app offers this friendly reminder of all gestures (open the Settings menu and click <em>Drawing Gesture Help</em>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egv3Gxa0KaWb8C3HFh7gbQ.png" /><figcaption>All the gestures provided by Adobe Comp</figcaption></figure><h4>From the mock-up to the visual identity</h4><p>With my initial mock-up in hand comes the time to build the graphic charter and some logos.</p><p>What colors should I be using? The popular <a href="https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6">dashboard from the Johns Hopkins University</a> uses a dark theme and associates the most important metrics with different colors, e.g. <em>red</em> for the deaths, <em>green </em>for the recovered cases, etc.</p><p>As said Picasso, “<em>good artists copy, great artists steal.</em>” Although I wouldn’t want to pretend I am a good artist (much less a great one!) I like this theme, so I decided I wanted a variation of it.</p><p>For this task, my app of choice is <a href="https://apps.apple.com/fr/app/affinity-designer/id1274090551?l=en">Affinity Designer</a> ($19.99). This is a graphic design tool that has many of the features of Adobe Illustrator, with two major added advantages: it’s deeply integrated with the iPad (lot of gestures, support for the Apple Pencil) and it’s so cheaper, less than twenty bucks with NO subscriptions at all. (I don’t even get how the folks at Affinity manage to get paid with such a ridiculous price tag.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bopVCiAeym70Wzkjmusbdg.png" /><figcaption>First design of the graphic charter</figcaption></figure><p>Here, my goal is slightly different from the mock-up I did in Adobe Comp. I want to pick the colors, design the logos, fine-tune the layout, but not to get a pixel-perfect alignment (that can be done when I’ll write the CSS files).</p><p>There is one thing that Affinity Designer does pretty well and that might not be obvious if you have some backgrounds with Adobe Illustrator: you can mix <em>vector layers</em> with <em>raster layers</em>. On the screenshot above, the rectangles are vector, and all the annotations are hand-drawn. If you have an <a href="https://www.apple.com/apple-pencil/">Apple Pencil 2nd Generation</a> this is even easier as you can double-tap your pencil to switch between <em>draw </em>and <em>erase</em> mode.</p><p>Of course, Affinity Designer works pretty well with pure vector documents. Here is my logo during its creation, with the <em>Node tool </em>currently active, displaying the nodes and control handles of the bezier curves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7Uc0ldQW_I9F_5PIWYE2A.png" /><figcaption>My logo, edited in Affinity Designer</figcaption></figure><p><em>My tip</em>: Affinity Designer has what they call a <em>Export persona</em>. This is a view where you define <em>slices </em>of your document, choose where you want to export them, and in which format.</p><p>Since the app supports integration with the <em>Files</em>, this enables workflows where you can get Designer to automatically export your artwork in Working Copy (which we’ll cover later in part three) whenever you make a change, one click away to committing them into your Git repository.</p><h3>Part Two: Forget All You Know About Terminals</h3><p><em>This part is about terminals and ssh connections: if you’re not much into using the command line, feel free to skip reading it!</em></p><p>There is this joke that there are <em>10 types</em> of programmers in the world: those who like using the terminal, and those who don’t. (It’s a slight variation on an old joke, if you didn’t know it, <a href="https://www.idtech.com/blog/part-i-top-10-programmer-jokes-explained-for-the-rest-of-us">it’s explained here</a>.)</p><p>I love my terminal. It’s almost mind-boggling how something so simple (after all, it’s just cells of characters) can be used to create amazingly complex things.</p><p>Back in the days, I remember the first time I used <em>ssh</em>. Before then, I mastered <em>telnet</em>, and thought everything had already be done. I was wrong.</p><p>Now, back to our 21st century. With my knowledge of ssh, once again, I thought everthing had already been done. I was wrong. Once again.</p><p>Welcome <em>mosh</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*BWHtaDKSP5gGehwlotUMCQ.png" /><figcaption>mosh is more responsive than SSH (credit mosh.org)</figcaption></figure><p><a href="https://mosh.org/">Mosh</a> is an open-source project, that provides a kind of wrapper around your ssh connection. It features many improvements over ssh:</p><ul><li>There is a <em>virtual framebuffer </em>on the server, meaning if the server sends output too fast for you to read it (say you <em>cat</em> a huge file by mistake), no worries, you’ll just catch up as your connection allows.</li><li>It has a key prediction algorithm. This reduces the latency between the moment you hit a key, and when it appears on screen.</li><li>It uses UDP: you can close your computer, switch your network, get back to work and continue working as if nothing happened.</li><li>It’s still as secure as ssh.</li></ul><p>On iPad, there is a wonderful app that allows you to use mosh: <a href="https://apps.apple.com/fr/app/blink-shell-mosh-ssh-client/id1156707581?l=en">Blink Shell</a> ($19.99). This app has a rather unique distribution licence: it’s free and open source, you can build it yourself if you have XCode on your Mac. On the other hand, if you’d like the convenience, or just want to show your appreciation to the team behind it, you can also buy it on the App Store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0VCIBH-fTO2RKwtQWA1K4w.png" /><figcaption>nvim inside Blink Shell, on iPadOS</figcaption></figure><p>So, here is my review of Blink Shell.</p><h4>Blink. Is. The. Best. Terminal. App. Ever.</h4><p>First, Blink, integrates wonderfully with iPadOS and mosh. You can mount directories from the Files app and perform basic commands, such as <em>scp</em>, <em>cp</em> or <em>diff</em>. Thanks to mosh being stateless, server connections even persist after upgrading the app (or even iPadOS!)</p><p>Then, it’s fast. So blazingly fast. It’s faster than <a href="https://www.iterm2.com/index.html">iTerm2</a> on my Mac, by a <em>very</em> noticeable margin. It’s so fast that I no longer want to use any terminal on my Mac.</p><p>Last but not least, if you need to use ssh connections, no worries, Blink supports a mode where your connections will stay alive.I never have to reconnect, because of the power of the mosh protocol. Other terminal clients typically require to reopen the app every few minutes while in the background (often prompting you for you to do so with a nagging notification). Blink Shell doesn’t require that: just type <em>geotrack</em> in a new Blink window and the app will track your location. Officially, this is a feature to track your geo data and let you later visualize it. Unoficially, iPadOS won’t kill an app that is tracking your geolocation unless absolutely necessary. Win-win!</p><p><em>My tip: </em>if you are using a Magic Keyboard of Smart Folio Keyboard, you don’t have an Escape key, but no worries. You can have Blink remap some other key, such as “§”. And, if this isn’t working for you, you can always use the system-wide shortcut “Cmd+Period”.</p><p>My keyboard uses a French (Azerty) layout, which means the top-leftmost key on my keyboard is “@”. I certainly do not want to remap it. The system-wide shortcut works certainly in Blink and is so useful. For example, in <em>bash</em>, hitting “Cmd+Period Underscore” yanks the last word of the previous line. It also works in <em>vim</em> (useful for visual block insertions) and everywhere else. Handy!</p><h3>Part Three: Files, Everywhere</h3><p>If you’ve been following along, you know that I made my artwork using the fabulous Affinity Designer app, and my coding remotely, using a SSH connection (with the power of mosh). This means I typically have a lot of files on my iPad, and also a lot of files on my remote server.</p><p>This would have been a problem a few years ago, but fortunately it was solved with iOS 10 and the introduction of <a href="https://developer.apple.com/documentation/fileprovider/creating_file_providers_for_multiple_versions_of_ios">Document Providers</a>, and more importantly in iOS 11with the long awaited <a href="https://support.apple.com/en-us/HT206481">Files</a> app that finally provided a polished UI and integration with third-parties apps. Some I use:</p><ul><li>iCloud, for my personnal stuff;</li><li>Google Drive, for sharing files with coworkers;</li><li>Microsoft One Drive, to sync the Desktop and Downloads folder of my work computers (that gives me easy access to screenshots and downloads even on the go).</li></ul><p>Speaking of sharting the <em>favicons </em>files for <a href="https://covidvision.org/">CovidVision.org</a> from my iPad to my server, the solution of choice is to use a Git client that works with Files. Here comes <a href="https://apps.apple.com/fr/app/working-copy-git-client/id896694807?l=en">Working Copy</a> ($19.99).</p><p>Once I have cloned my repostitory locally, I can go back to Affinity Designer and chose to export all the different icons to my local git repository. This is something that can easily be done with the <em>Export Persona</em>, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYHNaxHBFTJbCgYROj4yEg.png" /><figcaption>All my favicons, in Affinity Designer</figcaption></figure><p>And now, whenever I make some changes in Designer, all the files are instantly exported to Working Copy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATvG_morRsnufLEo3jRsAg.png" /><figcaption>The same favicons, shown in Working Copy</figcaption></figure><p>There! Once I’m done working with the assets, I can click a button, commit my changes, and push them on my server.</p><p>This is one of the workflow I’m most satisfied with using an iPad, and I think it’s the beauty of the platform. Apps are tools for doing isolated tasks, and you move forward, one step at a time, toward completing your goal.</p><p><em>One last word </em>regarding this app: there has been debates for some time about whether or not app developers should use a subscription model. Those in favor of that model believe that, with a lower pricing tag than most software, it helps fund the development process. Those against it advocate that small amounts do pile up in the long run, and there is not guarantee that the app will get upgraded. The approach taken by Working Copy is rather clever and I would gladly see other developers take the same path. In the app, you unlock Pro features by paying $19.99 (this is required to push to remote repositories). This gives you all Pro features currently available, plus all new features coming in the next twelve months. Then, you keep everthing you already unlocked, but you won’t unlock new features any longer, though you can, if you’re so inclined, unlock Pro again, for a reduced cost of $9.99. I think this pricing is fairly smart: you’re not really committing yourself to a subscription, though, if you value the efforts the developers make to improve their product, you can choose to reward them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bi0LweeC0oOoXLppHRvUhA.png" /><figcaption>The list of Working Copy features covered with my Pro upgrade, and those not covered. I can simply unlock Pro again to unlock these features, which will give me all these features and the new for twelve additional months.</figcaption></figure><h3>Part Four: Inspecting CSS, HTML And JavaScript Locally on The iPad</h3><p>When you create a web app, be it in React or any other framework, there comes a time when debugging needs to be done. On my Mac, it’s pretty easy: I open up my favorite web browser, and the Developer Mode gives me all the things I need.</p><p>On my iPad, of course, there is Safari. Though, it’s a stripped-down version of Safari, with the Developer Mode missing. This is a major inconvenience that probably 99,99% of web developers working on iPad wish Apple would fix, but so far, nothing has been announced. There is some hope, though: lately, there have been <a href="https://twitter.com/jon_prosser/status/1252187152831692800?s=21">rumors that XCode would be coming natively to the iPad</a>. We can cross all of our fingers that Apple will listen to the community and add the much-awaited Developper Mode in iPadOS. After all, it all makes sense with recent developments: we now have cursor support, developpers can sell their app on both the Mac App Store and the iTunes App Store, there is this Swift Playground app that proves that coding on an iPad is doable AND fun.</p><p>In the meantime, we have to find solutions to close the gap. Fortunately, the iOS environment is full of talented developpers, such as the team at Parallax Dynamics. They created <a href="https://apps.apple.com/fr/app/inspect-browser/id1203594958?l=en">Inspect Browser</a>, which brings you as close as Developper Mode that the Apple policies for apps on the store would allow.</p><p>First, you have a Console tab. This is handy because the app support complex data types such as objects or array, and you can even do basic coloring. In fact, when you open a new tab, the app shows you a glimpse of all the things you can do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWb_9iOLeimqUIMRNrUCwg.png" /><figcaption>The Console tab from Inspect Browser</figcaption></figure><p>Since there is no JavaScript debugger per se (you cannot pause/step your execution), I use the console a lot. It usually isn’t a good practice, but given the limitation of the platform, there’s nothing better I can do (except use my Mac, but for the purpose of this project, I wanted to focus only on the iPad). To make things easier, I have made a little ES6 module that deals with outputting stuff, serializing them when possible (This is important, because Inspect Browser does keep only the reference of variables you log, so if you log an object and later change a property, the latest value will show on the console.)</p><p>Fortunately, Inspect Browser is much more than a fancy way to show a console (after all, you don’t even need an app for that, you can write a bookmarklet that captures calls to the console and display them on a div). Where it really shines is that you can inspect CSS in real-time. You can even change a rule and immediately see how it applies:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4lgi_xm1abUQ4K4Njn9FA.png" /><figcaption>Inspecting CSS in real-time</figcaption></figure><p>Here, I have a selected a <em>div</em> (you can click <em>Tap to Inspect Mode </em>and click anywhere on the page, or use your mouse to hover an element). The div shows with a blue overlay, and on the right I can inspect the styles. I have added a background-color: red property, just to show that it got reflected on my page. If needed, you can even swipe the element to the left and a Delete button will appear.</p><p>Before this app existed, you could do the same thing by plugging a cable and opening Safari on your Mac (or using the Simulator) but that was slow and painful. Being able to edit the styles right on the iPad is definitely something that will help you a lot, especially if you’re doing a responsive design.</p><p>About responsive design, one last feature that I really love with this app is that you have a built-in presets of all common iOS devices. Just click on any, and the web view will resize to match its size. You just have to click each of these devices in sequence to make sure your layout is good and working across all Apple devices, and you can even add more layouts!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIbBt1VI8HsFaYedOxNMGw.png" /><figcaption>It’s easy to test the responsiveness of your app</figcaption></figure><p>If you’re still not convinced that you need this app, there is more to discover: you can load local files stored in Files (without ever needing a web server), inspect JavaScript properties, view the DOM box of each elements, enable a no-cache mode, inspect cookies and local storage…</p><h3>Part Five: The Moment You Need To Test Your Web App on Desktop</h3><p>Now that the web app is almost complete, there is one last thing that needs to be done. Thanks to Inspect Browser, most of the responsive design was tested on the iPad: it’s really easy to make sure the CSS is working on every phone/tablet thanks to the built-in presets. Using an iPad for this task is a huge plus, as its a also a touch device, so you can get an almost 100% correct idea of how the UI and the UX are working together on a phone.</p><p>Still, mobile peaks at 50% of the internet browsing. Testing wouldn’t be complete if we didn’t test the website on a <em>real </em>computer. And, by design, an iPad is not a computer: sure, you can run Safari, but you’re not having the real computer experience: even with a mouse or trackpad, supported by iOS 13.4, this is not the real thing: hovers do not react the same, and, anyway, you don’t want to show the desktop interface on your iPad version anyway, things need to behave differently between an iPad and a desktop computer.</p><p>So, the iPad is not a computer. But can it act like one?</p><p>Sure! Here comes the power of remote desktop. You’ll need a computer, somewhere, to act as a server. I use a virtual machine on the cloud, that’s easy to turn on and off when needed, and you can even use a cloud service that will take care of the license for you, such as AWS EC2.</p><p>My app of choice to use remote desktops is <a href="https://apps.apple.com/fr/app/jump-desktop-rdp-vnc-fluid/id364876095?l=en">Jump Desktop</a> ($14.99). If you’re not willing to pay, there is a free app from Microsoft, but, let’s face it, it’s not complete. With Jump, you get fantastic cursor support (even when not using a mouse or trackpad, with a handy overlay that you can long-press to perform a secondary click).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gD_U1acR6Euk6kQo4FSRFA.png" /><figcaption>The screenshot actually doesn’t talk much. It’s just Windows.</figcaption></figure><p>Since one of the latest version, Jump can share its settings on all your devices. That’s pretty handy because this app also work on your iPhone. You’ll never be stuck on a website that doesn’t really work on a mobile, just fire up Jump and there you are, on a full-sized desktop (albeit on your mobile-sized screen).</p><p>If you have a Magic Keyboard, this app really blurs the line between iPad and classic desktop computers. It’s because of setup like this that maybe, one day, tablets and computers will converge to provide a seamless, integrated, fully scriptable experience.</p><p>Of course, Jump shares the clipboard between your iPad and your Windows computer, but there’s more: it works with the Files app, so you can share local files on your device to your Windows server. From the computer point of view, this is just a folder, like any other: you can drop your files, edit them, do whatever you want. From your iPad, they are automatically synced with Files, which also means that you can use any apps that knows how to deal with Files to edit them in place.</p><p><em>A small tip</em>: there is a little tool from Microsoft named <a href="https://www.microsoft.com/en-us/download/details.aspx?id=22339">Microsoft Keyboard Layout Creator</a>. It’s pretty old (latest release was from 2007) but it still work on modern versions of Windows. You can use it to create a custom keyboard layout: I did, so the keys on my Apple Azerty layout work the same on my remote server, and I don’t have to duplicate my muscle memories based on what environment I’m currently in.</p><h3>Part Six: Enabling Even More Powerful Workflows Between Apps With Shortcuts</h3><p>The web site was released on early April. As I wanted to make sure that everything was working as intended, I needed people to participate. To help raise awareness, I created a Twitter account (<a href="https://twitter.com/covidvision">@covidvision</a>), and decided to tweet in various discussions about the Covid-19 outbreak.</p><p>To help increase interaction with this account, I decided to publish charts and insights about the outbreak a few times a day. The charts would be screenshots from <a href="https://covidvision.org/">covidvision.org</a>, with an overlay inviting people to browse the site. Here is one, in French:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIkb_y0Wch5rZmbV0jg0fQ.png" /><figcaption>Russia just got ahead of China.</figcaption></figure><p>This is a very important step, because I am working on this project alone, and I need feedback to find interfaces issues, bug in the data or in some translations.</p><p>For example, I was using a <a href="https://github.com/michaelwittig/node-i18n-iso-countries">popular package for translating ISO-3166 country names</a> and apparently it got the name wrong in French for the <em>Republic of the Congo</em>. Fortunately, <a href="https://twitter.com/florentndinga/status/1252572120233791490?s=21">someone noticed</a> and I was able to fix it and file a pull request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ud4DjA4DbZ0cTN-sQTEBpQ.png" /><figcaption>Another Twitter user noticing a glitch in our of the translation</figcaption></figure><p>This feedback was very important, especially during the early stages of the website. Twitter can sometimes feel intimidating, but its power should not be underestimated. A lot of people are willing to help, if you manage to sneak in their feed and share stories that they like, with both text, videos, chart and pictures, but the media you share needs to be crafted carefully.</p><p>Due to how tweets are rended on screen, they perform best when the images are around the 16:9 ratio. Creating all the images by hand, with the resizing and overlay, would have been very tedious.</p><p>Here comes the power of <a href="https://support.apple.com/en-us/HT208309">Shortcuts</a>. If you don’t know this app, it’s the successor of Workflow, that has been bought by Apple and integrated into iOS and iPadOS. It allows you to create automation that can be triggered from various places.</p><p>One is the Share Sheet from the modal screen that appears when doing a screenshot. Thanks to this integration, I could create a shortcut that does the following:</p><ul><li>take an image as input;</li><li>add extra background, either left and right, or top and bottom, so that the image has the correct ratio (16:9 minus the overlay);</li><li>resize the image to a width of 2400px;</li><li>add the overlay;</li><li>save the image into a dedicated album.</li></ul><p>Here is an extract of this shortcut:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xi_QaffuMvvqDccv_dR90Q.png" /><figcaption>A shortcut to resize an image</figcaption></figure><p>Given this shortcut, the workflow is pretty easy. I browse my web site until I see some data that I think makes sense, take a screenshot, click Share, and click on the name of my workflow. A few seconds later, an image is then saved to my photo album.</p><p>This workflow can even be made easier with Social Media apps. I use <a href="https://buffer.com/">Buffer</a>, which has a free tier that allows me to queue up to 10 posts. This is convenient: I can design a few posts at once, queue them at different times (you pick your times once and for all, and once you queue a post, it will get sent at the next available slot). And, since Shortcuts integrates with apps, I can even add a last step to open the image in Buffer and schedule my post, all that from the convenience of the screenshot screen.</p><p><em>My tip:</em> if you want to learn more about creating shortcuts, I would suggest browsing the popular subreddit <a href="https://www.google.fr/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=2ahUKEwjGtKTPvJrpAhUIkRQKHSNqCC4QFjAAegQIBhAB&amp;url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fshortcuts%2F&amp;usg=AOvVaw2SxzKMtiXAvoQozDQ7zOdT">/r/shortcuts</a>, where you’ll find a lot of inspiration, and people here to help if you’re stuck!</p><h3>Conclusion: The iPad is The New Mac, with More Fun!</h3><p>That’s it! I hope you have enjoyed reading this story as much as I did with the designing, the coding, the debugging… I still find incredible that the shape of what we call a <em>computer </em>has changed so much in the last few years. And, it’s amazing what can now be done in <em>just </em>a few days, and <em>so </em>much fun!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQuSnAHRAH01AgjZiDZdMQ.jpeg" /><figcaption>Work in progress!</figcaption></figure><p>From the beginning, the Mac and the iPad have taken different directions. In the last few years, some would never cross again: Apple has been pretty clear that touch interfaces is not coming to macOS on a foreseeable future. Many features from macOS have, however, made their way to iPadOS: support for windows, pointing devices, files, storage…</p><p>Each of these addition made the iPadOS more robust and enabled new workflows. With the recent improvements of the ARM architecture CPUs, iPad have never been that powerful, and even the most intensive tasks such as video editing or photo retouching is now possible on an iPad.</p><p>But, more importantly, the iPad philosophy enable multiple apps and tools to work seamlessy together, on the same ecosystem, allowing you to focus on each subtask. No worries if your app of choice can’t do everything you need: break it down, chances are good there is an app for that.</p><p>This story was written from home, using my iPad. This is a 2018 12.9&quot; iPad Pro, with an Apple Pencil 2 and the fantastic <a href="https://www.apple.com/ipad-keyboards/">Magic Keyboard</a>.</p><p>Please reach out in the comments if you have any questions or wanted to share your own workflows and tips, and thanks for reading along my first story on Medium!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0c0b0cb8074" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-ipad-is-the-new-mac-d0c0b0cb8074">The iPad Is The New Mac</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>