<?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 Vania Radmila Alfitri on Medium]]></title>
        <description><![CDATA[Stories by Vania Radmila Alfitri on Medium]]></description>
        <link>https://medium.com/@alfitriv?source=rss-8bc3164360e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-TksmbApVTDT2g1xGdsUZw.jpeg</url>
            <title>Stories by Vania Radmila Alfitri on Medium</title>
            <link>https://medium.com/@alfitriv?source=rss-8bc3164360e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:49:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alfitriv/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[“Time to Shine”]]></title>
            <link>https://medium.com/@alfitriv/time-to-shine-b2476b05fa2f?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2476b05fa2f</guid>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 15:22:03 GMT</pubDate>
            <atom:updated>2020-04-15T16:40:29.509Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A recap on Gojek iOS Bootcamp 2020</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Il5Ou12P-BjpWno3OJsTQ.png" /></figure><p>This blog post is my overall take on being a mentor for iOS bootcamp Gojek. I will be talking about the curriculum and also the aftermath on what the bootcampers were able to achieve in just seven days of bootcamp. This year’s bootcamp is unique in that it is all done online due to the current pandemic of COVID-19. Thus, some challenges did occur related to the lack of physical interaction which I will be discussing later.</p><h3>The goal 📱</h3><p>The Gojek bootcamp consists of many modules being taught delivered in various timelines. One of the modules is iOS development where bootcampers are taught to be able to create a simple to moderate app within 6–7 days. The schedule of the bootcamp goes from 10 am to 5.30 pm and two break sessions occur throughout the day: one for lunch and the other for prayer/afternoon tea break. The bootcamp was done fully online via zoom.</p><p>We always started the day by seeing one or two of the bootcampers showcasing their homework. This is a good way to see if they had any troubles during their learning and also invites their fellow bootcampers to help them out.</p><p>The final project was to create a food delivery app similar to existing apps on the market. We broke down the final project to two iterations:</p><ul><li><strong>First Iteration</strong>: A simple food delivery app that is able to request an API, does data mapping, list out the data in a table or collection view, navigates to different pages and has data persistence. This app has to have unit tests.</li><li><strong>Second Iteration</strong>: To make an advanced version of the app. We gave bootcampers suggestions on adding search functionalities, filter, rating, favouriting and image caching.</li></ul><p>The bootcampers had approximately three days to work on the project due to a long holiday plus a few hours to polish before showcasing their first iteration of the project. They then had less than 24 hours to continue working on the second iteration of the project before the final showcases starts and winners were announced.</p><h3>The curriculum 📚</h3><p>Most bootcampers have had a solid background in object-oriented programming. A lot of the curriculum in the iOS module includes introducing them to technologies that’s needed to develop an iOS application such as: Swift language, UIKit, and Xcode. Apart from that, we wanted to have an element of working collaboratively as well. Luckily their existing and working experience on version control was not a blocker to this goal.</p><p><strong>Day 1</strong></p><p>Introduction to Swift was the first topic to be taught on day one of iOS bootcamp. The bootcampers do not have so much familiarity with the Swift language syntaxes. We went over on a lot of how-tos in Swift which includes:</p><ul><li>Creating a class, function, and property</li><li>Collection types</li><li>Types and operations</li><li>Basic control flow</li><li>Encoding and decoding</li><li>Error handling</li></ul><p>In addition to that, we also taught them networking and how to encode/decode data from JSON to model and vice versa. The assignment for that day was to recap what we learned in Swift by giving them a collection type problem.</p><p><strong>Day 2</strong></p><p>We dived deep into intro on UIKit and building our first project with it. We started off by giving them a little <a href="https://manifesto.co.uk/history-mobile-application-development/">history on mobile development</a> and also gave them an overview of UIKit as a framework and where it stands in the cocoa layer. I happened to be in charge for these specific topics. I believe that learning the history on the frameworks that will be used is needed to visualise the big picture on what we will be working with. The small exercise that we had everyone do was to make a simple UIView with Auto Layout that can handle events. This is to show bootcampers the three responsibilities of a UIView:</p><ul><li>Drawing</li><li>Auto layout</li><li>Event handling</li></ul><p>We then went on to teach them different kinds of navigation to different view controllers. We also taught them the delegation pattern to send data between two different controllers. Their assignment involved making an API call that prints out the count of data they received, navigate to another page to pick out an index of the same data, and navigate back to the same page printing the value of the index. This challenged what they have learned so far during the course of just two days material.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6LifGfkQIu7F7bYN1SndzA.png" /><figcaption>Teaching navigation and delegation pattern through a zoom meeting</figcaption></figure><p><strong>Day 3</strong></p><p>This was the day where we taught Table and Collection views. We received feedback as mentors that we were cramming too many topics in one day. Hence, we started focusing on two topics per day which allowed them to do more hands on practices.</p><p>We initially showed them the difference between making Table and Collection Views and the similar approaches to creating theme. We also went over the protocols that’s needed to handled the number of rows, configuring cells, and the selection of a cell.</p><p><strong>Day 4</strong></p><p>Unit test was the only topic for the day since we wanted bootcampers to start preparing and to include these test for the final project.</p><p>We also touched on data persistence.</p><p><strong>Day 5</strong></p><p>We had the bootcampers devote the first half of the day to polish their first iteration of the project. The showcase happened in the second half and we were blown away with how fast they have learned and developed their apps.</p><p><strong>Day 6</strong></p><p>Again, we allowed the bootcampers to work on the second iteration of their apps but this time, it was for the second iteration until they do their final and last showcase. The showcase happened and it was amazing how quickly they were able to accomplish their goals.</p><p><strong>Day 7</strong></p><p>This was more of a “where to go from here” kind of day. We taught them UI testing and how to refactor their network layer to make it reusable. By the end of the day, we had our farewells and snapped a few screenshots of us grinning with joy as the module has bitter sweetly come to an end.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FW08F0mOz7eAiA9Smkj%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FW08F0mOz7eAiA9Smkj&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="940" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c9a2199be293edc7686a42fa3209224/href">https://medium.com/media/9c9a2199be293edc7686a42fa3209224/href</a></iframe><h3>The challenges 🏃‍♀️</h3><p>Some of the things we learned as mentors were <strong>pacing ourselves</strong> and creating a flexible curriculum. Our initial curriculum was designed so that the bootcampers could start their final project on day 3. However, we had to move it back a day because of the feedback on cramming too many things in one day which made most of the bootcampers fall behind on their understanding of some of the topics.</p><p>Conducting the bootcamp completely online overall was a unique challenge where <strong>there will be technical problems with network connectivity</strong>. The benefit of having the zoom sessions recorded was that people could play back the recordings at a later time if they had to miss out on some sessions.</p><p>Another thing with online bootcamps is the <strong>challenge of being present</strong>. As mentors, we could not control whether people are engaged in the topic at the current time or a reaction to our statements. We overcame this is by being over-communicative. I commend the bootcampers for being responsible enough to notify us from zoom chat if they had to be “away from keyboard” or a “be right back” status. This goes to us mentors and coordinators because we also over-communicated our current status to let people know our presence.</p><h3>Conclusion 🎉</h3><p>I had an amazing experience mentoring at this year’s Gojek iOS bootcamp. It was a healthy environment of coaching where if something did not go well in class that day or if a material was not clear; both mentors and bootcampers were communicative and adjusts curriculum accordingly. In my opinion, this is how a learning environment should be.</p><p>By teaching knowledge I normally do everyday to people that have not done it before and to see them killing it on their final project is incredibly fulfilling, and thus making this experience as one of the most rewarding things I have done in my career as a software engineer.</p><p>The bootcampers always had an uplifting notion whenever their teammates were about to showcase their projects that goes, “time to shine!”. I realised that this notion was for us mentors and coordinators as well.</p><p>Congrats class of 2020 and see you on the floor!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6e1mN_5nielBT8x0WOmjw.png" /><figcaption>Bootcampers, mentors, and coordinators in one zoom frame :)</figcaption></figure><p><em>Illustration by: </em><a href="https://undraw.co/"><em>https://undraw.co/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2476b05fa2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collection Views with Compositional Layout]]></title>
            <link>https://medium.com/@alfitriv/collection-views-with-compositional-layout-9c8fb17dbf49?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c8fb17dbf49</guid>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Tue, 31 Mar 2020 17:28:59 GMT</pubDate>
            <atom:updated>2020-04-01T11:30:41.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9l7a5rNpt8ikTgcjPDBBg.png" /></figure><p>This article is going to be about my learnings on making complex collection view layout using compositional layout that was released just last year by Apple in 2019. The layout is achievable through minimal code compared to using collection view layout and introduces the notion of groups to compose the many layouts that we would like to use in a section.</p><p>Clone the app <a href="https://github.com/alfitriv/compositionalLayout.git">here</a> 🎉</p><h3>Collection View Flow Layout vs Compositional Layout</h3><p>When we make collection views in UIKit, we have to set the UICollectionViewLayout in order for the collection view to control how the items will display in our app. The layout only provides us with a single view layout. Meaning if you’d like to make a layout of 2 or 3 columns of your item list with each item having the same sizeForItem, it’s possible to do that using UICollectionViewFlowLayout.</p><p>But what happens when you want something more complex than that? We can certainly make a custom UICollectionViewLayout but with the introduction of UICompositionalLayout, Apple has made it easier for us to build collection view layouts that are more complex. To do this, the API introduces Groups.</p><p>As you might have been familiar with, a collection view has many items which are the cells. These items are usually grouped in sections. A group is basically a cluster of items that sits inside a section. Hence, groups sits between items and section hierarchy. Inside these groups we are able to set a desired layout. The building blocks of UICompositionalLayout are three things:</p><ul><li>Items</li><li>Groups</li><li>Section</li></ul><blockquote>Let’s dive right into the code and see how we can make different layouts</blockquote><h3>The Desired Layout</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FlOlR2RlhOkGaheHFyM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FlOlR2RlhOkGaheHFyM&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FlOlR2RlhOkGaheHFyM%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="241" frameborder="0" scrolling="no"><a href="https://medium.com/media/6897ff33da1b2daf7ad8815ed8cd597e/href">https://medium.com/media/6897ff33da1b2daf7ad8815ed8cd597e/href</a></iframe><p>Here we have three different layouts to compare all using UICompositionalLayout. The first layout is a section that consists of many groups:</p><ol><li>One that has an item to be full size</li><li>The second group has 3/4 of its width to a photo and the remaining quarter to be divided into 2 smaller items.</li><li>A group of 3 items stacked together</li><li>The reverse of the second.</li></ol><p>This layout also shows that there is a horizontal scrolling behaviour on each section.</p><p>The second and third layout is a comparison on what the layout would look like if we were to only have one or two groups of items in a section without a section scrolling behaviour.</p><p>I have set the third layout to be the simplest so to explain my implementation let’s <strong>start backwards, from third to first layout </strong>😀</p><h3><strong>The third layout</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2_XXV6yXNPNSXcbRc-LbOw.png" /></figure><p>This layout is simple enough where it will display one item only per group per section. As mentioned before be alway need three things to make our compositional layout: Item, group, section.</p><p>The important thing to note is that we are to set the size for every item and group that we have. You may have noticed that I used NSCollectionLayoutSize to set the width and height of my item and group.</p><p>As for initialising the group using NSCollectionLayoutGroup, we can set this to either horizontal, vertical and custom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*d1HyHhDbIpEb-w4HCnQDmQ.png" /><figcaption>A section with one item in a single group</figcaption></figure><pre><strong>func</strong> generateThirdLayout() -&gt; UICollectionViewLayout {</pre><pre><strong>let</strong> itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))</pre><pre><strong>let</strong> fullPhotoItem = NSCollectionLayoutItem(layoutSize: itemSize)</pre><pre>fullPhotoItem.contentInsets = NSDirectionalEdgeInsets(</pre><pre>top: 2,</pre><pre>leading: 2,</pre><pre>bottom: 2,</pre><pre>trailing: 2)</pre><pre><strong>let</strong> groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalWidth(1.0))</pre><pre><strong>let</strong> group = NSCollectionLayoutGroup.vertical(layoutSize: groupSize, subitems: [fullPhotoItem])</pre><pre><strong>let</strong> section = NSCollectionLayoutSection(group: group)</pre><pre><strong>let</strong> layout = UICollectionViewCompositionalLayout(section: section)</pre><pre><strong>return</strong> layout</pre><pre>}</pre><h3><strong>Second Layout</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XgXQAOr9McDFp60nCvjg8Q.png" /></figure><p>This is a layout that consists a section with one group that has 2 items. The group size has a height dimension of 1/3 of the group’s width. You may have noticed that I have been add content insets to the full photo item. This is due to my desire in have each item have spaces between each other, I set all edge insets to two.</p><pre><strong>func</strong> generateSecondLayout() -&gt; UICollectionViewLayout {</pre><pre><strong>let</strong> itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(1.0))</pre><pre><strong>let</strong> fullPhotoItem = NSCollectionLayoutItem(layoutSize: itemSize)</pre><pre>fullPhotoItem.contentInsets = NSDirectionalEdgeInsets(</pre><pre>top: 2,</pre><pre>leading: 2,</pre><pre>bottom: 2,</pre><pre>trailing: 2)</pre><pre><strong>let</strong> groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalWidth(1/3))</pre><pre><strong>let</strong> group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitem: fullPhotoItem, count: 2)</pre><pre><strong>let</strong> section = NSCollectionLayoutSection(group: group)</pre><pre><strong>let</strong> layout = UICollectionViewCompositionalLayout(section: section)</pre><pre><strong>return</strong> layout</pre><pre>}</pre><h3><strong>First Layout</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4Ad4hBPhSIZo36Fpno_gw.png" /></figure><p>The first layout and the most complex consists of a section with many groups: ReversePairGroup, TripletGroup, and MainWithPairGroup. Each of these groups hold items that has different sets of sizes. For example: The mainWithPairGroup consists of a mainItem that takes up 3/4 the group’s width. The rest of the 1/4 is filled by two pair items that’s much smaller in width and height.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*-e-n5FciFE6wNdQRKSDEIw.png" /><figcaption>Section with many groups and items each</figcaption></figure><p>Not very different from the previous implementations in terms of initialising NSCollectionLayoutGroup, we append all to these groups in the subItems parameter which is available if you have more than one group in your section.</p><pre><strong>func</strong> generateFirstLayout() -&gt; UICollectionViewLayout {</pre><pre><strong>let</strong> fullPhotoItem = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalWidth(2/3)))</pre><pre>fullPhotoItem.contentInsets = NSDirectionalEdgeInsets(top: 2, leading: 2, bottom: 2, trailing: 2)</pre><pre><strong>let</strong> mainItem = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(2/3), heightDimension: .fractionalHeight(1.0)))</pre><pre>mainItem.contentInsets = NSDirectionalEdgeInsets(top: 2, leading: 2, bottom: 2, trailing: 2)</pre><pre><strong>let</strong> pairItem = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalHeight(0.5)))</pre><pre>pairItem.contentInsets = NSDirectionalEdgeInsets(top: 2, leading: 2, bottom: 2, trailing: 2)</pre><pre><strong>let</strong> trailingGroup = NSCollectionLayoutGroup.vertical(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1/3), heightDimension: .fractionalHeight(1.0)), subitem: pairItem, count: 2)</pre><pre><strong>let</strong> mainWithPairGroup = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalWidth(4/9)), subitems: [mainItem, trailingGroup])</pre><pre><strong>let</strong> tripletItem = NSCollectionLayoutItem(</pre><pre>layoutSize: NSCollectionLayoutSize(</pre><pre>widthDimension: .fractionalWidth(1/3),</pre><pre>heightDimension: .fractionalHeight(1.0)))</pre><pre>tripletItem.contentInsets = NSDirectionalEdgeInsets(</pre><pre>top: 2,</pre><pre>leading: 2,</pre><pre>bottom: 2,</pre><pre>trailing: 2)</pre><pre><strong>let</strong> tripletGroup = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1.0), heightDimension: .fractionalWidth(2/9)), subitem: tripletItem, count: 3)<br></pre><pre><strong>let</strong> mainWithPairReversedGroup = NSCollectionLayoutGroup.horizontal(</pre><pre>layoutSize: NSCollectionLayoutSize(</pre><pre>widthDimension: .fractionalWidth(1.0),</pre><pre>heightDimension: .fractionalWidth(4/9)),</pre><pre>subitems: [trailingGroup, mainItem])<br></pre><pre><strong>let</strong> nestedGroup = NSCollectionLayoutGroup.vertical(</pre><pre>layoutSize: NSCollectionLayoutSize(</pre><pre>widthDimension: .fractionalWidth(1.0),</pre><pre>heightDimension: .fractionalWidth(16/9)),</pre><pre>subitems: [</pre><pre>fullPhotoItem,</pre><pre>mainWithPairGroup,</pre><pre>tripletGroup,</pre><pre>mainWithPairReversedGroup</pre><pre>]</pre><pre>)</pre><pre><strong>let</strong> section = NSCollectionLayoutSection(group: nestedGroup)</pre><pre>section.orthogonalScrollingBehavior = .continuousGroupLeadingBoundary</pre><pre><strong>let</strong> layout = UICollectionViewCompositionalLayout(section: section)</pre><pre><strong>return</strong> layout</pre><pre>}</pre><p>The section is the set to have scrolling behaviour by setting its orthogonalScrollingBehavior to continousGroupLeadingBoundary. This is one of the options for scrolling behaviour where as the documentation puts it “…<em>Scrolling will come to rest on the leading edge of a group boundary</em>”. This means that whenever I scroll and let go of my finger, it will make sure that the scrolling stops and snaps to the nearest new section in my collection view making me see a whole section on the screen rather than stopping in the middle and showing a portion of a section.</p><p>See the differences in scrolling behaviours below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdWIWMXQDZ6TwWffMBw%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FdWIWMXQDZ6TwWffMBw&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdWIWMXQDZ6TwWffMBw%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="900" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6b481f626d0e998033756bc5293e6ea/href">https://medium.com/media/e6b481f626d0e998033756bc5293e6ea/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FJsnhb3n4C7z3sHGz8o%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FJsnhb3n4C7z3sHGz8o&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FJsnhb3n4C7z3sHGz8o%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="884" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8ba841549fc0fe0ae306182612da644/href">https://medium.com/media/a8ba841549fc0fe0ae306182612da644/href</a></iframe><blockquote>Ta- da! 🥳</blockquote><p>And there you have it folks, building complex collection views with UICompositionalLayout. I had a lot of fun learning this and determined to improve the UI of most of my collection view based list apps with this technique now.</p><p>Helpful references that helped me:</p><p><a href="https://developer.apple.com/videos/play/wwdc2019/215/">WWDC 2019 Video — Advances in Collection View Layout</a></p><p><a href="https://www.raywenderlich.com/5436806-modern-collection-views-with-compositional-layouts">Ray Wenderlich — Modern Collection Views with Compositional Layouts</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c8fb17dbf49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An iOS App for everyone]]></title>
            <link>https://medium.com/@alfitriv/an-ios-app-for-everyone-f4b19fd642bc?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4b19fd642bc</guid>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 05:15:59 GMT</pubDate>
            <atom:updated>2020-02-28T07:45:57.746Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an Inclusive iOS App — Dynamic Type</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FSScr4PdjgyA3whmis7%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FSScr4PdjgyA3whmis7%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FSScr4PdjgyA3whmis7%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="259" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f2aea738c4d679f937d946af5e5b24b/href">https://medium.com/media/2f2aea738c4d679f937d946af5e5b24b/href</a></iframe><p>I first heard about this notion when I went to the recent iOS Conference 2020 in Singapore. The topic that stands out to me the most was presented by Jeff Watkins on how to make considerate apps. Considerate here means the ability of an app to be able to cater to people with physical limitations — be it visual impairment and slight hearing loss.</p><p>There are multiple ways on how we can cater to this segment of our target market. Two things that we can implement are: Voice Over and Dynamic Type.</p><p>In this article, I will be going over Dynamic Type and how we can implement them in our app. I have a sample project that is available on <a href="https://github.com/alfitriv/Foodnotes">GitHub</a>, go ahead and download to browse on how I implemented Dynamic Type simply by a few lines of code.</p><h3>What is it?</h3><p>Dynamic Type is a feature that allows users to change the size of any visual content on the screen. This is usually done for better readability. The Apple documentation also states the following on Dynamic Type:</p><blockquote>It also accommodates those who can read smaller text, allowing more information to appear on the screen. Apps that support Dynamic Type also provide a more consistent reading experience.</blockquote><p>With this in mind, it would be in our best interest to include this feature in our app. In fact, the company has presented the idea in <a href="https://developer.apple.com/videos/play/wwdc2017/245/">WWDC 2017 — Building Apps with Dynamic Type</a>. The video talks about on how to deal with constraint and UI layouts depending on the set size of preference a user chooses.</p><h3>The Project</h3><p>Again, you can download the finished project <a href="https://github.com/alfitriv/Foodnotes">here</a>. It is a simple recipe app where users are able to add, edit and delete a cooking recipe.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FSv3TulAYwii0kw8Cd9%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FSv3TulAYwii0kw8Cd9%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FSv3TulAYwii0kw8Cd9%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="892" frameborder="0" scrolling="no"><a href="https://medium.com/media/eeb4948f8f093b0e3c0d800fa2d3aece/href">https://medium.com/media/eeb4948f8f093b0e3c0d800fa2d3aece/href</a></iframe><p>In this video snippet, I was able to get the font size automatically increased when I adjust the large text accessibility preference in my simulator settings.</p><p>According to suggestions presented in the <a href="https://developer.apple.com/videos/play/wwdc2017/245/">WWDC 2017 video</a>, there are three <strong>rule of thumbs</strong> that we must follow in order to have our app be able to automatically adjust its UI while maintaining good user experience. Those are:</p><h3>All Texts Must Be Big Enough To Read</h3><p>A no-brainer rule. Texts in our app needs to be readable no matter what the font size is. To be able to have this ability, we need to implement the following in any file that configures the cell in our app. In my case, it will be in all the files under Cells and Editable Cells folder.</p><pre><strong>func</strong> updateFont() {</pre><pre>recipeNameTextfield.font = UIFont.preferredFont(forTextStyle: .body)</pre><pre>}</pre><p>The updateFont() will then be later called in the awakeForNib() in all the cell files.</p><blockquote>How to test this?</blockquote><p>Open the settings of your device or simulator. Under accessibility, it will have a Vision section where there is Display &amp; Text Size row. Once clicked and under Larger Text, enable the Larger Accessibility Sizes. Finally, drag the size bar to the max and see if the text gotten bigger in your app.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FidRIEhnBaAK2p1uXgx%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FidRIEhnBaAK2p1uXgx%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FidRIEhnBaAK2p1uXgx%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="907" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ebeb74181a4743079284db656a36cbf/href">https://medium.com/media/6ebeb74181a4743079284db656a36cbf/href</a></iframe><h3>UI Should Still Look Beautiful When Text is Big</h3><p>On with the next rule. As you can see, our app now is able to dynamically change its font size based on our preference but there could be possibilities the UI getting screwed up or the text being truncated. For this we can have a logic to check whether the preferred content size has been adjusted. If yes, we set the the height of the row to be of certain size. Here is what is suggested from the video:</p><pre><strong>if </strong>traitCollection.preferredContentSizeCategory.isAccessibilityCategory {<br>//vertically stacked</pre><pre>} <strong>else</strong> {<br>//layout side by side</pre><pre>}</pre><p>This implementation is applied in the heightForRow in the main/home view of the app. I return some constant when large text size is enabled and return another constant when it is not enabled.</p><h3>There Shouldn’t be Any Letters Missing When Text is Big</h3><p>Last but not least, and as mentioned previously, we shouldn’t truncate any letters when the text is too big. In order to do this, I made sure that all labels in the cells to be set to 0 in the Lines section in the nib.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*5FDzztzGp7bCFL2HUG9X7g.png" /><figcaption>Set the number of lines to 0 to avoid truncated text</figcaption></figure><blockquote>Ta-da! 🎉</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FQVy4A1T2B4BC4J0he3%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FQVy4A1T2B4BC4J0he3%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FQVy4A1T2B4BC4J0he3%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="892" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f10b527920911dddd0978c435ec7044/href">https://medium.com/media/4f10b527920911dddd0978c435ec7044/href</a></iframe><p>There you have it folks, few ways to make your app inclusive by using Dynamic Type. I definitely enjoyed learning the whole idea of making a considerate app. It has also opened my eyes on target markets that I have never thought of before.</p><p>The next time you build an app, think about whether you’re app is considerate. Having a feature as simple as Dynamic Type might add more value to your app and expand your target market.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4b19fd642bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VIPER Architecture: Things I Learned Building a Simple Movie App in Swift]]></title>
            <link>https://medium.com/@alfitriv/viper-architecture-things-i-learned-building-a-simple-movie-app-in-swift-eba8bc4301c9?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/eba8bc4301c9</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 04:57:54 GMT</pubDate>
            <atom:updated>2019-09-24T04:57:54.066Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is written to sum up my learnings on VIPER Architecture and how I used this to make Studio Ghibli app, an app that shows a list of Studio Ghibli movies. I started making the app using MVC and created another project using VIPER, just to get a comparison of the two architectures. VIPER stands for View, Interactor, Presenter, Entity, Router and it is one of the many design patterns in swift. The link to the API that I’m using is <a href="https://ghibliapi.herokuapp.com/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ib7wd-WlwrpSFkXYf5-6cw.png" /></figure><h3>The App</h3><p>The movie app is a simple application that shows a list of Studio Ghibli movies. As mentioned, I’ve created this in both MVC and VIPER architectures. You can check them out <a href="https://github.com/alfitriv">here</a>. If you’re only interested in the VIPER project, check them out <a href="https://github.com/alfitriv/VIPER-exercise">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*6b7D-px3YgbVLNLel-MLZg.png" /></figure><h3>The Contracts/Protocols</h3><p>I created protocols for the different classes that will implement it later simply to have a blueprint of what needs to be done in a specific class. It also forces me to write modular and decoupled Swift code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t--zWHZQgBoLH0SRlmYeNw.png" /></figure><h3>The Project Structure</h3><ol><li>The View</li></ol><p>The view of the project contains code that will have the dequeuing of the table view. The class also implements the IMovieView protocol that we created in the contracts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vxbcAe-IBNcuWhH8ckCtw.png" /><figcaption>ViewController for the movie app</figcaption></figure><p>2. The Presenter</p><p>The presenter has a reference to the interactor and it implements the interactor delegate later on to pass the movie data from the success handler that was captured in the interactor. I put in a push movie detail screen here even though the whole implementation of pushing to a movie detail is not finished yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tIPV5rK5yVwwzAJfHZjf4A.png" /><figcaption>Presenter for the movie app</figcaption></figure><p>3. The Interactor</p><p>The interactor contains code that will fetch the list of movie data from an API url request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZiZOJ6thiw1FONeNP2OUQ.png" /><figcaption>Interactor for the movie app</figcaption></figure><p>4. The Entity</p><p>This is basically the model of our movie object. The studio ghibli response gives us a lot of useful information but for this project I’m only using five properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*Qauv2sYz_V-x9cqGZgviVw.png" /><figcaption>The Movie Object</figcaption></figure><p>5. The Router</p><p>The router or wireframe usually contains code that handles navigation in our app. In this project, it will also have a function to create our movie controller and inject the dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3G_7eGqqAbXPABnBxB_XWQ.png" /><figcaption>Dependency injection happening where we set our view’s presenter and our interactor’s delegate</figcaption></figure><p>7. The App Delegate</p><p>This is where we set our rootViewController to our createMovieController method in our wireframe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QiGUU9niMh250YrdnQGRw.png" /></figure><p>8. Network Layer/ Movie Services</p><p>Finally, this is the class where it calls the studio ghibli api and captures the data in the event where it returns a success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wM95FPBgyPYt7oMuEut21Q.png" /></figure><p>What I learned from this whole exercise is that VIPER forces me to not have a huge amount of code in the project’s controller. Unlike the MVC pattern where most of the business logic and view is in the controller, the separation of concern in VIPER is visible. This is due to the fact that it has different classes with specific roles, example: View is only responsible for dequeuing the cells or showing the titleLabel from the data.</p><p>That’s it from this article for now, this project is far from perfect so if you have any suggestions on how I can make this project better please feel free to comment :) Happy Programming!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eba8bc4301c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Store Inventory: An Object Oriented Programming Exercise]]></title>
            <link>https://medium.com/@alfitriv/store-inventory-an-object-oriented-programming-exercise-aa45527fc03?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa45527fc03</guid>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Fri, 13 Sep 2019 04:51:51 GMT</pubDate>
            <atom:updated>2019-09-13T04:51:51.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqDo6X04OBQzFXzkdBYNjA.jpeg" /></figure><blockquote>A recap of my learnings on object oriented programming</blockquote><p>I’m a big believer of the notion on writing something that one just did can actually make one reflect more on that particular work and understand the concept better — something I took for granted in the last 11 months of my time being an iOS developer.</p><p>This post is not a tutorial, but merely a journal on how I tackled a problem — to make a domain model for a store inventory along with adding the basic functionalities it should have.</p><p>The following are the laundry list of requirements:</p><ul><li>Create an item with properties such as name, details, quantity in stock, availability, price</li><li>An Item can belong to a category</li><li>A shopping cart model which can have many items with total price.</li><li>An order item created after user checkout. It will have order id, date purchased, items</li><li>Assign item to category</li><li>Print list of items given a category</li><li>Add item stock to inventory</li><li>Create an shopping cart containing items</li><li>Add items to cart (You can’t add items if the quantity is out of stock)</li><li>Print shopping cart items with the price and total</li><li>Checkout and create order, also print order detail</li></ul><p>I wrote the application in Swift and learned some Object Oriented principles and design along the way such as use of: Inheritance, Interface, Enums, Classes and Structs — which was really the goal of this whole project.</p><h3>Let’s code 🤓</h3><p><strong>The Domain Model</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*eDa8F2_MgZ99aKulhk8U9A.png" /><figcaption>UML for my take on a store inventory</figcaption></figure><p>As you can see the Order model is not connected anywhere here but it will be initialised once the checkout function is called and if there are at least one item in the shopping cart.</p><p><strong>Making the Objects and Properties</strong></p><p>Here, I have three structs: Item, ShoppingCart and Order.</p><p>An Item is a representation of an item that will be bought from a customer or put in stock in a store. It has a number of properties, some of them are name, price and categories.</p><p>ShoppingCart is a representation of items that will be bought by a customer. As written in the requirement, it should have a number of items with a total price.</p><p>Finally, the Order object is a representation of items that are bought by a customer. It has an order id, date purchased, and a number of items.</p><p>There is an additional abstraction which I created which is the Categories enum. An Enum is a data type in swift that allows you to define a common type for a group. I created three cases for the Categories enum: BeautyCosmetics, HomeFurnishing, SchoolSupply.</p><p><strong>The MyStore Class</strong></p><p>At first I was contemplating on making two classes: One for dealing with only store inventory and another for only customer facing. But I decided not to do this (it took me two projects to realise) merely because I needed one source of truth for inventory. When an item is added to a shopping cart, it will need to check whether the that item is available in stock.</p><p>Thus, I made only one class, the Store class. But to make it a little more organised, functions that are related to store inventory goes to the InventoryLog protocol. And ones that are related to customer facing goes to ShoppingLog protocol. Store class will then implement these two protocols. Learn more on protocols here.</p><p>Reason why I’m using protocols is to have a set structure or contract of things that I wanted to do. Instead of coming up with random functions at the top of my head, I have something that are already part of the requirement and clearly defined.</p><p><strong>The Functions</strong></p><p>Most of the functions here are quite trivial. MyStore class is initialised with two properties: a stockInventory which takes in an empty array in its initial state, and a shoppingCart which takes in a shopping cart object. So to start of with an empty store, we just need to do this:</p><pre><strong>var</strong> myStore = Store(stockInventory: [], shoppingCart: ShoppingCart(items: [], totalPrice: 0))</pre><p>To implement the functionalities for adding an item to a shopping cart or a stock inventory for example, it’s just a matter of adding or appending to an array of items that’s tied to that object. Example below:</p><pre><strong>func</strong> addItemStockToInventory(item: Item) {</pre><pre><strong>guard</strong> item.name != &quot;&quot; <strong>else </strong>{</pre><pre><strong>return</strong></pre><pre>}</pre><pre>stockInventory.append(item)</pre><pre>}</pre><p>For me the trickiest part of the project was adding items to cart. Reasons are:</p><ul><li>I need to check if the items are available in stock</li><li>Out of the available items in stock, if one matches the item I ask for, I need to add it to my cart</li><li>If that item is added to the cart, I need to reduce the quantity in available stock depending on the amount added</li><li>Need to find a way to change the value in that available stock array</li></ul><p>All of these things I was able to do and proven to work with some testing, but I agree to some extent that a lot of improvement can be done in the implementation. Especially the last point on changing the value in the array. I was not able to do this, so what I did was I deleted the old item in the array and append a new one with the updated availability and quantity values in stock. Hack-y huh? 💻</p><p>The project is meant to be a bare minimum of domain models, a class and the functions that’s needed for the implementation of adding an item to cart, making a store with items, and checking out a shopping cart.</p><p>If you’d like to initialise a store with empty items, just do this and print:</p><pre><strong>var</strong> myStore = Store(stockInventory: [], shoppingCart: ShoppingCart(items: [], totalPrice: 0))</pre><pre>print(myStore)</pre><p>The output will be:</p><pre>stock: []</pre><p>This applies the same for making an item. And if you’d like to add that item to the store, just call addItemToStockInventory function and pass your desired item.</p><p>Overall, I feel accomplished on the improvements that came along with my learning and how these past object oriented programming exercises has helped me in understanding more object oriented programming concepts and possibly a better programmer. I wouldn’t say the best yet, but definitely better than I was before for sure. Here’s to more learning!</p><p>The code for the whole implementation is <a href="https://github.com/alfitriv/StoreInventory">here</a>.</p><p>Take a look and give me any comments or feedback for improvement :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa45527fc03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Window of Opportunities]]></title>
            <link>https://medium.com/@alfitriv/window-of-opportunities-5dcb5c376ac0?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dcb5c376ac0</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[commencement-speech]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Tue, 28 May 2019 02:39:14 GMT</pubDate>
            <atom:updated>2020-06-10T14:15:19.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Window of Opportunities”: Commencement Speech for ACG School Jakarta 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GjGMzfhBJgwVzoi69xT9gQ.jpeg" /></figure><p>My story in becoming who I am today is far from smooth. I have overcome the highs and lows of turning into an adult and overcoming challenges along the way. From the excitement of graduating high school and passing national exams, to the sadness of not getting an acceptance letter from a prestigious school. From the thrilling moments of receiving my letter of acceptance to attend a university in the States, to devastating ones when I failed some classes. From the excitement of receiving my first job offer as an adult, to losing it very quickly due to an uncontrollable situation.</p><p>Highs and lows, I have experienced many. I hope you will too, and it will be an adventure of a lifetime. The highs will make you more humble, and the lows will make you stronger.</p><p>Graduates, Parents and Faculty, it is an honour to be your keynote speaker today. Never in my life would I imagine myself being a speaker at a school graduation and to congratulate you all for your success. I have been trusted by the graduation committee of this school to deliver a message that I have held dearly throughout my life and career. And hope it will be useful to share to you all today.</p><p>To be honest, I was no cum laude student during my college years and didn’t make it onto the Dean’s list. I am sure all of you will do better than I did at college.</p><p>However, I have overcome a lot of life and career lessons that have really shaped who I am today as a person and as a professional. These lessons have helped me in being a software engineer at Indonesia’s first decacorn company. It also led me to becoming a co-founder for a non-profit organisation. So if you take away anything from my address today, I hope it will be about something that is rarely taught in a textbook.</p><p>I want you all to hear me out and take this key message home today: Find your window of opportunities in life.</p><blockquote>That’s right, window of opportunities.</blockquote><p>There are a lot of sources that states the definition of window of opportunity, but my favourite is this one:</p><blockquote>…a short time period during which a desired action can be taken. Once the window closes, the opportunity may never come again.</blockquote><p>This particular definition is my favourite due to its accuracy. When you take action while encountering a window of opportunity, you will most likely have a desired outcome. Vice versa if you do not take it. For example: When you encounter an opportunity to lead a group of passionate animal rescuers in college, but instead of accepting this opportunity you turn it down due to not wanting to socialise with other people. This is a window of opportunity missed for you to build your resume in becoming a good aspiring veterinarian.</p><p>My address today centres on the window of opportunities I have encountered throughout my life and career. A cherry on top of the technical things you will learn in school. Sure, being on top of your academics is important, but having that extra thing that you do outside of that to enhance your skills is just as important.</p><p>There are three ways where I found consistent windows of opportunity the most:</p><h3>1. Do what you love but stay curious</h3><p>Believe it or not I did not know what to major in when I was at college, but one thing I did know was that technology was the next big thing. My first big window of opportunity was finding out what kinds of industries would take off in the future. Because of this knowledge, I took Information Systems as a major because it seemed to bridge business and technology courses.</p><p>To tell you the truth also, I was really a mediocre student. It’s not that I partied a lot and fool around, but I seemed to have a knack to have a lot of things going on with community involvement along with my studies. That did not stop me from working hard and finally getting an internship at a multinational company before graduation. I was really thrilled.</p><p>My internship extended to a full time role and I worked with the same company for three years in the states. But was I really happy with the work that I was doing? Not really. It was good pay but did not spark joy. I was a quality assurance analyst for a software product and I basically tested the software before it was released. I found out that I was more interested in making software instead of testing it. I found out that my passion for the arts was somehow connected with technology and I learnt more about front end software development. The two industries can somehow blend together. Something so abstract such as art can actually make a good career by utilising technology.</p><p>So every night after work, I’d go home and make my own web projects where I would code a website from scratch. I did this on my own with no real mentor. I was simply doing it for the love of art and a book I found fascinating that taught me web development step by step. I was having so much fun doing it that I would do it until late at night or early morning.</p><p>Graduates, do what you love by exploring your craft and polishing it, but also be open minded about other things that can be bridged between something that has a lot of good prospects in the future. Even when you feel like you have settled on a career, it does not hurt to continuously learn other skills that can really solidify your skills.</p><p>When there was a re-organisation in the company and they had to let my team go, I was devastated, but at the same time relieved. I knew that my heart was not in the role that I had been doing for three years and that this event was actually a chance for me to really go for what I loved. It was meant to be for me to not have this job anymore because who knows how long I would have stayed there and wasted my precious time not being able to develop something that I truly had potential in. I would not have grown to the person I wanted to be. This was indeed my other window of opportunity, ironically. When an obstacle hits you later in life, try to get pass it by looking at every silver lining. It could lead you to your window of opportunity.</p><h3>2. Give back to the community</h3><p>During my first three years of figuring out my passion, I practiced a lot outside of office hours on web development. I spent nights coding HTML, researching on website designs and learning a bit on animation with Javascript, all self taught.</p><p>I also did not let go of my passion in giving back to the community. I started getting really involved in the community while in college, being the president of the Indonesian Students Association. I then was involved in an Indonesian Performing Arts Group and CISV Portland after graduating and would be active in their weekly meetings plus volunteering in their initiatives.</p><p>I then realised that none of these groups had websites where they can establish and market themselves. So I volunteered to make their websites pro-bono, meaning I did it for free. I did this because I wanted to practice and being a junior of a developer with little experience, I really needed this as a portfolio. I was able to make these websites for them and it really lifted my confidence and proved that I could do this as a career.</p><p>Graduates, when you finally have a job at a corporation or start up later on it feels sublime. You feel secure and accomplished, everything that you have worked hard for has finally paid off. This is excellent, but I want to make it a point that no matter how busy or successful you are at work, try and spare some time and give back to the community. Remember that work does not shape who you are as a person, but your skills and what you believe in does.</p><p>The window of opportunity that I got from my service to the community was when I volunteered to make websites for these organisations. The opportunities allowed me to develop a portfolio that I could show off to potential employers plus it simply made me feel good about doing something that I loved for organisations that I really believed in. Not to mention, these opportunities also gave me soft skills such as management, teamwork, communication — something that you might be missing from your day job.</p><h3>3. Keep finding your passion</h3><p>When I finally got a job to code automation tests, the idea excited me and I got quite good at it. The role sparked joy and I did this for about a year, even getting a lead role for it. But something in me still wanted to explore my potential in becoming a front end developer, a longing that I had in the early days of my career. I realised that I did not want to be comfortable and that I was ready to learn more. I wanted to really REALLY love what I was doing, and avoid working half-heartedly.</p><p>It takes years to find the one thing that you love to do and at the same time to also impact the community around you. My advice is to never stop learning along the way and stay hungry for more things that can help you grow even more. For example: Just because you may have never had a chance to dive deep into the world of computer science, it does not mean you are not qualified for it. Try to reach out to groups that study or make projects together in school. To enhance how you can utilise the knowledge and possibly make great things with it. In order to find your passion, you need to be proactive and keep finding that “something” that you love doing.</p><p>Graduates, I encountered a couple of windows of opportunity that I embraced wholeheartedly. These opportunities that I embraced, actually led me to interests that I had never realised before and motivated me to do something outside of my comfort zone. All thanks to the three methods I mentioned earlier: by doing what I love, giving back to the community, and staying curious and open minded on other potential things outside of my comfort zone.</p><p>Windows of opportunity led me to my passion. I am now a full time iOS software developer, making apps for Indonesia’s first decacorn. I even co-founded a non-profit organisation that empowers young women by helping them code. I am living my dream, by doing what I love and giving it back to the community around me. You can too.</p><p>The passion for what you do and what you can contribute to the greater good is what you should always strive for throughout your next chapters in life, be it in college or later on when you work in industry.</p><p>Congratulations class of 2019! Stay curious, humble, hustle always, and keep finding your window of opportunity.</p><p>Thank you and good luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dcb5c376ac0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Your First GitHub Page(s)]]></title>
            <link>https://medium.com/generation-girl/making-your-first-github-page-s-8e8fb4e5c55e?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e8fb4e5c55e</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[girls-generation]]></category>
            <category><![CDATA[stem]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[geng-tutorial]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Mon, 29 Apr 2019 11:52:54 GMT</pubDate>
            <atom:updated>2019-04-29T11:52:54.943Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone and welcome back to our tutorials :) Today I will be showing you on how easy it is to deploy your website on a server and see it live using Github Pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhu_C5JSqC4rZSrOYOylhg.jpeg" /></figure><p>You’d want a GitHub Page because:</p><ul><li>It allows you to host your website directly from your Github repository. To learn how to make a GitHub repository, follow this tutorial <a href="https://help.github.com/en/articles/creating-a-new-repository">here</a>.</li><li>You’d have a url to your site with a given domain name by GitHub. You’d be able to customise your domain name obviously later on once you purchased one from known companies out there but let’s save that for our next tutorial :)</li></ul><p>Let’s get started…</p><ol><li>Set GitHub Pages in your repository</li></ol><p>Go to the settings of your repository and scroll down to a section called GitHub Pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxIYc5AWMt4VBO1w8MyMjg.png" /><figcaption>Settings tab in your repository</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bb8Wg_SBrOG5JNhoMLziCg.png" /><figcaption>GitHub Pages section in settings tab</figcaption></figure><p>This screenshot above shows that I already have my website to enable GitHub Page but go ahead and enable this if you have not done so. You can set the source to master branch. This means that whatever changes that’s pushed in master branch will be the ones that are displayed in your GitHub Page.</p><p>2. Test your URL link</p><p>Once you enable GitHub Pages, GitHub will give you a URL you can access to see your site.</p><p>and Voila! You have successfully created a site that’s deployed on a server!</p><p>For more tutorials like this, subscribe to <a href="https://medium.com/u/fa28c85d730a">Generation Girl</a> and tune in for more. We try to have one post every week!</p><p>References:</p><p><a href="https://pages.github.com/">https://pages.github.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e8fb4e5c55e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generation-girl/making-your-first-github-page-s-8e8fb4e5c55e">Making Your First GitHub Page(s)</a> was originally published in <a href="https://medium.com/generation-girl">Generation Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yuk belajar Git!]]></title>
            <link>https://medium.com/generation-girl/yuk-belajar-git-47d20b7c671e?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/47d20b7c671e</guid>
            <category><![CDATA[girls-generation]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[stem]]></category>
            <category><![CDATA[geng-tutorial]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 03:46:23 GMT</pubDate>
            <atom:updated>2019-04-01T03:46:23.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi all, kali ini aku akan ngajarin version control, yaitu suatu aktivitas dimana kita bisa mengawasi perubahan di file dari proyek-proyek software kita. Alat yang paling umum dipakai untuk version control adalah Git dan di tutorial kali ini, kita akan:</p><ul><li>Membuat proyek baru di GitHub</li><li>Belajar mengaplikasikan proyek kita yang sudah ada dengan Git</li><li>Melihat progress dan perubahan proyek kita di GitHub</li></ul><h3>Apa itu GitHub?</h3><p>Github adalah sebuah website yang menampung version control dengan Git. Alasan kita membuat proyek baru di GitHub adalah untuk melihat progress dan perubahan proyek kita di aplikasi web. Mempunyai eksistensi di GitHub dan mampu menggunakannya adalah suatu skill semua software developer harus miliki.</p><p>Di GitHub kamu dapat melihat proyek-proyek developers lain di seluruh dunia. Jadi mempunyai profile dan proyek-proyek di GitHub adalah suatu cara kamu bisa membangun portofoliomu.</p><blockquote>Mari kita mulai…</blockquote><p><strong>Pre-requisite:</strong></p><ul><li>Kamu perlu menginstall Git di terminal (jika menggunakan Mac) atau command prompt (jika menggunakan Microsoft). Cara untuk menginstall di kedua OS ini bisa dilihat di <a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git">link</a> ini.</li><li>Di tutorial ini aku akan menggunakan terminal dari Mac sebagai contoh.</li></ul><h3>Membuat proyek baru di GitHub</h3><ul><li>Jika kamu belum pernah membuat akun GitHub, bisa dilakukan dengan mengikuti langkah-langkah dari <a href="https://github.com/">link</a> ini.</li><li>Setelah membuat profile, langkah berikutnya adalah untuk membuat proyek baru di GitHub. Caranya dengan meng-klik icon “+” tepat disamping profile picture dan pilih opsi “New repository”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*8694MPSJPqT8FdCgdUahuw.png" /><figcaption>tekan icon “+” untuk memilih opsi “New repository”</figcaption></figure><ul><li>GitHub akan menunjukan <em>page</em> seperti gambar dibawah untuk menambah <em>repository</em> baru atau proyek barumu. Namakan proyekmu sesuai keinginan dan sedeskriptif mungkin. Disini aku akan menamakan <em>repository</em>ku sedemikian rupa karena kebetulan berhubungan dengan tutorial animasi scroll yang telah aku ajarkan di artikel sebelum ini :) Setelah memberi nama, klik <em>create repository</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eV2q5M8ccmrm4LvP8QfCbQ.png" /><figcaption>Namakan proyekmu sedeskriptif mungkin</figcaption></figure><ul><li>Kamu akan di navigasi ke page dimana akan ada instruksi lebih lanjut untuk melalukan beberapa hal. Kebetulan yang kita akan fokuskan di tutorial ini adalah hal ke 2, yaitu menambah repository yang sudah ada.</li></ul><h3>Menambah repository yang sudah ada sebagai Git repository</h3><p>Kita akan membuat proyek yang sudah kita kerjakan selama ini supaya bisa mengaplikasikan Git dan kita bisa memantau perubahan dari file-file di dalamnya di web page GitHub. Caranya sebagai berikut:</p><ul><li>Pergi ke direktori proyekmu di komputermu. Contoh:</li></ul><pre>Documents cd jQuery_exercise</pre><ul><li>Berikan inisialisasi Git di proyekmu.</li></ul><pre>jQuery_exercise git init</pre><ul><li><em>Copy paste</em> code dari GitHub page dari instruksi untuk aktifitas kedua, <em>which is</em> menambah proyek yang sudah dibuat di komputermu.</li></ul><pre>git remote add origin <a href="https://github.com/alfitriv/scrollAnimation.git">https://github.com/alfitriv/scrollAnimation.git</a></pre><ul><li>Proyekmu ini nanti bisa dipantau lewat GitHub web page dengan <em>code</em> ini</li></ul><pre>git push --set-upstream origin master</pre><ul><li>Kamu mungkin berharap ini bisa langsung sukses tapi ternyata ada error seperti ini:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RYvFGJLo8M5G25Yqeoxow.png" /><figcaption>Error setelah kita mengetik git push</figcaption></figure><p>Hal ini terjadi karena ketika kita menginisialisasi proyek kita dengan Git, dia ga tau perubahan apa saja yang kita akan push ke server GitHub.</p><blockquote>Jadi cara benerinnya gimana?</blockquote><p>Wah ini pas banget waktunya kita belajar sedikit mengenai commands di Git.</p><ul><li>Kita mau tau status di proyek kita yang sekarang udah ada Gitnya itu perubahannya apa saja. Kita akan melakukannya dengan code berikut:</li></ul><pre>git status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rF1cHgKDuUrJFVyjF9poJQ.png" /><figcaption>Setelah git status, akan tampil seperti ini</figcaption></figure><ul><li>Git kasih tau kita kalau ada file-file yang belum kita add untuk memasukan ini semua ke server nya GitHub. Jadi cara memasukannya dengan code ini:</li></ul><pre>git add .</pre><ul><li>Ada tanda titik di akhir ini karena ini mengasih tau Git kalau kita ingin memasuki <strong>semua</strong> perubahan yang ada di file-file kita.</li><li>Setelah menambah semua perubahan, kita perlu “mendaftarkan” penambahan perubahan ini. Caranya dengan istilah <em>commit</em>. Kita <em>commit</em> dengan code ini:</li></ul><pre>git commit -m &quot;(pesan yang mau disampaikan)&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*Gow6kHdOTam14Dex7FMFCA.png" /><figcaption>Contoh pesan commit kita</figcaption></figure><ul><li>Setelah kita commit, kita bisa langsung <em>push</em> ke GitHub untuk pertama kalinya dengan code ini:</li></ul><pre>git push -u origin master</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*rEtvsZt8woktuX9wxY572g.png" /><figcaption>Kamu akan tahu push kita sukses jika ada message seperti ini</figcaption></figure><h3>Melihat progress dan perubahan proyek kita di GitHub</h3><p>Setelah kita <em>push</em> <em>code</em> kita untuk pertama kalinya, kita akan langsung lihat file-file yang sudah kita kerjakan di GitHub profile page kita seperti contoh dibawah:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GvFBmdtr4BhVm7Gt0TWKA.png" /><figcaption>Hasil di GitHub page kita</figcaption></figure><p>Cara melihat ini dengan ke profile GitHubmu, pergi ke tab repositories dan kamu bisa lihat repository yang tadi kamu buat sudah ada isinya.</p><p>Selamat! Kamu sudah <em>push</em> proyek pertamamu ke GitHub dengan Git!</p><blockquote>Keren…</blockquote><p>Gimana? Sudah lebih mengertikah menggunakan Git? Ini adalah salah satu tool yang powerful banget untuk memantau perubahan-perubahan di proyekmu dan akan lebih kerasa lagi pentingnya jika nanti ada proyek yang dikerjakan bareng orang-orang lain.</p><p>Semoga kamu suka ya, dan jika ada pertanyaan lebih lanjut jangan sungkan untuk menghubungi aku langsung :)</p><p>Follow <a href="https://medium.com/u/fa28c85d730a">Generation Girl</a> untuk tutorial-tutorial selanjutnya ya! Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47d20b7c671e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generation-girl/yuk-belajar-git-47d20b7c671e">Yuk belajar Git!</a> was originally published in <a href="https://medium.com/generation-girl">Generation Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to have scroll animation to your HTML site]]></title>
            <link>https://medium.com/generation-girl/how-to-have-scroll-animation-to-your-html-site-8d5ce9a0a7c7?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d5ce9a0a7c7</guid>
            <category><![CDATA[geng-tutorial]]></category>
            <category><![CDATA[girls-generation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[stem]]></category>
            <category><![CDATA[jquery]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 10:47:06 GMT</pubDate>
            <atom:updated>2022-09-01T08:13:11.805Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cara Mengaplikasikan Animasi Scroll di HTML Site</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*zlHsy6uDVCQgTFW_xVesMA.jpeg" /><figcaption>image taken from <a href="https://www.sitepoint.com/cool-scroll-animations-made-easy-aos-library/">sitepoint.com</a></figcaption></figure><p>Jadi kamu sudah membuat websitemu dengan HTML dan sekarang lagi mikir untuk kasih user experience yang lebih keren lagi dengan animasi. Di tutorial ini aku akan menunjukanmu caranya mengaplikasikan animasi scroll di HTML site yang sederhana. Kebetulan tutorial ini sempat diajarkan di program Winter Club Generation Girl December 2018 lalu :)</p><p>Kamu bisa mengunduh contoh proyek melalu <a href="https://github.com/alfitriv/scrollEffect">link</a> ini untuk referensi. Tapi aku akan tunjukin kamu juga cara bikinnya dari awal.</p><p>Yuk mulai :)</p><ol><li>) HTML + CSS</li></ol><p>Kamu akan membuat HTML site yang mempunyai gambar dengan jarak yang berjauhan dengan kata-kata di paling bawah site ini.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b0e96fcf1233c4be1feeaa4f7079526b/href">https://medium.com/media/b0e96fcf1233c4be1feeaa4f7079526b/href</a></iframe><p>Penjelasan lebih lanjut mengenai kode diatas:</p><ul><li>Kita mempunyai 2 files: HTML dan CSS</li><li>HTML mempunyai referensi ke custom.css file yang mempunyai rincian bagaimana &lt;div&gt; yang kita gunakan untuk text akan berjarak berapa.</li><li>HTML file ini juga mempunyai referensi ke jQuery dan main.js file yang mempunyai kode animasi kita.</li></ul><p>2.) jQuery script</p><p>Animasi akan berupa seperti ini: ketika kamu menekan gambar, dia akan scroll ke text kita secara perlahan tau dengan waktu tertentu.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37d1677ba863c50ed8d400001bff6f94/href">https://medium.com/media/37d1677ba863c50ed8d400001bff6f94/href</a></iframe><p>Apa yang terjadi diatas:</p><ul><li>Kita mempunyai dua constants: pictureBox dan messageBox. Constants kita mempunyai referensi ke dua elemen di HTML file kita.</li><li>Ada .click function yang kita bisa pakai dari jQuery. Kita menggunakan fungsi ini pada pictureBox constant kita.</li><li>Ada fungi .animate yang bisa kita pakai untuk membuat efek animasi pada property CSS kita. Disini, kita menganimasi elemen di body section dari HTML file kita.</li></ul><p>Jangan lupa save pekerjaan kita dan run index.html file di browser (sisal: Chrome). Kamu mestinya sudah bisa melihat efek scroll setelah menekan gambar.</p><h3>Voila!</h3><p>Kalau kamu senang dengan tutorial ini, ikuti kita ya di <a href="https://medium.com/u/fa28c85d730a">Generation Girl</a> :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d5ce9a0a7c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generation-girl/how-to-have-scroll-animation-to-your-html-site-8d5ce9a0a7c7">How to have scroll animation to your HTML site</a> was originally published in <a href="https://medium.com/generation-girl">Generation Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why We Need to Dress Up at Work]]></title>
            <link>https://medium.com/@alfitriv/why-we-need-to-dress-up-at-work-1292abf39e6a?source=rss-8bc3164360e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1292abf39e6a</guid>
            <category><![CDATA[fashion]]></category>
            <dc:creator><![CDATA[Vania Radmila Alfitri]]></dc:creator>
            <pubDate>Tue, 16 Oct 2018 04:21:43 GMT</pubDate>
            <atom:updated>2018-10-16T04:21:43.410Z</atom:updated>
            <content:encoded><![CDATA[<p>This is an arguably interesting topic due to the nature of work environment nowadays that promotes flexibility in work hours and attire. Especially in the tech world. Most people might think:</p><blockquote>“people should appreciate me for my work instead of for how I look”.</blockquote><p>Believe me, I had the same principle before and would wear training pants every day to work.</p><p>Although the thought of people should appreciate you for your skills instead of your wardrobe is idealistic, there are some behaviors that I notice from people who dress nicely compared to the opposite.</p><ol><li><strong>It’s all about first impressions</strong></li></ol><p>There is an interesting article about a person who took direction suggestions from a stranger who had a suit on instead of from the other that looked a bit more sloppy. Something about the person that had a suit on looked more reliable and just got off from work. Perception that a person who dresses nicely is most probably a reliable person.</p><p>When you meet someone that doesn’t know a thing about you, first impressions are really crucial. Your skills and abilities in your field will be looked, after you actually captured people’s attention and are able to start a conversation. But how to get people’s attention? You probably have to look a little more decent.</p><p>2. <strong>Responsibilities</strong></p><p>My observation tells me that people who dresses more presentable care about every little thing that they do or have, including taking care of themselves. And if you can prove that you care about how presentable you look in the office, you probably care about how you write code. Or how you have to have a spell check before that important presentation. And all these other little things that a stranger would not know about you if you haven’t conversed with him or her at all.</p><p>It’s all about finessing the little things, and sometimes having that skill can gain you bigger roles and responsibilities.</p><p>In summary, there is nothing wrong with dressing up or down in the office. It’s all about what kind of perception you’d like to be perceived by people. And if you do choose to be more dressy at work, it’s not about having the most expensive things or wearing suits everyday either.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1292abf39e6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>