<?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 Kamil Powałowski on Medium]]></title>
        <description><![CDATA[Stories by Kamil Powałowski on Medium]]></description>
        <link>https://medium.com/@kamil.powalowski?source=rss-bcb0c188e4f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6KgSHWYqKpgYnFKkS1Y9iw.png</url>
            <title>Stories by Kamil Powałowski on Medium</title>
            <link>https://medium.com/@kamil.powalowski?source=rss-bcb0c188e4f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:42:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kamil.powalowski/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 personal OKRs helped me to create MVP in three months . . . and what OKRs mean]]></title>
            <link>https://medium.com/mvp-blog/how-personal-okrs-helped-me-to-create-mvp-in-three-months-and-what-okrs-mean-ca6cf3a7e85e?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca6cf3a7e85e</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[objectives-key-results]]></category>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[okr]]></category>
            <category><![CDATA[goals]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 11:13:07 GMT</pubDate>
            <atom:updated>2019-09-24T11:13:07.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*B6zfdGC6mppnErNbULlWAg.png" /><figcaption>Illustration source <a href="https://gallery.manypixels.co/">https://gallery.manypixels.co</a></figcaption></figure><h3>How personal OKRs helped me to create MVP in three months . . . and what OKRs mean</h3><h4>There was no article in the last few months. But I have a reason for that. During this quarter, I decided to focus on another project. And the word “focus” is very crucial here because the project is named FocusOKR. But let’s go back to the beginning.</h4><h3>Objectives and Key Results</h3><p>While working at 10Clouds, I became familiar with the concept of Objectives and Key Results. OKRs form a framework for defining and tracking objectives and their outcome. Created by Andy Grove and propagated by John Doerr, they have become the IT industry standard when talking about shaping the direction of a company and validating that we are heading in the right direction. Some famous companies and start-ups that use OKRs are Intel, Google, Uber, and Twitter.</p><p>Sometime later, a friend of mine, Ania, posted on Facebook that she uses OKRs in her personal life. I decided to try it myself. First, I started slow, with objectives related to my physical health (and key results: go running every week and do a set of exercises twice a week). I liked how OKRs helped me to focus on a limited number of objectives and to see how this commitment yielded results.</p><h3>Objective</h3><p>The biggest issue I had was how to track the progress of my objectives. Simple solutions like Notion and spreadsheets didn’t work me (too much effort to prepare them), and dedicated services were prepared for companies (not individuals), so managing personal objectives was complicated. I decided to give myself an objective for the third quarter: “Personal OKRs should be easy and accessible for everyone.” Three months is a very short time to create a web application (especially if you also work full-time) so I knew that I needed to pick only the most essential elements for this first minimum viable product.</p><h3>Key Results</h3><p>Each objective requires key results that will explain what kinds of actions must be performed to consider this objective fulfilled. Key results created for these objectives:</p><ul><li>Read 2 books, watch 2 videos about OKRs, and finish Vuejs course</li><li>At the end of Q3 2019, first version of the site is running</li><li>100 people are waiting for that application</li></ul><p>As you can see, all of these are measurable (for the second one I used a percentage scale of completion) and cover the full spectrum of the project — gathering domain and technical knowledge, software development, and marketing.</p><h3>MVP</h3><p>With an ambitious objective like this one, the scope of the project needed to be limited to essential elements. And please don’t think this is a bad thing. Thanks to that, FocusOKR is a simple and user-friendly tool that allows you to plan your objectives, note key results for them, and plan out what to do week by week. To keep themselves accountable, users can share their OKRs and receive weekly reminders about the importance of task planning. Noise is limited to a minimum. If you are curious, you can check out my OKRs on <a href="https://app.focusokr.com/okrs/ff9XQVvBrAPnhsfs5K8vkKMOWvK2/y2019q3">FocusOKR</a>. Forging the idea into a product ready for validation in just three months was a great feeling. And since I use FocusOKR myself, I know this service works.</p><h3>Perfect match</h3><p>Building a minimum viable product using constraints created by ambitious goals seems easier. I knew that I had to release the application before the end of the quarter to fulfill my objective, which helps me to remove unnecessary ideas from a project. Of course, you can use another type of constraint, like a budgetary one or public declaration instead of OKRs. Everything that helps you boost development speed and allows you to release products faster is great. I recommend OKRs because they are tested in the field by giants and you can use them for personal needs. If you are interested, <a href="https://focusokr.com/">FocusOKR</a> is ready to try for free. It works for me, maybe you will also find joy in achieving deep focus and squashing quarterly objectives.</p><h3>I’m here to help</h3><p>I’ve created this blog to share my experiences and teach others about the best methods for quicker product evaluation. I plan to create a new post every month or two. I know that this is a long time in the modern era of information overflow. You will forget about this blog until this time. So, I encourage you to follow this publication, so you know when a new article is posted.</p><h3>Join the Corps</h3><p>On this blog, I want to present other people’s view on MVP and quick product/idea evaluation as well. If you have successfully created and published MVP, have a software that allows creating products quicker, or you just want to share your thoughts on the concept, please contact me. I’d be happy to host a guest article or an interview.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca6cf3a7e85e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mvp-blog/how-personal-okrs-helped-me-to-create-mvp-in-three-months-and-what-okrs-mean-ca6cf3a7e85e">How personal OKRs helped me to create MVP in three months . . . and what OKRs mean</a> was originally published in <a href="https://medium.com/mvp-blog">MVP Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Simple Golang Serverless Recommendation System on ZEIT Now with FaunaDB]]></title>
            <link>https://medium.com/beautiful-code-smart-design-by-10clouds/building-a-simple-golang-serverless-recommendation-system-on-zeit-now-with-faunadb-9cb465534043?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb465534043</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[zeit-now]]></category>
            <category><![CDATA[faunadb]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Tue, 30 Jul 2019 13:31:17 GMT</pubDate>
            <atom:updated>2019-07-30T17:44:46.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11DoUz1iZt4Fs6R_5SB_NA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@artunchained?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Manuel Geissinger </a>from <a href="https://www.pexels.com/photo/interior-of-office-building-325229/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p><strong>In 10Clouds, we always try to check new opportunities. We’ve recently successfully expanded our mobile offer with Flutter development and full service with Firebase as a backend, but I decided to try a different serverless solution.</strong></p><p>In this article, I’ll describe a process of creation of a recommendation system with the use of <a href="https://golang.org/">The Go Programming Language</a> and <a href="https://fauna.com/">FaunaDB</a> on <a href="https://zeit.co/">ZEIT Now Serverless Platform</a>. This language and two tools were new to me, so I’ll also put my thoughts about using them.</p><h3>Project Concept and MVP</h3><p>The initial goal of this project was to create a small SaaS that will gather user likes/dislikes and gave items recommendation based on the choices of others. Then I started to strip that idea to make proper MVP out of it:</p><ul><li>First of all, I decided to<strong> only store users and items identifiers</strong>. This will make this project data agnostic, and after all, additional data isn’t required for a basic recommendation algorithm.</li><li>The logic of algorithm was not a part of this exercise, so from the beginning, I assumed that I’d use one of many open source solutions.</li><li>To make things easier, I also resigned from batch likes/dislikes updates.</li><li>I decided that different clients will be distinguished with request Authorization header. I didn’t add any validation logic, but you can easily do this to make sure that only data from clients with correct tokens are stored to the database.</li></ul><p>After this, I had <strong>a concept of SaaS MVP </strong>with five endpoints: add/remove like, add/remove dislike and get a recommendation for given user and was ready to pick a technology.</p><h3>Programming Language</h3><p>I decided to get familiar (because mastering is a very long process) with a new language. Since I’m in static typing team (Swift, Dart, duh!) I picked Go. It looked like a perfect fit for this small project — easy to learn and to write. Additionally, it reminded me of my university time, and my first applications were written in C++. Soon after, my assumptions were confirmed. It is indeed<em> an </em><strong><em>“easy to learn but hard to master”</em></strong> language. Go syntax is limited and therefore, can be acquainted very quickly. Lack of classes, simple package management, and build in code formatter are other advantages. But with all of this Go is also not as failproof like other modern programming languages.</p><p>It is the language created for efficiency, performance, and multiprocessing. This is why passing pointers to values is a common practice. Undeniably quicker in run-time (using the pointer to value is way faster than making a copy of the original value) is also side-effects vulnerable. With language selected, the next step was to pick where to deploy the code written in Go.</p><h3>Serverless Platform</h3><p>In the <a href="http://10clouds.com/services-mobile"><strong>mobile team</strong></a>, we already have experience in Firebase Functions, so I decided to try something different.</p><p>Digression: I’m not sure Golang is supported on Firebase Functions because on page <a href="https://firebase.google.com/docs/functions">Cloud Functions for Firebase</a> there is a fragment „Functions can be written in JavaScript or TypeScript”. From the other side, Google Cloud Functions, which Firebase is using supports JavaScript, TypeScript, Python, and Go. End of Digression.</p><p>I also considered Amazon Lambda, but usually, I don’t want to take a sledgehammer to crack a nut. So I picked Now from <a href="https://zeit.co/">ZEIT</a>. Serverless computing means that the developer can focus on writing logic code and scaling and managing of resources are handled by a third party (cloud provider). It is usually a cheaper solution than a dedicated machine because we pay only for truly used resources. But it generates another class of problems. The one I faced is a database that can work cooperatively with serverless code.</p><h3>Database</h3><p>I had a very hard time picking a serverless database which is not Firestore from Firebase. Reading through some articles, I learned about <a href="https://fauna.com/faunadb">FaunaDB</a> and decided to give it a try. FaunaDB is a NoSQL database that has been created for the serverless application. Fauna company offers FaunaDB Cloud solution that has affordable pricing with free quota big enough to make some experiments. Additional advantages are Go driver and indexes that we can use for data query. <strong>If you’re looking for different solutions</strong>, take a look at MongoDB, Google Cloud Firestore, DynamoDB, or Amazon Aurora.</p><h3>Implementation</h3><p>This section will be more technical. We will <strong>download the required tools, setup environment, and then create code for routing</strong>. After that, we will configure the database, and write code for storing data there. In the end, we get data from the database and return recommendations. If you don’t want to follow the creation process with me, just skip to Summary section, where I will write my thoughts about used tools and achieved solution.</p><h3>Tools</h3><p>To start work on Recommendation as a Service experiment will need two additional tools that you probably don’t have on your device. First one is Now app with CLI support to manage your Now project. You can download it from <a href="https://zeit.co/download">official site</a>. The second one is a binary distribution of Go available <a href="https://golang.org/dl/">here</a>. Please remember to follow installation instruction from the download page.</p><p>Accounts on <a href="https://zeit.co/">ZEIT Now</a> and <a href="https://fauna.com/faunadb">FaunaDB</a> site will be also required.</p><h3>Environment</h3><p>Now when we have Now (pun intended) installed, we can create our work environment. Head to your Go path (you can display it from the console using echo $GOPATH), then src and create directory github.com and [your_github_username] in it. Then inside<em> </em>[your_github_username] directory call</p><p>now init go recommendations-go from command line. This will create recommendations-go with example Go application. You will find structure listed on the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*iCtaGCG6Jx9_4uL3MAmrtw.png" /></figure><p>If you go to that directory and call now dev you will be able to run local emulation of this project.</p><p>NOTE: In the example code and project repository [your_github_username]<em> </em>will be replaced with my username kamilpowalowski.</p><h3>Routing</h3><p>It is time to write some Go code. We will create a function that will handle our routing. For example, when user will call a <strong>PUT</strong> on https://domain/api/users/kamil/like/jedi it will be redirected to correct method that will add a dictionary with key user_id and value kamil and key item_id and value jedi to the database. Routing will also validate provided values and HTTP Authorization header.</p><p>First of all, delete date.go file since we don’t need it and create index.go in <em>api</em> directory. Next change line module example-date in go.mod file to module github.com/[your_github_username]/recommendations-go/api.</p><p>For routing will use <strong>mux</strong> package from <a href="https://www.gorillatoolkit.org/">Gorilla, the golang web toolkit</a>. Gorilla is a web framework for writing efficient server-side code, but we will use only a routing package from it.</p><p>To use <strong>Mux</strong> we have to create new new router router := mux.NewRouter() and then add handle functions. For example given above:</p><pre>go<br>router.HandleFunc(&quot;/api/users/{user_id}/like/{item_id}&quot;, users.Like).<br>    HeadersRegexp(&quot;Authorization&quot;, &quot;Basic [a-zA-Z0–9]{1,128}&quot;).<br>    Methods(http.MethodPut)</pre><p>Each HandleFunc contains path (with variables defined in curly braces) and function that will be called if given route will be called. In our case it will be a function Like in package users. We can also validate our HTTP headers (authorization header with basic token which contains only basic letters and numbers with length 1 to 128 characters) here or limit calls to specific methods (only <strong>PUT</strong>).</p><p><strong>Mux</strong> will also offer an option to validate input variables during evaluation. Changing /api/users/{user_id}/like/{item_id} to /api/users/{user_id:[a-zA-Z0–9]{1,64}}/like/{item_id:[a-zA-Z0–9]{1,64}} will add value check to user_id and item_id keys (letters and numbers from 1 to 64 characters).</p><p>With that knowledge we can add endpoints to handle:</p><ul><li>adding and deleting likes: <strong>PUT</strong> and <strong>DELETE</strong> on /api/users/{user_id}/like/{item_id}</li><li>adding and deleting dislikes: <strong>PUT</strong> and <strong>DELETE</strong> on /api/users/{user_id}/dislike/{item_id}</li><li>getting recommendations for given user: <strong>GET</strong> on /api/users/{user_id}/recommendations</li></ul><p>Now Go support will call a Handler(w http.ResponseWriter, r *http.Request) function at the begging. So put your router creation code in that function and at the end call router.ServeHTTP(w, r) to handle given request.</p><p>Completed index.go code with some optimization looks like this:</p><p><a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/index.go">kamilpowalowski/recommendations-go</a></p><h3>Routing revisited</h3><p>There is one thing that we have to change to allow Now to handle our newly added routes. In now.json file find</p><pre>&quot;routes&quot;: [{ &quot;src&quot;: &quot;/&quot;, &quot;dest&quot;: :&quot;www/index.html&quot; }]</pre><p>and add an additional entry to routes array to make it looks like the following:</p><pre>&quot;routes&quot;: [</pre><pre>    { &quot;src&quot;: &quot;/&quot;, &quot;dest&quot;: &quot;www/index.html&quot; },</pre><pre>    { &quot;src&quot;: &quot;/api/(.*)&quot;, &quot;dest&quot;: &quot;api/index.go&quot; }</pre><pre>]</pre><p>With that change we redirected all calls that starts with /api too newly created index.go file. NOTE: you can change name key in the same file to (for example) recommendations-as-a-service.</p><h3>Database</h3><p>After signing in to <a href="https://dashboard.fauna.com/">FaunaDB Cloud dashboard</a>, create a new database using the New Database button. I named my DB recommendations-as-a-service. Next, create a new class and name it entries. Additional fields can stay at recommended settings. After that operation, you should already see one index named all_entries. We will need two additional new indexes.</p><p>1. Pick entries as a source class, name index entries_with_token, and put token in terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3eqfKdKMEkKHp9NsfQqjg.png" /></figure><p>2. Pick entries as a source class, name index entry_with_token_user_item, and put token, user_id and item_id in terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yK4iPsa2QPJmslN5l_lZ-w.png" /></figure><p>After that operations, you should have FaunaDB Cloud Console that looks similar to one presented on the screen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3r_t4DW8fPRUGSDU1Oc1A.png" /></figure><p>There is one thing to do on this dashboard. We have to generate an access key for our server. Go to Console Home (NOTE: don’t use “Keys” button visible on the screen above) and use “Manage Keys”. Create new key by selecting the correct database and Server role. You can provide a name that you like. Write generated key down. We will use it in the next step.</p><h3>Environment variables</h3><p>Now by ZEIT support two ways of handling secrets. For local development build, we can store them in .env file. For production, we have to add them using a command line interface. We will do both with DB key that we get from the previous step.</p><p>First of all, create .env file in the project directory. Then open it in an editor and put the line FAUNADB_SECRET_KEY=[your_fauna_db_secret] into it.</p><p>Then we have to add the same (or different) database key to the production environment. You can do this by calling now secret add faunadb-secret-key-recommendations [your_fauna_db_secret] from the command line.</p><p>We have to register this secret in our application. To do this, once more open now.json file and add additional lines to it:</p><pre>&quot;env&quot;: {</pre><pre>    &quot;FAUNADB_SECRET_KEY&quot;: &quot;@faunadb-secret-key-recommendations&quot;</pre><pre>}</pre><p>If your are here, already change how our project should be compile by changing</p><pre>{ &quot;src&quot;: &quot;api/**/*.go&quot;, &quot;use&quot;: &quot;@now/go&quot; }</pre><p>to</p><pre>{ &quot;src&quot;: &quot;api/index.go&quot;, &quot;use&quot;: &quot;@now/go&quot; }</pre><p>Completed now.json file will look similiar to <a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/now.json">this one</a>.</p><h3>Utils</h3><p>Before we will write our logic we can also prepare some functions that can be reused in other files (like the creation of DB connector, and sending HTTP responses). Create a new directory called utils in api. Inside utils directory place utils.go file and put the code below in it:</p><p><a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/utils/utils.go">kamilpowalowski/recommendations-go</a></p><p>As you can probably already see, I put there functions for sending JSON responses (SendJSON, SendSuccess) and errors (SendInternalServerError, SendNotFound), to extract client token from authorization header (ExtractToken) and create FaundDB connector (DBClient).</p><h3>Create, read, update and delete</h3><p>Ok, now we are ready to write our logic. First of all, we will focus on putting and deleting data from our database. In api create users directory and add three new files there: like.go, dislike.go and entry.go. first two files will contain actions called from index.go file. The third one will give us some abstraction on database operations. We will start with a third one.</p><h3>Entry</h3><p>To make writing objects easier I’ve created a struct Entry with the body below:</p><pre>type Entry struct {</pre><pre>    Token string `fauna:&quot;token&quot;`</pre><pre>    UserID string `fauna:&quot;user_id&quot;`</pre><pre>    ItemID string `fauna:&quot;item_id&quot;`</pre><pre>    Value int `fauna:&quot;value&quot;`</pre><pre>}</pre><p>FaunaDB library supports tags started with <strong>fauna</strong> where we can specify how given field will look like in database (it’s not common to use capitalized keys required for public fields in Go).</p><p>I don’t want to make you sleepy so I put a full code for entry.go , but to give you an idea how it looks like, here we have code that uses DB index we created before to get existing item:</p><pre>client.Query(</pre><pre>    f.Get(</pre><pre>        f.MatchTerm(</pre><pre>            f.Index(“entry_with_token_user_item”),</pre><pre>            f.Arr{entry.Token, entry.UserID, entry.ItemID},</pre><pre>        ),</pre><pre>    ),</pre><pre>)</pre><p>we provided a name of index and values that should be used in given get query.</p><p>Creating objects looks similar:</p><pre>client.Query(</pre><pre>    f.Create(</pre><pre>        f.Class(“entries”),</pre><pre>        f.Obj{“data”: entry},</pre><pre>    ),</pre><pre>)</pre><p>First, we provide the name of a class and data that we want to add to it and then we call query on database client.</p><p>Full code of entry.go is available under <a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/users/entry.go">entry.go</a>.</p><h3>Like and Dislike</h3><p>Equipped with that knowledge we can build our handle methods. Since we extracted most of the database code to the separated files like method will be very simple:</p><pre>// Like — add a new like item to the database</pre><pre>func Like(w http.ResponseWriter, r *http.Request) {</pre><pre>    client := utils.DBClient()</pre><pre>    entry := CreateEntry(r, 1)</pre><pre>    _, err := entry.DBCreateOrUpdate(client)</pre><pre>    if err != nil {</pre><pre>        utils.SendInternalServerError(w, err)</pre><pre>        return</pre><pre>    }</pre><pre>    utils.SendSuccess(w)</pre><pre>}</pre><p>We have to initialize database client and our entry (with value equals 1, for Dislike it will be a -1 value) and create or update it in database. After that, we return success or failure to the user.</p><p>Code for other functions is very similar and you can find it in files linked below.</p><ul><li><a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/users/like.go">kamilpowalowski/recommendations-go</a></li><li><a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/users/dislike.go">kamilpowalowski/recommendations-go</a></li></ul><h3>Recommendations</h3><p>For recommendation, I decided to use a library called <a href="https://github.com/muesli/regommend">regommend: Recommendation engine for Go</a>. To use it I have to:</p><p>1. download all entries stored in the database (I’ll return to this in Recommendations appendix section) for the given client,</p><p>2. load it to Regommend table,</p><p>3. run recommendation engine,</p><p>4. map and return a result to the user.</p><p>All these steps you can find in recommendations.go file that you should also create in users directory.</p><p><a href="https://github.com/kamilpowalowski/recommendations-go/blob/master/api/users/recommendations.go">kamilpowalowski/recommendations-go</a></p><h4>Recommendation appendix</h4><p>Loading all client entries from the database each time /recommendations is called is definitely not an optimal solution. It will work for small projects, but for bigger services it must be changed. Regommend can store all data and offer additional functions that will update the state. But we can’t use it due to the serverless nature of our solution. Since the purpose of my experiment was to check another serverless solution I decided that I won’t be looking for the solution to this problem.</p><h3>Project wrap up</h3><p>That was the last step in project implementation. You can run and test your project using now dev command and test your API using Postman, Paw or any other tool that you prefer. If you are ready, you can deploy it to Now with now command. For your convenience, the whole projects’ code and small Postman collection to test it <strong>are available on GitHub </strong><a href="https://github.com/kamilpowalowski/recommendations-go"><strong>repository</strong></a>.</p><p>In the Summary section, I’ll discuss what I’ve learned and what conclusions do I have after working on this experiment.</p><h3>Summary</h3><p>I hope that after looking at the size of this article, you have an idea that this <em>“small”</em> project is <strong>not as small</strong> as it seems to be. I think the main reason for this is a distributed environment of our serverless architecture. I used two different services (Now and FaunaDB), and both of them were new to me. Both required some cognitive work to understand and make them work together. Combining with Go as a development language makes a project that should take one day a week-long challenge.</p><p>But after all, I’m happy with picked solutions:</p><ul><li><strong>ZEIT Now is very easy to use</strong>. Good documentation, simple CLI and clear design make it accessible even for someone who spend his days writing mobile applications, and his only contact with the backend are usually related to the Firebase Firestore or REST API.</li><li><strong>FaunaDB</strong> despite its NoSQL nature is more intuitive than Firestore at the begging. I liked the comparisons they made to the relational database. There is one additional advantage which was announced just a few days ago — FaunaDB now supports GraphQL <a href="https://fauna.com/blog/the-worlds-best-serverless-database-now-with-native-graphql">FaunaDB now support GraphQL</a>.</li><li><strong>Go</strong> turns out to be a suited solution for writing short serverless functions. Still, I probably spend most of the time figuring things related to Go like: how packages should work, how to use FaunaDB driver or how to deploy and build everything on Now. But I don’t consider this as a problem with Go. It was a learning curve that I have to take.</li></ul><p>Would I recommend tools presented above for you? I couldn’t do that. This decision is only on your shoulders. But I already know that I’ll use Go, Now and FaunaDB for my next side-project.</p><p><em>At </em><a href="http://10clouds.com/"><strong><em>10Clouds</em></strong></a><em>, we develop outstanding apps. Check out our </em><a href="http://10clouds.com/services"><strong><em>services website</em></strong></a><em> to get more details or just </em><a href="http://10clouds.com/contact-us"><strong><em>contact us</em></strong></a><em>. From business consulting, through choosing the right technology, to delivering perfect code, our team will make the best use of its wide skills to make your product successful.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb465534043" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beautiful-code-smart-design-by-10clouds/building-a-simple-golang-serverless-recommendation-system-on-zeit-now-with-faunadb-9cb465534043">Building a Simple Golang Serverless Recommendation System on ZEIT Now with FaunaDB</a> was originally published in <a href="https://medium.com/beautiful-code-smart-design-by-10clouds">10Clouds</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What The Martian teaches us about project planning and development?]]></title>
            <link>https://medium.com/mvp-blog/what-the-martian-teaches-us-about-project-planning-and-development-9196e437b3bf?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9196e437b3bf</guid>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[the-martian]]></category>
            <category><![CDATA[product]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Mon, 24 Jun 2019 16:02:08 GMT</pubDate>
            <atom:updated>2019-06-24T16:02:08.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*Je3DKnxBjBzSUGfDeeK1MQ.png" /><figcaption>Illustration source <a href="https://gallery.manypixels.co/">https://gallery.manypixels.co</a></figcaption></figure><h4>Mark Watney, main character and narrator of Andy Weir’s book <em>The Martian</em> found himself in an awful situation. Stuck on Mars he must use all his skills to survive. His adventures can teach us a bit about work habits and building products.</h4><p>Science-fiction novel <em>The Martian</em> and Ridley Scott’s movie under the same title were great hits. No wonder. Credible plot, a great mix of humor and drama and a main character that we keep our fingers crossed for from the first minutes. This is a story about the human will to survive. But if you carefully read through it, you can find a few similarities with work on physical and software projects. In this article, we will go through them together.</p><p><strong>Have you already read or watched <em>The Martian</em>? If not, I encourage you to do so, and please, don’t read the rest of this article until you do. I don’t want to spoil the fun for you.</strong></p><h4>One thing at the time</h4><p>When Mark woke up alone on the red planet, he immediately jumped into his “work the problem” mode. He decided to fix one problem at a time as they appeared, starting with the critical ones. The first priority was to patch himself and then his focus was on creating a sustainable source of food. After that, he shifted to making contact with the earth and starting preparation for his journey to the rescue point.</p><p>In current times, where society praises multitasking, focusing on one task may be not trendy, but in fact, it is the quickest way to get things done. It doesn’t matter that we are talking about a developer’s day to day job or planning your product (using Minimum Viable Product strategy) — you should always prioritize things and focus on the most important from the start. Extending this example to MVP — core functionality of your app is more important than the settings section or profile edit screen. Always start with the core functionality and if something goes bad (money shortage, etc.) you will have something that brings value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgLlvWDs7o9VHFKoxjuxcg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nsantoianni?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nicholas Santoianni</a> on <a href="https://unsplash.com/search/photos/mars-planet?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Something is better than nothing</h4><p>Watney’s road to rescue isn’t easy or pleasant. Disasters and problems show up one after another. But the brave astrobotanist is able to solve them cleverly and quickly. One thing that he immediately realizes is that in this harsh environment it is better to have something than nothing. He picks small, but achievable goals (like growing something to eat, or finding a way to communicate with Earth) and does everything he can to accomplish them. When there is a success, he improves his project to the next stages.</p><p>This is a method that we should also follow when we are working on a big and complicated system. Iteration is the key. Let me again call my favorite Instagram app example from the previous article <a href="https://medium.com/mvp-blog/start-with-mvp-c51057381136">Start with MVP</a>. The first version of the app supports only twelve filters and the possibility to easily share square photos with the world. No hashtag support, no searching. Start with something simple that gives your users value, then add new functionalities if they are needed. You don’t have to make a smartphone from the beginning. The simple telephone line will be enough to start.</p><h4>Breaking a project down into small pieces</h4><p>Did you notice how Mark Watney breaks his goals into smaller pieces and makes action points from them? To grow potatoes, you need water, soil, lights, and of course plants. Water production requires burning hydrazine… And then everything goes wrong. But this is not part of my story.</p><p>Every goal should be divided into smaller points that can be done in a reasonable time. Speaking with Agile Scrum methodology language — you should break your project into User Stories (goals), and each user story should contain tasks (usually created by designers/developers) that describe what has to be done to make this goal a reality.</p><p>This, and the next points are not directly related to MVP planning because they usually happen when the product is already under development, but they are equally important to make the product come to life. And you, as a product owner should keep them in mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9SQ1JdVMe1pSB-jePs1zg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@grakozy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Greg Rakozy</a> on <a href="https://unsplash.com/search/photos/astronomy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>The team is most important</h4><p>Hermes crew, like classic musketeers, quickly decided that “one for all and all for one” and significantly extended their own flight to rescue Mark. The bravery of Commander Lewis and his fellow astronauts pays off. Mark was reunited with his colleagues and safely returned to Earth.</p><p>This one is crucial. Your team is the best asset that you have. Make them happy, make them feel important, care about them and they will pay you back in commitment to your project. On the other hand, if they feel that you don’t respect them, they probably will do their job (because after all software developers, UX/UI designers, and all those in the IT industry are professionals) but without a deep understanding of the problem, and without sharing their knowledge and expertise. And they probably will stop working with you as soon as possible.</p><h4>Don’t lose hope</h4><p>In the end, I left one last crucial fact out about Mark Watney — he never lost his humor or his will to live. This element of the book/movie may be the reason for the great success of both. If something bad happened to our hero, he gritted his teeth and found a way out his misery.</p><p>This example you can take and apply to your whole life, not only to your product or work. The world seems like a brighter and better place when we are looking through rose-colored glasses. But don’t let this mislead you. To achieve your goals, you have to work hard and believe that your hard work will pay off in the future.</p><h4>I’m here to help</h4><p>I’ve created this blog to share my experiences and teach others about the best methods for quicker product evaluation. I plan to create a new post every month or two. I know that this is a long time in the modern era of information overflow. You will forget about this blog until this time. So, I encourage you to follow this publication, so you know when a new article is posted.</p><h4>Join the Corps</h4><p>On this blog, I want to present other people’s view on MVP and quick product/idea evaluation as well. If you have successfully created and published MVP, have a software that allows creating products quicker, or you just want to share your thoughts on the concept, please contact me. I’d be happy to host a guest article or an interview.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9196e437b3bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mvp-blog/what-the-martian-teaches-us-about-project-planning-and-development-9196e437b3bf">What The Martian teaches us about project planning and development?</a> was originally published in <a href="https://medium.com/mvp-blog">MVP Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Flutter Good for Your Business? 10 Pros & 5 Cons To Help You Decide]]></title>
            <link>https://medium.com/beautiful-code-smart-design-by-10clouds/is-flutter-good-for-your-business-10-pros-5-cons-to-help-you-decide-1f5927bcc562?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f5927bcc562</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 12:45:21 GMT</pubDate>
            <atom:updated>2019-07-05T11:36:15.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VC6ucUbD4iJPiY2A8FSYHA.jpeg" /></figure><h4><strong>From faster development and simultaneous app updates, thus saving a lot of time, to easy maintenance, Flutter has a lot of advantages, and we often recommend it to our clients. However, it won’t suit every project. Read the article and find out, if it’s a good fit for yours.</strong></h4><p>I know that if you follow <a href="https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headlines"><strong>Betteridge’s law</strong></a>, the answer to the question placed in a headline should be <em>„no”,</em> but in the world of mobile development, nothing is that simple. It depends on <strong>what you want to achieve</strong> and what are your project’s business goals. Flutter is a really good framework for some things, but as all cross-platform technologies it also has limitations.</p><p>You shouldn’t consider it as a magic bullet for all your troubles. In this article, I’ll list the pros and cons of using Flutter, that you, as a business owner, should consider before starting a project in Flutter. We are <strong>using a similar list</strong> at 10Clouds to<strong> recommend our potential clients technology </strong>that they should pick for their next product.</p><p><em>Disclaimer: This article was written just after the publication of Flutter 1.5.4 and my experience is based on that and previous stable versions of Flutter.</em></p><h3>Flutter for Your Project: Pros</h3><h3>1. Faster Development</h3><p>Flutter is a cross-platform solution, so one codebase can be run on both Android and iOS. This<strong> saves a lot of development time</strong>. Of course, it will not be cut in half, but it is safe to bet that writing one codebase for both platforms will take “ <em>at least one quarter less”</em> than writing separate projects for both platforms. I and other of our developers also think that <a href="https://10clouds.com/blog/flutter-for-ios-developers/"><strong>writing Flutter apps</strong></a> is <strong>easier than writing native applications</strong> — we wrote an <a href="https://10clouds.com/blog/flutter-for-ios-developers/"><strong>article about it</strong></a> some time ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zY_jeXulEqitsXa6.jpg" /></figure><h3>2. Simultaneous App Updates on Android and iOS</h3><p>The same codebase for both platforms allows you to <strong>release app updates simultaneously.</strong> This one is hard to achieve when there are separated projects for both platforms. Different availability of developers, or longer implementation on one platform makes synchronizing difficult. The problem grows when an application update also requires changes in backend infrastructure.</p><p>Flutter and other cross-platform tools<strong> remove this problem</strong> because we make applications for both platforms at the same time. Of course, it is worth remembering that <strong>iOS application must pass Apple review</strong> each time it is updated.</p><h3>3. Easier to Maintain and Develop New Features</h3><p>When your apps are ready and published, you can focus on expanding the user base. This often means moving the app to the maintenance mode, in which <strong>fixing bugs is a top priority,</strong> and adding new features goes on a second track.</p><p>On this step, startups often think about creating their own team. With Flutter, it can be easier because you have to <strong>hire one developer</strong> instead of one for iOS and the other for Android.</p><h3>4. Future-proof: Instant Fuchsia Support</h3><p>Google is working on a <a href="https://10clouds.com/blog/google-fuchsia-android-successor/"><strong>new operating system called Fuchsia</strong></a>. There is vague info right now about what this system can be, but there are speculations that Fuchsia will <strong>eventually replace Android</strong>. Flutter is a native framework for Fuchsia apps. If you write an application in Flutter, you will be ready to release it on Fuchsia from day zero. This can give your app an <strong>early adopter boost</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K6HnoCAM7zy-qVH_.jpg" /></figure><h3>5. A Perfect Choice for Advanced UI</h3><p>Flutter renders all parts of the interface using internal graphics engine called Skia — the same that is used in Google Chrome, Mozilla Firefox, and Sublime Text 3. This fast and well-optimized piece of software allows Flutter to behave differently than most of the other mobile development frameworks.</p><p>Using Flutter is closer to writing a game. From the operating system, you get a blank canvas, and all UI elements are drawn by application. Flutter team put tremendous work to recreate<strong> Material UI components and Apple Design System elements internally</strong>. Of course, you can also make your own components, and this is a point where Flutter will shine. Creating<strong> good looking custom UI </strong>elements is very easy, and you will have them working on both Android and iOS. This makes a Flutter a perfect choice for apps with advanced, custom UI designs.</p><h3>6. Easy Adapting to Different Screen Dimensions</h3><p>Flutter layout system and declarative nature of framework itself makes <strong>writing and fitting views to different screen dimensions</strong> easier than in iOS SDK. Making animations is also smoother than in native iOS and Android. Moreover, looking at the roadmap of Flutter, we shouldn’t wait long for support for desktop and web applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WUPTNZJqqZw3iJPY.jpg" /></figure><h3>7. One UI Design</h3><p>If you want an application that looks native on iOS and Android, we probably won’t recommend you Flutter. This will be explained in the cons section, but now let’s get back to the pros.</p><p>With one codebase for both platforms, you will <strong>only need one UI design</strong> prepared by designers. The cross-platform application usually follows Material Design principles, with only small adjustments for different platforms (which Flutter usually handles by itself) or makes the whole UI look custom, with elements based on <strong>the best solutions taken from iOS and Android.</strong></p><h3>8. Technology Tested by Giants</h3><p>Flutter is still relatively new (the first stable version was published on December 4th, 2018) but it is already tested in the field by such companies as<strong> Google</strong> (Ads and Greentea apps, an interface of NEST Hub device), and <strong>Alibaba</strong> (Xianyu app). Google is a maintainer of Flutter, so this may be not authoritative, but Alibaba with over 50 million users or <a href="https://reflectly.app/">Reflectly</a> mentioned in “New Apps We Love” category by Apple gives you the idea that you can trust in Flutter as a technology for your next product.</p><p>With one codebase for both platforms, you will <strong>only need one UI design</strong> prepared by designers. The cross-platform application usually follows Material Design principles, with only small adjustments for different platforms (which Flutter usually handles by itself) or makes the whole UI look custom, with elements based on <strong>the best solutions taken from iOS and Android.</strong></p><h3>9. Access to Device Features</h3><p>One of the main reasons why people are scared of cross-platform solutions is a problem with access to native features. After all, that makes your app outstand simple webpage is the usage of camera, GPS, or haptic feedback. It could be easier, but of course, you<strong> can use these features in Flutter as well.</strong></p><p>You have to prepare iOS or/and Android code (in Objective-C/Swift or/and Java/Kotlin) and send data to Dart (which is the primary language used in Flutter) by a special mechanism called platform channels. Flutter core team and community <strong>prepared channels for most native functionalities</strong> of your phones, so you don’t have to write them on your own. If you want to use something more unpopular (like a native library), channels are waiting for you.</p><p>» <strong>Check Out </strong><a href="https://10clouds.com/blog/mobile-web-code-sharing/"><strong>How We Saved a Lot of Time on Developing Website and App for KeyForge</strong></a></p><h3>10. Compiled Code: Stable Performance</h3><p>Unlike ReactNative, NativeScript or Ionic Flutter code is compiled when the application is built for distribution. It won’t require to use the JavaScript engine to communicate with native components neither web view to display its content. As mentioned earlier, the Flutter code is drawn on system canvas. This gives the application<strong> an additional performance boost</strong>. In fact, the framework team is proud to provide <strong>stable 60/120 FPS performance on most of the devices</strong>.</p><h3>Cons</h3><h3>1. Platform Specific Look and Feel</h3><p>As already mentioned in the pros section, if you want to make your app follow Apple Design System on iPhones and Material Design on Android devices, it will be better to prepare two separate applications.</p><p>Of course, in Flutter, you can check which platform the app is running and render different components on the screen. We use this when we want to display Dialogs/Alerts that look like native ones of the system. However, <strong>making a whole application that way will burn more time</strong> than writing two separate applications. After all, Flutter is a cross-platform framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S-JYq4a8yGaUQ4jp.jpg" /></figure><h3>2. Young Technology</h3><p>With every new technology comes a risk that it will evolve in the way we don’t want to follow, or maybe (God forbid!) it will be dimmed by the maintainer. The fact that Flutter is sponsored and developed in Google, and they plan to use it in their new OS make this scenario unlikely. Nevertheless, it is good to know about this.</p><p>The second thing is, there are fewer Flutter developers on the market than native iOS and Android ones. Personally though, I would not demonize this point, because experience from 10Clouds shows us that <strong>mobile developers are willing to learn Flutter</strong>, and learning it turns out to be a quite enjoyable experience.</p><h3>3. Platform Limitations</h3><p>Flutters own UI rendering nature adds some limitations. For example, if some features are integrated into the UI on native platforms, there must be recreated by the Flutter team. There are two examples that we already identified:</p><ul><li><strong>video player</strong> — there are implementations of a video player in Flutter but they look different than the system one (especially on iOS).</li><li><strong>iOS profile data completion</strong> — do you remember this email or password prompt above keyboard? This feature is not supported in Flutter (yet). To overcome this problem you have to write native view for a text field in iOS and embed it in Flutter (yes, this is possible and we tested it on exactly that case). NOTE: SMS code suggestion works in Flutter without any code changes.</li></ul><p>Solving these problems is possible, but it is also time-consuming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iVziRqSlEkyrA5XZ.jpg" /></figure><h3>4. Handling of New System Features</h3><p>All new features of iOS and Android will be introduced in Flutter later than in their native SDK-s. You will have to wait until your application can <a href="https://10clouds.com/blog/foldable-smartphones-5-reasons-why-the-wont-be-a-hit/"><strong>support foldable screens</strong></a> or dark system mode. However, the truth is that in native development we usually can’t add new system features from release day because we have to keep system compatibility.</p><h3>5. Native SDK Knowledge</h3><p>In every Flutter project, you will need people experienced with native development — from simple things like building an Android version, through more complicated, like flavors and making builds on iOS, to writing native views for both platforms. In 10Clouds, we are in a comfortable situation — <strong>we can always ask native developers for help</strong>. But if you consider creating your own team, you have to keep in mind that Flutter developer must be open minded for both platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ifIjbjNjGqq2ZQRs.jpg" /></figure><h3>So, is Flutter Good For Your Business?</h3><p>As you can see going full steam ahead with Flutter is not a decision that you can make in no time. There are <strong>more pros than cons</strong>, that’s true, but if you will push on implementing many platform-specific features or different UIs for both platforms you will lose all the advantages of that framework. It will also complicate your code and may result with problems in future development. On the other hand,<strong> you will get your app faster</strong>, and faster development saves you money and allows to validate your MVP idea quicker.</p><p><em>10Clouds is a </em><a href="https://10clouds.com/services-mobile/"><strong><em>mobile application development team from Poland</em></strong></a><em>. We develop outstanding mobile apps. Check out our </em><a href="https://10clouds.com/services-mobile/"><strong><em>mobile services website</em></strong></a><em> to get more details or just </em><a href="https://10clouds.com/contact-us/"><strong><em>contact us</em></strong></a><strong><em>.</em></strong><em> We can build an excellent product for your company.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5927bcc562" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beautiful-code-smart-design-by-10clouds/is-flutter-good-for-your-business-10-pros-5-cons-to-help-you-decide-1f5927bcc562">Is Flutter Good for Your Business? 10 Pros &amp; 5 Cons To Help You Decide</a> was originally published in <a href="https://medium.com/beautiful-code-smart-design-by-10clouds">10Clouds</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Reasons Why You Should Try Flutter as an iOS Developer]]></title>
            <link>https://medium.com/beautiful-code-smart-design-by-10clouds/6-reasons-why-you-should-try-flutter-as-an-ios-developer-cc7c898036e1?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc7c898036e1</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Fri, 31 May 2019 11:21:01 GMT</pubDate>
            <atom:updated>2019-05-31T11:21:01.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*py4XhnZIblvxlmsFNzvHWg.png" /></figure><p><strong>Flutter may be the best thing that happened to the mobile development scene in the recent past. It allows me to work faster, and more conveniently, and believe me, it might do the same for you.</strong></p><p>So, are you an iOS Developer like me? Yes? Have you befriended a new kid on the block called Flutter? The 1.0 release of this Google-made framework was up in December 2018, but it’s moving forward really quickly.</p><p>If you haven’t tried it yet, I encourage you to do so. It’s a fantastic framework — it <strong>challenges both existing cross-platform frameworks</strong>, as well as native platforms, to become better. To make your decision easier, I gathered a list of features, that in my opinion, put Flutter above other tools used for iOS development.</p><h3>1. Material Design: Making Prototypes Becomes Easy</h3><p>I was born to become an iOS developer. Apple products and design made me a little biased towards Apple, and I prefer their UI design over Material Design.</p><p>However, I must admit that making good looking apps and prototypes is much easier with Material Design. At least for non-designers like me. This drives me to the first advantage of Flutter — it has <strong>dedicated widgets for most of the Material elements</strong>. A widget is a basic component used to build UI in Flutter. You can think about widgets, like about UIViews in iOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*av69sAuMaiKrtCl4.jpg" /><figcaption>10Clouds’ designers working on one of the projects</figcaption></figure><p>Take a look at a gallery of<a href="https://flutter.dev/docs/development/ui/widgets/material"><strong> widgets provided by the Flutter team</strong></a>. With a little help from <a href="https://material.io/"><strong>official documentation</strong></a>, you can easily create prototypes that are easy to use and follow the best industry practices. Of course, you are not tight to Material design. Some widgets from a package called Cupertino recreate iOS components.</p><h3>2. Android Studio: A Great Tool for… iOS Developer</h3><p>This may be a bold statement, but I think that AppCode is a way better IDE than Xcode. It comes from <a href="https://www.jetbrains.com/">JetBrains</a>, a company focused specifically on making developers lives easier. If you are familiar with one of their IDE (like WebStorm or AppCode) you will know how to use the rest of them — <strong>you can switch from AppCode to Android Studio in no time</strong> which is a real time saver when you work on iOS and Flutter application during the same day.</p><p>Android Studio works great with <strong>Dart and Flutter</strong>. Code completion is quick, and syntax highlighting always work. You have great shortcuts for wrapping and unwrapping widgets, renaming and method extracting. There is also one handy keyboard shortcut (Cmd+D) which duplicates a line of code. What a great piece of software! If you really don’t like Android Studio, there is a solution for you as well. You can use a designated plugin for Visual Studio Code.</p><h3>3. Hot Reloading: See the Changes Instantly</h3><p>You make adjustments in application UI, and compile Swift application. It takes a long time, so you start working on next thing (like <a href="https://xkcd.com/303/"><strong>this one from XKCD</strong></a>). Then the application runs, and you forgot what you actually changed. Sounds familiar? When the iOS project grows, compilation can take a lot of time. It is a serious issue. We have to wait for our application, we lost a lot of time, and we can be easily distracted during that time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G5iM11TE_7IFIdSl.jpg" /><figcaption>Waiting, and waiting…<br>Photo by <a href="https://unsplash.com/photos/kRNZiGKtz48?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">NordWood Themes</a> on <a href="https://unsplash.com/search/photos/waiting?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Dart, language that we use to write Flutter applications, has a solution for this. It can <strong>compile in two modes.</strong> Ahead-of-time (AOT) compilation is used when you build an app for production. It takes more time but compiles binary works faster. Just-in-time (JIT) is used when you are developing the application. JIT compilation allows you to see your changes instantly which speeds up development cycles. This feature is often called hot reloading. No more, „app is compiling” excuses in Flutter!</p><h3>4. Dart: As Easy as It Gets</h3><p>When the first versions of Swift appeared I was a bit skeptical. Objective-C seemed to be a very good language and developing apps in it was a pleasure. But then I fall in love with Swift. Code that takes 100 lines in both Objective-C files can be written in Swift in 50 lines (or less) in one file! And all that functional programming functions. Oh boy, what a blast.</p><blockquote><em>When I started learning Flutter, the first thing I noticed was Dart’s simplicity</em></blockquote><p>But then Swift started to change, and I have a feeling that these changes are not taking us in the right direction. I’m expecting a modernization of UIKit not KeyPath and dynamicCallable in Foundation. I think they make code less readable. When I started learning Flutter, the first thing I noticed was <strong>Dart’s simplicity. </strong>No classes in other classes. Simple numeric enums, async/await keywords, easy access control, and a great code formatting. We discussed it in our <a href="https://10clouds.com/services-mobile/"><strong>10Clouds mobile team</strong></a>, and I said that even a toddler that knows any object-oriented programming language could easily read code written in Dart.</p><h3>5. Explicit File Import: Bye, Bye, Traumatic Naming Experiences</h3><p>I’m bad at naming. I named my last macOS application Countdowns. It is a pretty popular word, so obviously I can’t monitor the publications that are mentioning it. In fact, it took me a week to find out that<a href="https://lifehacker.com/how-to-count-the-time-until-a-date-from-your-macs-menu-1831163382"> <strong>it was featured on Lifehacker.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*k8-HbOm6nY-ZxsY2.jpg" /></figure><p>Swift forces me to give every class and struct in the project different name. Finding a valid name for n-th kind of button that is used in the code may be a traumatic experience. The reason for this is simple — all not “private” and “fileprivate” objects are visible in all files of the Swift module. A solution used in Dart, where you have to explicitly declare what files are you importing allows me to<strong> give classes shorted, and still fully understandable names</strong>. This also has some disadvantages — you may land with long import list on top of your source code file. But you can fight with that by making listing files that export your interface.</p><h3>6. No Threads, Fewer Problems</h3><p>Threads or Dispatch Queues are a great invention to separate our UI code from operations that can be executed in the background. Except they are not. When using threads, we can encounter many problems. Especially when we work with properties that are used between threads. This is like in this old programmers joke: `Some people, when confronted with a problem, think “I know, I’ll use multithreading”. “Nothhw tpe yawrve o oblems”`.</p><p>Dart took a different approach that<strong> works great in JavaScript</strong> — it’s single threaded. Of course, it doesn’t mean that we can’t do an asynchronous task. We can, but with a help of async/await, or by Futures and Streams. For more advanced users there is also thread-like support called Isolate. These internal workers don’t share a memory, so we don’t have to worry about race condition.</p><h3>A Serious React Native Competitor</h3><p>I hope those arguments made your mind up a bit, and you will at least check Flutter’s docs. At <a href="http://www.10clouds.com/">10Clouds</a> we believe that Flutter can be a serious competitor to React Native. It proved to be<strong> less error-prone</strong> and platform agnostic than RN<strong> in our projects.</strong> With <strong>Flutter Web</strong> on the horizon, we will be able to <strong>share code with the web</strong> as well, which is one of the biggest selling points for RN right now.</p><p>Additionally, Flutter is <strong>blazing fast.</strong> It can be a remedy for React Native UI quirks, and from my experience, it’s proven to be production ready in multiple use cases. And last but not least, from a developer perspective, it’s just fun to work with.</p><p><em>At </em><a href="http://www.10clouds.com/"><em>10Clouds</em></a><em>, we develop outstanding mobile apps. Check out our </em><a href="https://10clouds.com/services-mobile/"><strong><em>mobile services website</em></strong></a><em> to get more details or just </em><a href="https://10clouds.com/contact-us/"><em>contact us</em></a><em>. From business consulting, through choosing the right technology, to delivering perfect code, our team will make the best use of its wide skills to make your product successful.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc7c898036e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beautiful-code-smart-design-by-10clouds/6-reasons-why-you-should-try-flutter-as-an-ios-developer-cc7c898036e1">6 Reasons Why You Should Try Flutter as an iOS Developer</a> was originally published in <a href="https://medium.com/beautiful-code-smart-design-by-10clouds">10Clouds</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start with MVP]]></title>
            <link>https://medium.com/mvp-blog/start-with-mvp-c51057381136?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c51057381136</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[mvp]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Wed, 29 May 2019 19:50:37 GMT</pubDate>
            <atom:updated>2019-05-30T08:19:22.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BINLrUDQw6GeqpcTbg0Dcg.png" /><figcaption>Illustration source <a href="https://undraw.co/">unDraw</a></figcaption></figure><h4>What is the Minimum Viable Product strategy and why you should use it for your next project?</h4><p>You found this blog, so you probably know that the acronym MVP means Minimum Viable Product (or you saw it in subtitle) and that it is not related to basketball or any other sport. But don’t worry if you didn’t. Everything will be clearer if you continue reading.</p><h4>Bright future…</h4><p>By MVP, we mean a product that has just enough core functionalities to make it releasable to customers. Usually, these early adopters provide feedback (actively or passively) for further product development.</p><p>The idea behind MVP is very simple. Small (or smaller) products mean faster development. Faster development means a quicker idea evaluation. Quicker idea evaluation means cost savings and the possibility of changing directions. For product owners, this is an ideal situation:</p><ul><li>If the product became a success, you would get income from users or advantage in investor talks earlier.</li><li>If nobody notices your product, you will know that early on and will be able to make direction changes faster.</li></ul><h4>…and sad reality</h4><p>The real problem is that many product owners don’t understand the idea of MVP. They see the shiny Instagram application or Twitter webpage, and they want a product on that level on the complexity from the beginning. They forget that both products get their current form after many years of iterations and improvements. Did Twitter provide an option to record video from its inception? No, in fact, there was no option to add images neither. What you had was the option to log in and send a short text update. Did Instagram offer the ability to post Stories from day zero? No, all you had then was the main feed of photos and 12 filters (sorry, no hashtag support or searching).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlSIQ2M-xVTtNNUt1fSF_Q.png" /><figcaption>Photo by <a href="https://unsplash.com/photos/5fNmWej4tAA?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Helloquence</a> on <a href="https://unsplash.com/search/photos/project?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Change starts with you</h4><p>It doesn’t matter that you are a product owner, designer or developer. It also doesn’t matter that you are a freelancer, software house or in-house employee. Quick product evaluation should be a priority for everyone. If one part of that development cycle doesn’t understand this idea, others should help them. Software developers, I’m looking at you and your attitude to do everything the client wants. Current agile methods of product development aim to speed up feedback gain during development. And what is a better way of gaining feedback than handing the application to real users?</p><h4>Where to start?</h4><p>Do you have a product idea? Write down the main selling point of your application. Then list features that you will need to make this idea work (and only them). Think about every feature you are adding. Maybe for the first version, you don’t need an automatic payment system, and withdrawals can be made by hand? Do you really need profile edition features? Consider using social media profile (for example, Twitter or Facebook) in your application. And going further. Are login and registration needed at all? You may lose a bunch of users that want to use your application but don’t want to sign up and create an account. Will your application/website display charts with users monthly income data? What do you want to display at the beginning when you don’t have users or data at all?<br>I hope you get the idea. Every feature you consider in your product should be evaluated at the beginning. It will save you some money during design work and a lot of money during development. There is a truth in this old programmer joke:</p><blockquote>The best code is no code at all</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMD9hDJJX-MG8HZU9CVxqA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/_4815u_ACqQ?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">José Alejandro Cuffia</a> on <a href="https://unsplash.com/search/photos/planning?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Where does it end?</h4><p>Your journey with MVP will never end. Let’s say you have already published the first, minimal version of your application. Should you now just add back all those things that I asked you to remove at the begging? No, of course not! Now the real fun begins. Take a look at what your users are using the most. Add some analytics events and check where most of the new users drop off. Gather data, improve your application, pick new features, and start a new iteration. And please remember: in software development like in minimalism:</p><blockquote>Less is more</blockquote><h4>I’m here to help</h4><p>I’ve created this blog to share my experiences and teach others about the best methods for quicker product evaluation. I plan to create a new post every month or two. I know that this is a long time in the modern era of information overflow. You will forget about this blog until this time. So, I encourage you to follow this publication, so you know when a new article is posted.</p><h4>Join the Corps</h4><p>On this blog, I want to present other people’s view on MVP and quick product/idea evaluation as well. If you have successfully created and published MVP, have a software that allows creating products quicker, or you just want to share your thoughts on the concept, please contact me. I’d be happy to host a guest article or an interview.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c51057381136" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mvp-blog/start-with-mvp-c51057381136">Start with MVP</a> was originally published in <a href="https://medium.com/mvp-blog">MVP Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Savings — why I make applications]]></title>
            <link>https://medium.com/@kamil.powalowski/savings-why-i-make-applications-15a3ec29e407?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/15a3ec29e407</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[makers]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Sat, 24 Nov 2018 15:11:17 GMT</pubDate>
            <atom:updated>2018-11-24T19:04:40.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>Savings, or why I make applications?</h3><p>Today, I’ve finished <a href="https://tomakeornottomake.com/savings">Savings</a> — small SaaS that allows you to track your savings goal. I want to share a story why I decided to create this application. But this will be something more, this blog post will present what drives me as a maker. I’ll share reasons why I’m preferring to build something instead of play Diablo III on Nintendo Switch.</p><h3>What is Savings?</h3><p>As I mentioned before, Savings is an app that allows you to track your savings/earning goal. For example, you decided to save 36000 dollars in the 2018 year. It is easy to compute that you must save $3k each month. If you manage to save that amount each month, your saving goal will be completed on 100 percent. But what will be your goal completion when you in January save $2326,97, in February $2100 and in March $1900? Furthermore, what will be your final completion if this trend will continue? Savings help you collect this data and answer that questions.<br>The application is divided into two parts. Left panel will allow configuring your goal. Right one collects an amount of money saved each month and presents completion of your goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvB8VGwB6wz_tXQAbXIWqg.png" /></figure><h3>How was Savings build and how it works?</h3><p>I wrote Savings in Angular 7 using Firebase as a database and hosting backend. I wanted to that application be easy and quick to use. I decided to not use any authentication method. When you visit <a href="https://tomakeornottomake.com/savings">https://tomakeornottomake.com/savings</a> you will be redirected to a unique URL. This URL will give you access to your data. Save it and don’t share with anybody!<br>When you visit your unique page URL, data are downloaded from Cloud Firestore. Firestore is a NoSQL database created by Firebase team. After hitting Save Changed buttons data are sent back to the database.</p><h3>Why I created Savings?</h3><p>Did you remember an example of the $36k saving goal? This example is real. I decided to save 36k PLN (Polish złoty) during 2018. To track that goal I created Number spreadsheet, where I wrote my results and formulas for predictions. This is how it looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUOJPyn1U0xtXFiqVfueAg.png" /></figure><p>When Product Hunt announces <a href="https://blog.producthunt.com/youre-invited-to-the-product-hunt-makers-festival-a3ac1ff8250f">Makers Festival</a> — a hackathon event for makers — I decided to transform Savings into a web application. This application can be useful not only for me but also for other. I’m also coming up with another idea of how to use Savings. You can track your earnings. I’m following Andrey Azimov who is doing a Hardcore Year. He wants to earn $1k each month (recurring) from shipping products. You can read more about this on <a href="https://www.andreyazimov.com/">https://www.andreyazimov.com</a>. His earnings can be tracked in Savings as well.<br>BTW: My savings goal taken from Savings look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E51WouE2MeAu_5cJYVFJUQ.png" /></figure><h3>Why I make things?</h3><p>I promise you that I’ll explain why I make things and what drives me as a maker. The first part of an answer — I want to make my life easier. This is why I created <a href="https://itunes.apple.com/app/countdowns/id1415311616">Countdowns</a>. I created it because I want to use it and couldn’t find one. Then, after a few months, I decided to make it public. And this is the second part of an answer — I want to make other life easier.<br>A situation with Savings is quite similar. This spreadsheet helps me, and I thought that it may help others as well.</p><h3>How to reach you?</h3><p>If you want to know more about what I’m doing — please follow me on Twitter: <a href="https://twitter.com/kamilpowalowski">https://twitter.com/kamilpowalowski</a>. Link to all my current project are available on <a href="https://tomakeornottomake.com/">https://tomakeornottomake.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15a3ec29e407" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telegram bot + Firebase Cloud Functions = New user notification]]></title>
            <link>https://medium.com/@kamil.powalowski/telegram-bot-firebase-cloud-functions-new-user-notification-82a1a3026017?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/82a1a3026017</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[cloud-functions]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 20:50:45 GMT</pubDate>
            <atom:updated>2019-02-20T08:41:29.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*1Ee6W0HhVOqsse5SbrD5nQ.png" /><figcaption>Telegram BotFather avatar</figcaption></figure><p>It’s nice to know when a new user joins your freshly created website. With Telegram and Firebase, you could do this with just a few lines of code. Together we will create a bot that will show you a message like the one below, right after a new user registers to your website using Firebase authentication feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*sgRA_mfXppDx_xWAbuYkDw.png" /></figure><p>Note: To use outbound networking in Firebase functions you must have a Flame or Blaze plan. Take a look on Blaze plan. In most cases it will be free for you.</p><h3>Step 1: BotFather</h3><blockquote>One bot to rule them all</blockquote><p>Creating new bot on Telegram requires contact with another bot called <em>BotFather</em>.<br>Install Telegram, open this link <a href="https://telegram.me/BotFather">https://telegram.me/BotFather</a> and start the conversation.<br>The process of creation is straightforward. Write</p><pre>/newbot</pre><p>send the message and then answer given questions. You will have to provide only bot display name and username.<br>Once your bot is created, you will be provided with the access token and URL. Go on and start a conversation with your new bot.</p><h3>Step 2: Gathering Data</h3><p>To create our notification system we must collect two values. One of them is the bot access token (let’s call this <strong>$TOKEN</strong>), the second one is the conversation/chat id, to which we will send new messages.<br>Assuming that you already started a conversation with your bot, call this URL in your browser:</p><pre>https://api.telegram.org/bot$TOKEN/getUpdates</pre><p>The result should be like this one:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/829bc38c29cf82cf5e9961a42a47b9a0/href">https://medium.com/media/829bc38c29cf82cf5e9961a42a47b9a0/href</a></iframe><p>You should look for a value under key</p><pre>result.chat.id</pre><p>It is an id of your conversation with this bot. We will call it <strong>$CHATID</strong>.</p><h3>Step 3: Cloud Functions</h3><p>Before we write some code, you need to have <em>Cloud Functions</em> up and running.<br>I only present here basic setup about <em>Cloud Functions</em> in <em>Firebase</em>, if you need to know more, visit <a href="https://firebase.google.com/docs/functions/get-started">https://firebase.google.com/docs/functions/get-started</a>.</p><p>Install <em>Firebase</em> tools</p><pre>npm install -g firebase-tools</pre><p>Log in to <em>Firebase</em></p><pre>firebase login</pre><p>Init <em>Cloud Functions</em> in your project</p><pre>firebase init functions</pre><p>In this step, you will be able to choose between <em>TypeScript</em> and <em>Javascript</em>. I’ll provide an example with <em>TypeScript</em>, but you can choose what fits you best.<br>To update <em>Cloud Function</em>s on <em>Firebase</em> call</p><pre>firebase deploy --only functions</pre><h3>Step 4: Environment Configuration</h3><p>In most cases, we don’t want to put secret values in code. With <em>Firebase Cloud Functions</em> we don’t have to. Functions offer easy mechanism called Environment configuration. We will use this to save our <strong>$TOKEN</strong> and <strong>$CHATID</strong>. In command line call</p><pre>firebase functions:config:set bot.token=&quot;$TOKEN&quot; bot.chat=&quot;$CHATID&quot;</pre><p>Et voilà. Your values will be available from code during runtime, but not be visible for people that have access to your code. To validate <em>envars</em> use</p><pre>firebase functions:config:get</pre><h3>Step 5: Code</h3><p>Finally, we can write some code. But before that, I’ll add one necessary library. Go to functions directory and call</p><pre>npm install --save telegraf</pre><p>This will add <a href="https://github.com/telegraf/telegraf">https://github.com/telegraf/telegraf</a> to your functions (see Note 1).</p><p>Ok, now we really can write some code. Head to <em>src/index.ts</em> file.<br>First me must import <em>firebase-function</em> and <em>telegraf</em>:</p><pre>import * as functions from &#39;firebase-functions&#39;;<br>import * as telegraf from &#39;telegraf&#39;;</pre><p>And then we export newUser event:</p><pre>export const newUser = functions.auth.user().onCreate(_ =&gt; {<br>    // body of function<br>});</pre><p>In this <em>body of function</em> we’ll create new bot and send a message about new user (see Note 2):</p><pre>const bot = new telegraf.Telegram(functions.config().bot.token);<br>return bot.sendMessage(<br>    functions.config().bot.chat,<br>    &#39;New user joined 🎉&#39;<br>);</pre><p>Notice that we are using config values <em>functions.config().bot.token</em> and <em>functions.config().bot.chat</em> to initialize bot and send message to correct conversation.</p><p>And that’s all. Deploy your code using `firebase deploy — only functions` and wait for messages from your bot (no, I’m just kidding, test it yourself).</p><p>The whole <em>index.ts</em> file should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/336b539d7989410f85068a29ac6112bf/href">https://medium.com/media/336b539d7989410f85068a29ac6112bf/href</a></iframe><p>Note 1: sending a message to bot requires one HTTP call, you don’t have to add this library to do this if you don’t want to.</p><p>Note 2: This feature requires Flame or Blaze firebase plan. Outbound networking is not supported on Firebase Spark plan. I’m recommending Blaze plan.</p><h3>Appendix</h3><p>This blog post idea pops up during work on <a href="https://lizt.co/">https://lizt.co</a> webpage.</p><p>Lizt.co is the community-driven website for creating and sharing checklists.<br>I encourage you to go and try it. To show its potential, I’ve created above article in form of a checklist. You can find it <a href="https://lizt.co/checklists/HkIkHF532f/new-user-notification-with-telegram-bot-and-firebase-cloud-functions-">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wc5ccXMADAgs30H87cp_QQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYRoiQYGeZ_TKuiXJRJMJQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82a1a3026017" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imagers | PRESS KIT]]></title>
            <link>https://medium.com/@kamil.powalowski/imagers-press-kit-8b4ee4fa5f49?source=rss-bcb0c188e4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b4ee4fa5f49</guid>
            <category><![CDATA[apple-tv]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[indie]]></category>
            <category><![CDATA[pixel-art]]></category>
            <dc:creator><![CDATA[Kamil Powałowski]]></dc:creator>
            <pubDate>Fri, 27 May 2016 12:05:33 GMT</pubDate>
            <atom:updated>2016-06-28T12:11:38.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*qMznaKPEnOXRwgHAy0YRhA.jpeg" /></figure><blockquote>Train your brain and create a Pixel Art.</blockquote><h3>About:</h3><p>Imagers is puzzle game designed for Apple TV. It is a result of the 8 month overtime job of three people — developer, graphic designer and level designer.</p><p>The game combines simple and easy to learn rules with some kind of art creation. Players will try to solve puzzle and discover a pixel art image made of color blocks.</p><p>The whole game contains 100 puzzles in three different sizes/difficulty levels which should last to 6–8 hours of play. Single level depending on the size could be finished in 1–10 minutes. The game is designed for players who enjoy nonogram/picross like challenges where logic thinking combine with creating pixel art. Simple rules make it also suitable for any casual gamers (ability to count to 10 is neccessary).</p><h3>Origin:</h3><p>The game name comes from a connection of two words — <em>image</em> and <em>numbers</em>. It was created because both Kamil (software developer) and Michał (graphic designer) are players and love playings video games. When the new platform — 4th gen Apple TV — appears they decided to make a game with unique and simple rules that could be played by anyone in from of them TV sets.</p><h3>App Store Descriptions:</h3><p>Unravel a puzzle and discover a pixel art images hidden behind colorful tiles with numbers. 100 challenging puzzles across 5 level packs are waiting for your brain cells. Easy to learn rules, simple Apple Remote control, and many fun when grid with tiles became a piece of art.</p><p>Features:</p><ul><li>Unique gameplay.</li><li>Three puzzle sizes.</li><li>5 packs — Small, Medium, Large, Animals and Fantasy with 20 puzzles in each.</li><li>iCloud support. Your progress will be safe on your iCloud account.</li><li>Available only on Apple TV.</li><li>Play in English🇺🇸, Japanese🇯🇵 or Polish🇵🇱.</li></ul><h3>Screenshots:</h3><p><em>For media use. Please contact us at info@hydrasoftworks.com if you need additional images.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z63y2d6g7I91Pmw4MzAH4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbgKQMGjsEfMo2FmS6FEUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VuSk0naZ95pnOmoix0w2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5PLnFBqaUUjdxHL_lZs8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tVgC-h6bD2M-OHwu_4GZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoxrxPMAmDq5Be1b24AEjw.png" /></figure><h3>Launch Details and Social Media:</h3><p><em>Note: To open link in a new tab use Cmd + Left Click</em></p><ul><li><strong>Launch Date</strong>: June 28th, 2016</li><li><strong>iTunes Link</strong>: <a href="https://itunes.apple.com/app/imagers-pixel-art-puzzle-game/id1046316053?l=pl&amp;ls=1&amp;mt=8">https://itunes.apple.com/app/imagers-pixel-art-puzzle-game/id1046316053</a> or simply look for <em>Imagers</em> on Apple TV App Store.</li><li><strong>Price</strong>: 1.99$ (50% off first week)</li><li><strong>Website</strong>: <a href="http://imagers.it/">imagers.it</a></li><li><strong>Roadmap:</strong> <a href="https://trello.com/b/AWDQwNse">trello.com/b/AWDQwNse</a></li><li><strong>Facebook</strong>: <a href="https://www.facebook.com/imagersit">www.facebook.com/imagersit</a></li><li><strong>Twitter</strong>: <a href="https://twitter.com/imagersit">twitter.com/imagersit</a></li><li><strong>Hashtags</strong>: #imagers</li></ul><h3>Videos:</h3><p><em>Game preview video:</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdKyhG04PYzI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdKyhG04PYzI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdKyhG04PYzI%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b52c4b8b1cb143977bacf55dad404c5c/href">https://medium.com/media/b52c4b8b1cb143977bacf55dad404c5c/href</a></iframe><p><em>How to play video:</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzOXqZ-jw6xc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzOXqZ-jw6xc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzOXqZ-jw6xc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bfe783b280bd819e74ca60884c7a670/href">https://medium.com/media/7bfe783b280bd819e74ca60884c7a670/href</a></iframe><h3>Icon and Logos:</h3><p><em>For media use.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Y5QysNAvBPE01L2aO_tuNA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXi4U1atGC0rnsKq9LdsBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*MqgtzwY_fT-U_VSMp2Mwaw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cC6T2CvCpTRatL-36AwRPw.png" /></figure><p>You can download all media materials in one zip file <a href="http://imagers.it/assets/imagers_media.zip">imagers.it/assets/imagers_media.zip</a>.</p><h3>Creators:</h3><p>Imagers is in continues development by Hydra Softworks, one person company from Poznań, Poland runs by Kamil Powałowski (<a href="https://twitter.com/kamilpowalowski"><em>@kamilpowalowski</em></a>). Kamil works as an iOS app developer in a daytime and as a game developer when the night comes. The Imagers game will never be ready without a help of Kamil’s girlfriend Nadzieja Kosińska and awesome graphic designer Michał Ratajczak(<a href="https://twitter.com/micr">@micr</a>). The final shape of the game is also the merit of a group of testers participating in the open and closed beta tests.</p><h3>Media Contact:</h3><p><em>For media inquiries and promo codes, please contact: info@hydrasoftworks.com, </em><a href="https://twitter.com/kamilpowalowski"><em>@kamilpowalowski</em></a><em> on Twitter or use </em><a href="http://imagers.it/#section_contact-us"><em>this form</em></a><em>.</em></p><p>Apple, the Apple logo and Apple TV are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc., registered in the U.S. and other countries. IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used under license.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b4ee4fa5f49" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>