<?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[Coding your dreams - Medium]]></title>
        <description><![CDATA[Coding your dreams is Dream Implementation’s publication about coding, new technologies, dreams and Star Trek - Medium]]></description>
        <link>https://medium.com/coding-your-dreams?source=rss----bf14b0f80a0d---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Coding your dreams - Medium</title>
            <link>https://medium.com/coding-your-dreams?source=rss----bf14b0f80a0d---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:23:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/coding-your-dreams" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Flutter to build mobile apps]]></title>
            <link>https://medium.com/coding-your-dreams/using-flutter-to-build-mobile-apps-67dafb9a89a?source=rss----bf14b0f80a0d---4</link>
            <guid isPermaLink="false">https://medium.com/p/67dafb9a89a</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Luka Knezić]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 09:50:52 GMT</pubDate>
            <atom:updated>2018-01-12T09:50:51.743Z</atom:updated>
            <content:encoded><![CDATA[<p>As an Android developer, I never really liked cross-platform solutions. I thought they would never be able to match the smooth animations and responsiveness of native apps. After looking at some of the new and updated frameworks, I realized this was no longer true. The difference between them had become minimal. I wanted to make a replica of the first Android game I made. It was a simple 2D game with a 3x4 grid view filled with squares where one randomly selected square wouldn’t be the same color as all the others.</p><p>So I tried React Native as it had great support and a lot of outside contributors. After a few days of going through no real IDE support, choosing from many versions of even the simplest libraries, reading the really poor documentation and not really making much progress, I started to look for alternatives. I was already determined to make the iOS app without using Swift or Objective-C. There had to be a better way than this. One of the alternatives was <strong>Flutter</strong> — I remembered hearing about it and I wanted to give it a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FP8_X1HZdDYHydxhItIMlA.png" /><figcaption>Game screen</figcaption></figure><h3>Trying Flutter</h3><p>Flutter is a reactive SDK for building cross-platform apps that instead of using OEM widgets provided by the platform actually draws them by itself. That’s all I knew about it. Before that, I had never seen any Dart or Flutter code. To start off, I played with their gallery_example app to make sense of what was I getting myself into. After React Native I was prepared for the worst, but Dart actually turned out to be <strong>so intuitive </strong>that it took me only a few hours to make the first game prototype in Flutter. Exceptions are shown within the widget that caused it while the rest of the app still runs just fine, instead of slapping you with the red screen with no actual information about the exception like in React Native.</p><p>The great thing about it is that everything is written in Dart and most of it is documented pretty well on their site. Even things that are not documented or that are missing are easy to figure out as you can just jump into the code and see what exactly is happening in that built-in widget since they are just the same as any of your custom widgets.</p><p>After I made a working game, I wanted to add more functionality to it. At the time it was just a screen with a grid view, there was no main menu or anything else really. After adding the main menu and the game over screen, I wanted to add animations and make it feel smoother during game-play. It was surprisingly easy to make complex animations, control them and chain multiple animations!</p><p>Now that the game looked great, I added Google login and a real-time database to keep track of high scores and show them within the game. There are Firebase plugins that are easy to use and simple to set up. Since all of that was already built or built by the Flutter team I wanted to see what would it take to implement some functionality that is not widely available as a finished library or native component, I decided it would be a good idea to sync random generator from the game with NTP service. That way when I was animating color changing in the main menu all ‘random’ colors and animations would sync up on all other devices, and it could work offline as long as the local clock on the device didn’t drift too much. Implementing this was more challenging but completely doable.</p><p>While <strong>I found a bug in Flutter</strong> when receiving data from RawDatagramSocket that I used for communicating with NTP service, the bug was fixed fairly quickly given that it was not crucial feature or part of a big production app.</p><h3>So I should use it?</h3><p>Unfortunately, since <strong>it is in alpha</strong>, it means some things are just not ready yet. There are no maps or in-app browser widgets. Even though you can use a library for that, which will launch maps or web browser in a new native activity and communicate with the Flutter app, there is lack of flexibility or customization that I have got used to with Flutter. While this is a setback, it can be solved by making a clone of the ‘url_launcher’ library from Flutter team, customizing some of the parameters and the layout of the browser view that was displayed, so everything still looks like a part of the app.</p><p>Although this seemed like a big problem, it was actually fairly easy to make native activity and communicate with flutter app over PlatformChannels. While this seems to be just a minor detail, the reality is that most of our clients want to show maps somewhere in their apps and that sometimes makes it impossible to even try and use Flutter for development. They are working on it (Issue #73), but as of the time of writing this article, there is no support for that.</p><h3>So I shouldn’t use it?</h3><p>Flutter is a good solution for simple cross-platform apps at the moment, but once Flutter gets released, it could really disrupt mobile development just by the fact that it really decreases development time. Dart makes it really easy to transition from Java, Kotlin or even JavaScript. It’s really easy to understand and you can actually ‘read’ the widgets without the need for a visual editor. This is important today as every app has its own customized widgets allowing for full app customization and Flutter’s rendering engine makes it possible to have 120 fps animations. Unfortunately, the only thing getting in the way of using Flutter much more is the lack of support for maps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67dafb9a89a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-your-dreams/using-flutter-to-build-mobile-apps-67dafb9a89a">Using Flutter to build mobile apps</a> was originally published in <a href="https://medium.com/coding-your-dreams">Coding your dreams</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Adria 2017 Conference]]></title>
            <link>https://medium.com/coding-your-dreams/aws-adria-2017-conference-f06709df73c1?source=rss----bf14b0f80a0d---4</link>
            <guid isPermaLink="false">https://medium.com/p/f06709df73c1</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[video-processing]]></category>
            <dc:creator><![CDATA[Dream Implementation]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 10:57:41 GMT</pubDate>
            <atom:updated>2017-11-24T10:57:41.386Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Written by </em><a href="https://medium.com/u/c8bbba437c08"><em>Matija Buriša</em></a><em> and </em><a href="https://medium.com/u/9350c51566af"><em>Jakov Kanaet</em></a></p><p>Our team of two engineers, a senior backend developer and a system administrator, attended the first ever <a href="https://www.awsadria.com/#home">AWS conference in Croatia</a>, which was held on Oct 27 &amp; 28. On the first day the talks took place in Opatija, and on the second in Rijeka. However, the team only participated in the first day since they had to rush to a very important Dream Implementation event: Casual Friday.</p><p>The conference had some interesting talks, such as AWS success stories about businesses profiting from migrating to AWS to business process automation, including how to offload heavy load from one’s own infrastructure to AWS services, how to save money and cool things like zero-downtime failovers.</p><p>The most popular topic and buzzword was — “serverless”.</p><p><strong>What is “Serverless Architecture” you may ask?</strong> Serverless architectures “refer to applications that significantly depend on third-party services (knows as Backend as a Service or “BaaS”), the best known vendor host of which currently is AWS Lambda”. By using these ideas, and by moving much of the behavior to the front end, such architectures remove the need for the traditional ‘always on’ server system sitting behind an application. Depending on the circumstances, such systems can significantly reduce operational cost and complexity at the cost of vendor dependencies.</p><p>This got us thinking…<strong>what can we change in our own architecture?</strong> Are we already on the right track? Well, one of our primary projects, Saybubble, already uses a great deal of Amazon Web Services and it is an ideal project to learn new things.</p><p>We have already achieved the “part-serverless” status by using AWS Lambda service for executing the task of encoding video files to streaming format for easier use and playback of videos in our mobile apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*JMJ5a-JIpMTIwucRRkmuZQ.png" /><figcaption>AWS user authentication workflow</figcaption></figure><p>Currently we are working on <strong>replacing image and video processing instances with lambda functions</strong>. The upload to the server will also be replaced with direct upload from the mobile application to AWS S3 bucket.</p><p>Direct upload from a mobile device to a bucket will remove unnecessary traffic from the server. With bucket triggers we can invoke a lambda function that will process the uploaded media file, and after processing, the SNS service will alert our API server that the media is ready for the user (video is transcoded for streaming, images resized, thumbnails created, etc.).</p><p>Offloading the server in this way would have several major benefits: we will no longer have need for video or image upload and processing instances. Furthermore, such AWS services are <strong>highly scalable</strong> and also allow for a pay-as-you-go payment option, which means you only pay for the services you use.</p><p>Key components of our AWS infrastructure:</p><ul><li><strong>Amazon Lambda</strong> — serverless code execution on demand. Supported languages: Node.js, Java, C# and Python.</li><li><strong>Simple Notification Service</strong> — for sending notifications (media uploaded, video transcoded, etc.)</li><li><strong>Amazon Cognito</strong> — collects a user’s profile attributes into directories called user pools that a mobile app or web app uses to configure limited access to AWS resources.</li><li><strong>Security Token service </strong>— generates temporary, limited-privilege credentials</li></ul><p><strong>So why haven’t we done it before?</strong> Until now temporary security credentials didn’t exist. With temporary security credentials we can allow all application users direct upload to the bucket without storing AWS credentials in the mobile application. For security reasons, mobile application users are able to upload media only to a specific location in the bucket.</p><p>The main reason for using AWS infrastructure was offloading our EC2 instances. With AWS Lambda we hope to achieve high scalability and availability without managing the infrastructure at a low cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*t0DqX9tKN-61uCujIWKApg.png" /><figcaption>AWS video processing workflow</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f06709df73c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-your-dreams/aws-adria-2017-conference-f06709df73c1">AWS Adria 2017 Conference</a> was originally published in <a href="https://medium.com/coding-your-dreams">Coding your dreams</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>