<?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 Gáyan Justo de Moraes on Medium]]></title>
        <description><![CDATA[Stories by Gáyan Justo de Moraes on Medium]]></description>
        <link>https://medium.com/@gayan-justo?source=rss-aa625a3b1eb4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1Xg2Wx-th0mirXa5ShH4wA.png</url>
            <title>Stories by Gáyan Justo de Moraes on Medium</title>
            <link>https://medium.com/@gayan-justo?source=rss-aa625a3b1eb4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:45:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gayan-justo/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[Keep It Short and Simple, IT companies!]]></title>
            <link>https://gayan-justo.medium.com/keep-it-short-and-simple-it-companies-61abc1fc10f0?source=rss-aa625a3b1eb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/61abc1fc10f0</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Gáyan Justo de Moraes]]></dc:creator>
            <pubDate>Mon, 09 Aug 2021 21:05:53 GMT</pubDate>
            <atom:updated>2021-08-09T21:05:53.175Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intro</h3><p>I’ve been working in the IT field for a bit more than 7 years now and despite few companies or projects I regularly see large companies putting more and more members in a squad or bringing multiple squads before a project or product has even started. Don’t take me wrong, these companies or projects that I mentioned before which don’t this is mainly because they can’t afford for a bigger crew or they’d certainly have it.</p><p>This article is mainly my opinion why companies, managers, CEO’s and even clients should keep things KISS (<em>Keep It Short and Simple</em>). It all boils down to a single thing: waste of time. And time is money!</p><h3>The more, the better! Is it thou?</h3><p>It’s not my idea to bring the discussion here whether agile culture has actually worked or not, but it’s certainly brought many benefits for our current working environment. In <strong>SCRUM</strong> we know the definition of squad is:</p><blockquote>They have all the skills and tools needed to design, develop, test and release to production, being an autonomous, self-organising team who are experts in their product area.</blockquote><p>That being said, a squad must have members with skills sufficient enough to complete their project or product. If we’re talking about an expert in each field we can assert that we need no more than 4 developers. (I’m not including Product Owner nor Scrum Master here)</p><ol><li>Designer</li><li>Front-End Developer</li><li>Back-End Developer</li><li>Tester</li></ol><p>Having one of each is certainly a dangerous thing to do (<em>you never know when one’s cat will sleep on their keyboard and prevent them from working</em>), but then again the amount of constant work a designer will have for a project can be discussed, but let’s say he’ll spend his full-time in a project. So perhaps a good distribution for a development squad is:</p><ol><li>Designer</li><li>Senior (or Mid) Front-End Developer</li><li>Beginner Front-End Developer</li><li>Senior (or Mid) Back-End Developer</li><li>Beginner Back-End Developer</li><li>Tester</li></ol><p>So we have up to 6 development members in a squad and that is enough <strong>for most projects!</strong></p><h3><strong>Communication Issues</strong></h3><p>More members in a squad means you’ll have to manage and keep the way they communicate with each other clean and tidy. So far I haven’t seen any company actually concerned that communication between members can be a real issue. Most executives or managers think a developer can simply join a running project, put his hands on a keyboard and… <strong>magic!</strong> We all know that’s not true and we also know the amount of threads and different topics will make the project hell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*uvMJsrCjnYgq-rUSPnFaGQ.png" /><figcaption>The larger a squad is the harder is to keep track of all discussions and topics related between each other</figcaption></figure><p>In essence, when managers start bloating squads with more and more developers they’re basically adding complexity to the project instead of making things move faster. It’s not even a good complexity, but one that’ll mainly make members stressed and wasting more and more time in uncessary meetings to align things that 1/3 of them already know, 1/3 thought they knew and the other 1/3 couldn’t care less.</p><h3>To Sum Up</h3><p>This is a call to all developers, clients and managersout there. Whenever you feel a project is far more complex than it should and it’s hard to keep yourself aware of the business essence of your project you’re not wrong. Your company has probably added unecessary complexity to it by bloating things up. Big companies don’t need big teams just to inflate their ego! Big companies need to <strong>Keep It Short and Simple</strong>!</p><h3>Great Related Content</h3><p>If you’re looking for a far more informative content regarding this issue you can check <a href="https://agilepainrelief.com/blog/scrum-team-size.html">out this article (written by Agile Pain Relief)</a> which has lots of insights and great content that emphasizes the issue behind big teams and their relationship. This article nor I have any relationship with the owners of the referred article, but great content must be shared!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61abc1fc10f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with gRPC + Flutter on Windows]]></title>
            <link>https://gayan-justo.medium.com/working-with-grpc-with-flutter-on-windows-17493528e6a2?source=rss-aa625a3b1eb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/17493528e6a2</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Gáyan Justo de Moraes]]></dc:creator>
            <pubDate>Mon, 26 Jul 2021 22:02:04 GMT</pubDate>
            <atom:updated>2021-07-26T22:39:28.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*BY20-ix0lfBSEf6Ssqc5lQ.png" /></figure><p>Lately I’ve been studying a bit of gRPC to check out how it works for mobile development using Flutter and I stumbled on an unexpected issue (which maybe isn’t that -really- unexpected): <strong>it’s not so trivial to install and configure all libraries you need to make gRPC work on your Windows machine.</strong></p><p>So, here are all steps I did in order to make things work in a Windows development environment.</p><h3><strong>Step 1:</strong></h3><p>Based on the <a href="https://grpc.io/docs/languages/dart/quickstart/">Dart quickstart</a> we must first install the protocol compiler for Dart</p><pre>dart pub global activate protoc_plugin</pre><h3>Step 2:</h3><p>Now we must download the specific release of protobuf for Windows. In my case the latest version was <strong>protoc-3.17.3. </strong>Remeber to download the asset for win32 or win64.</p><p><a href="https://github.com/protocolbuffers/protobuf/releases">Releases · protocolbuffers/protobuf</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*crN2FqEVNKvPwfv5B0cV2g.png" /></figure><h3>Step 3</h3><p>Once the download from Step 2 is done we can extract anywhere we’re comfortable and our system user has permission to read. In my case: <em>C:\SDKs\protoc-3.17.3-win64</em></p><h3>Step 4</h3><p>Now we must add our extract file to our PATH in our system’s environment variables, including the subfolder <em>“bin”. </em>The complete path to add in my case is: “<strong><em>C:\SDKs\protoc-3.17.3-win64\bin</em></strong><em>”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*f_UNZPWjh78bzrYqbeDZxA.png" /></figure><h3>Step 5</h3><p>After installing the protoc_plugin (step 1), it’ll add in our user’s folders a <strong>“protoc-gen-dart.bat” </strong>which we must copy and paste in the same bin folder we added to our path in the previous step. In my case the “protoc-gen-dart.bat” file is located in:</p><p><strong>C:\Users\&lt;YOUR_USER&gt;\AppData\Local\Pub\Cache\bin</strong></p><p>The final result must look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*GVJCkRMTmHdUXT1L-cyvkA.png" /></figure><h3><strong>Result</strong></h3><p>After following all steps you now must be able to execute the command to generate all required compiled files from a proto such as:</p><pre>protoc --dart_out=grpc:lib/src/generated -Iprotos protos/person.proto</pre><p>And now you’re good to go and use gRPC with Dart on a Windows machine!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17493528e6a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter — Floating Bottom NavBar]]></title>
            <link>https://gayan-justo.medium.com/flutter-floating-bottom-navbar-2db74f87bd78?source=rss-aa625a3b1eb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db74f87bd78</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Gáyan Justo de Moraes]]></dc:creator>
            <pubDate>Sat, 15 May 2021 20:31:32 GMT</pubDate>
            <atom:updated>2021-05-15T20:31:32.615Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter — Floating Bottom NavBar</h3><p>I’ve struggled a bit trying to find a clean code to build a nice roundish floating navbar until I came with a simple solution which I believe that works fine. I’d like to share the result and code below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*a9sAeWQ-u-9xon-y2vK-sA.png" /></figure><h3>BottomNavBar Widget Code</h3><pre><strong>import &#39;package:flutter/material.dart&#39;</strong>;<br><strong>import &#39;package:flutter/widgets.dart&#39;</strong>;<br><br><strong>class </strong>BottomNavBar <strong>extends </strong>StatefulWidget {<br>  @override<br>  _BottomNavBarState createState() =&gt; _BottomNavBarState();<br>}<br><br><strong>class </strong>_BottomNavBarState <strong>extends </strong>State&lt;BottomNavBar&gt; {<br>  int <strong>currentIndex</strong>;<br><br>  @override<br>  <strong>void </strong>initState() {<br>    <strong>this</strong>.<strong>currentIndex </strong>= 0;<br>    <strong>super</strong>.initState();<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br><br>    <strong>return </strong>Padding(<br>        padding: <strong>const </strong>EdgeInsets.all(8.0),<br>      child: ClipRRect(<br>        borderRadius: BorderRadius.all(Radius.circular(40)),<br>        child: BottomNavigationBar(<br>          currentIndex: <strong>this</strong>.<strong>currentIndex</strong>,<br>          backgroundColor: Colors.<em>transparent</em>,<br>          type: BottomNavigationBarType.<strong>shifting</strong>,<br>          items: [<br>            BottomNavigationBarItem(<br>              icon: Icon(Icons.<em>directions_car</em>),<br>              label: <strong>&#39;Page 0&#39;</strong>,<br>              backgroundColor: Colors.<em>grey</em>[700],<br>            ),<br>            BottomNavigationBarItem(<br>              icon: Icon(Icons.<em>directions_car</em>),<br>              label: <strong>&#39;Page 1&#39;</strong>,<br>              backgroundColor: Colors.<em>grey</em>[700],<br>            ),<br>            BottomNavigationBarItem(<br>              icon: Icon(Icons.<em>directions_car</em>),<br>              label: <strong>&#39;Page 2&#39;</strong>,<br>              backgroundColor: Colors.<em>grey</em>[800],<br>            ),<br>            BottomNavigationBarItem(<br>              icon: Icon(Icons.<em>directions_car</em>),<br>              label: <strong>&#39;Page 3&#39;</strong>,<br>              backgroundColor: Colors.<em>grey</em>[900],<br>            ),<br>          ],<br>          onTap: (index) {<br>            setState((){<br>              <strong>this</strong>.<strong>currentIndex </strong>= index;<br>            });<br>          },<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><h3>Using Widget In Scaffold</h3><pre><strong>return </strong>Scaffold(<br>  appBar: AppBar(<br>    title: Text(<strong>widget</strong>.<strong>title</strong>),<br>  ),<br>  body: Center(<br>    child: Column(<br>      mainAxisAlignment: MainAxisAlignment.<strong>center</strong>,<br>      children: &lt;Widget&gt;[<br>        Text(<br>          <strong>&#39;You have pushed the button this many times:&#39;</strong>,<br>        ),<br>        Text(<br>          <strong>&#39;</strong>$<strong>_counter&#39;</strong>,<br>          style: Theme.<em>of</em>(context).<strong>textTheme</strong>.<strong>headline4</strong>,<br>        ),<br>      ],<br>    ),<br>  ),<br>  bottomNavigationBar: BottomNavBar(),<br>  floatingActionButton: FloatingActionButton(<br>    onPressed: _incrementCounter,<br>    tooltip: <strong>&#39;Increment&#39;</strong>,<br>    child: Icon(Icons.<em>add</em>),<br>  ), <em>// This trailing comma makes auto-formatting nicer for build methods.<br></em>);</pre><p>That’s it! Hope it helps :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db74f87bd78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter — A Clean Architecture implementation proposal]]></title>
            <link>https://gayan-justo.medium.com/flutter-a-clean-architecture-implementation-proposal-3e44f8976281?source=rss-aa625a3b1eb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e44f8976281</guid>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Gáyan Justo de Moraes]]></dc:creator>
            <pubDate>Thu, 13 May 2021 00:44:54 GMT</pubDate>
            <atom:updated>2021-08-11T17:44:53.345Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter — A Clean Architecture implementation proposal</h3><p>repository: <a href="https://github.com/gjmcodes/flutter_clean_template">https://github.com/gjmcodes/flutter_clean_template</a></p><p>The main purpose of this template is to bring my own view and implementation on top of the <a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">Clean Architecture written by Bob Martin</a>. The final goal is to have the project working with fully isolated layers, internationalization ( <strong>i18n</strong>), returning validations from the domain back to the UI, and features implemented in a folder structure which will make it easy to turn into modules in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*_SVj5LTBQtX3iy6f" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/0*baQ9hGWAbeqKeFcu" /></figure><h3>Core Layer</h3><p>The whole application has a major layer named <strong>Core</strong> which responsabilities are to declare abstract objects, shared and common implementations from <em>base classes</em> to common widgets.</p><p>Each feature will replicate the same folder structure which consists of:</p><h3>Domain Layer</h3><p>The domain layer is responsible for holding business logic through entities and use cases. Therefore it’s the layer responsible for telling how an application must work accordingly with it’s business rules and known objects. This layer <strong>must not</strong> have any reference of objects that are related to other feature layers such as ui, infra nor blocs. It may declare abstract classes (or interfaces for those coming from TypeScript or C#) that will be implemented in any other layer. In other words, the Domain Layer <strong>cannot depend</strong> on any other layer apart from shared objects in the core that will help to compose the domain.</p><h3>Use Cases</h3><p>Use Cases are responsible for containing application and business validation for a specific request/flow.</p><p>For Use Cases implementation I decided to use 4 different objects to deal with the use case workflow.</p><ul><li><strong>Use Case Model</strong>: Working as a DTO for a specific Use Case.</li><li><strong>Use Case Request</strong>: An abstract class which enforces how an Use Case must be implemented in a Handler</li><li><strong>Use Case Handler</strong>: A class which will work as the orchestrator of the use case. It’s responsability is to call any required entity from the domain model and return to it’s caller whether the Use Case Model sent is valid or not.</li><li><strong>Use Case Response</strong>: Another DTO which will be returned to the Use Case Handler caller with information that tells whether the data sent was valid or not.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/0*Vcosrh_ffxpFazv9" /></figure><p>For this template we have the entity <em>“Resource”</em> and an <strong>Use Case</strong> implementation that holds logic and validation to add a new resource, therefore: <strong>AddResourceUseCase</strong>.</p><p>The Use Case itself represents the DTO ( <em>Data Transfer Object</em>) to send a request to its <strong>Handler</strong> which will be responsible for handling all logic such as: validating the entity, calling events in case of success or failure, returning results for its caller.</p><p>For every Use Case we have a Handler on top of it. In this template we have a single Handler for context which implements all UseCases logic. This handler is <strong>ResourceUseCaseHandler</strong>.</p><h3>Validations</h3><p>For validations we’re using the <strong>specifications</strong> pattern which will be called by entities accordingly to exposed functions for specific flows/validations. A specification is composed by multiple business rules that can be reused by several specifications with different validation responsabilities.</p><p>In our case we have the <strong>new_resource.specification.dart</strong> file which groups all business rules to validate whether a new resource can be created or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*0gvN_sd1kAXGpgus" /></figure><h3>Returning Validations to the Presentation Layer</h3><p>To reveal a validation message for a field we must extend a BloC specific for forms that inherits <em>“BaseFormBloc”</em>. Once extending this class, its implementation will required an override of the function <em>“setValidations()”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*5wHh4sT-v7nt3Oaf" /></figure><p>In the Resources example above we can see we’re providing a value for a Map of the type <em>Map&lt;String, StreamController&gt;</em>. The key to this Map is the located in the constants file at the root of our feature domain folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/201/0*lYCUOsX9WytUq7V3" /></figure><p>This same Key is also used as the Key to return our Business Validation mentioned in the previous topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/0*CKEci6HtRmWnIDD3" /></figure><p>Both Map and validations will know each other through their common keys. At the implementation of our BaseFormBloc we can call the function <em>addValidations</em> in case a Validation Result returns invalid from an Use Case Handler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/0*y7dQ2Uh8uH2sfE_R" /></figure><p>Once triggered, the stream will send the message to our <em>FormTextInput</em> which <em>must</em> be listening to streams defined to our BaseFormBloc implementations streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/0*3_cZMdMn_8BwwHvo" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e44f8976281" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>