<?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 Felipe Ugarte on Medium]]></title>
        <description><![CDATA[Stories by Felipe Ugarte on Medium]]></description>
        <link>https://medium.com/@felipeugarte?source=rss-24d8c0ebdc05------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Felipe Ugarte on Medium</title>
            <link>https://medium.com/@felipeugarte?source=rss-24d8c0ebdc05------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:59:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@felipeugarte/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[Elevate your version control for DDBB]]></title>
            <link>https://medium.com/@felipeugarte/elevate-your-version-control-for-ddbb-4f8b4c3db84c?source=rss-24d8c0ebdc05------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f8b4c3db84c</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[debate]]></category>
            <dc:creator><![CDATA[Felipe Ugarte]]></dc:creator>
            <pubDate>Tue, 10 May 2022 15:33:29 GMT</pubDate>
            <atom:updated>2022-05-10T15:43:11.695Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my story about a problem I had and how it helped me to learn new thinks, related to use GIT or version control for all the DDBB changes.</p><p>I don’t wan’t to bore you with all the technical details of the implementation, this only to tell my story.</p><h3>The problem</h3><p>We where working with too many DDBB on Oracle (150+ active schemas in the last 2 years), all the process of push all changes to production was made by hand… YES!!! BY HAND!!!</p><p>Some of the problems we had:</p><ul><li>We had a deploy time from 10 min to 90 min or more. 10 mmin when we did’t had any problem, but most of the time was like 90 min or more.</li><li>It was very hard to find the problems, need to check all the code.</li><li>Changes implementes in the wrong schema.</li><li>The code for all the changes was send from Devs to Operation (for the push to production) as URL to be downloaded, if it contains only 1, 2 or 3 files was no big deal, but some times it was 150 files and was easy to implement it in the wrong order.</li><li>The rollback was made with the backup of the DDBB, so it took too long and you can lose some data changes if any software used it.</li><li>It something failed, with no roll back (only the backup), the devs neded a long time to find the problem.</li><li>The new changes from one DEV can undo changes from another DEV.</li><li>If the production version of the DDBB had a hot fix, any production push undo that fix.</li><li>Software development with agile methods and pipelines for fast push to production environment need to speed up the database changes to get to production too.</li></ul><h3>The search for a solution</h3><p>I found that there are software to help, you can have all the code of the modifications to the DDBB (not the changes on the data, the changes to the DDBB structure). There are several options but my first approach was to look for a software that can work with as many DDBB types as posible (since we had Oracle, My SQL, María DB, Mongo DB, Mycrosoft SQL Server, and some others colors…</p><p>I found only 3software that can manage all the DDBB we needed:<br>- Flyway<br>- Redgate Deploy<br>- Liquibase</p><h4>Flyway</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*OZLj-IHrTkh2Puzr9KdqLg.png" /><figcaption>From Redgate</figcaption></figure><p>Flyway is from Redgate and have good DDBB compatibility (21 types). It has 2 version, C<strong>omunity</strong> (free) and T<strong>eams Edition</strong>, the cost for the last one is $3.000 for 10 schemas a year.</p><p>The support from the company when I needed help for my evaluation and testing of the software was very poor, they didn’t whant to do a demo and only send my a very unusaful and online documentation, I didn’t got any help at all.</p><h4>Redgate Deploy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*nXAkiYoVauq_iYpL52MhmQ.png" /><figcaption>From Redgate</figcaption></figure><p>This is from Redgate aswell and it is too expensive, so I didn’t continue trying this software.</p><h4>Liquibase</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*6rk6runP_2Z_d295LxuqZA.png" /><figcaption>From Liquibase</figcaption></figure><p>Liquibase also has a good DDBB compatibility (33 types). It has 4 versions, the community and 3 others. I tested the Pro (cheapest) version, it is $33 per schema per month with a minimum of 5 schemas (need to pay for a hole year).</p><p>The help from the sales team was great, they send all the information, had 2 demos, one of the engineers was helping me everyday for a long time and teach me all I neede to know.</p><h3>The solution</h3><p>Liquibase was my option, the help from the sales teem was everything to me (and the large number of DDBB compatibility).</p><p>I has able to implement:</p><ul><li>A Pipeline on Gitlab</li><li>GitFlow on Gitlab</li><li>Before any deploy it able to do diferent test to avoid any problem</li><li>Take snapshots after any deploy</li><li>Comparisons (diff) from one environment to the next, to see if there are any change that I don’t have in my branch</li><li>Always had the rollback code to avoid using a backup</li><li>A code was on the repository, we can check any prior changes</li><li><strong>We had a new deploy time around 3 to 5 min.</strong></li><li><strong>Now we know exactly what change had a problem, no need to check all the code to try to find it.</strong></li><li>and many more!!!</li></ul><p>Note 1: the cost where at the moment of my evaluation, December 2021.</p><p>Note 2: I don’t intend to sell liquibase, only to share my experience. Please see what works for you best.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f8b4c3db84c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The importance of documentation]]></title>
            <link>https://medium.com/@felipeugarte/the-importance-of-documentation-29b77e7243fd?source=rss-24d8c0ebdc05------2</link>
            <guid isPermaLink="false">https://medium.com/p/29b77e7243fd</guid>
            <category><![CDATA[xcode-documentation]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Felipe Ugarte]]></dc:creator>
            <pubDate>Tue, 03 May 2022 15:53:04 GMT</pubDate>
            <atom:updated>2022-10-18T13:56:51.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*-BkjzwQJg9ri_381n_x-xw@2x.png" /><figcaption>Image from Apple DocC documentation</figcaption></figure><p>How many times did you try to continue your code and forgot what you did? Did it take more time to understand your own code than to write it? I had this problems many times, until I learned to write some documentation for myself</p><p>At first I used only code comments like “// this function…”, but now Apple implemented a huge help for us, DocC!</p><p>Remember that if you want to get a job as a developer, documentation is mandatory. This is not only for yourself, but for anyone that want to improve your code, add more funtionalities or when they tray to find a bug.</p><h3>DocC to the rescue</h3><ul><li>First, add a Documentation Catalog file:</li></ul><figure><img alt="Add a new file using: File, New, File, Documentation Catalog" src="https://cdn-images-1.medium.com/max/1024/1*_KcbekLK2nPoya5A52H5UQ.png" /><figcaption>File/ New/File… or command + N</figcaption></figure><h4>Summary</h4><p>Now when you add a comment, you have to add <strong>/// </strong>(yes, one more):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYFa87dpVeFWY1vfjZsn2w.png" /></figure><p>Also, if you prefer, you can use this version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOtgF9rlibxoiKZEdg4N-Q.png" /></figure><h4>Discussion</h4><p>Now you need to add with additional information that you want to add:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e26oH88AOdgTE8CLLpTnjQ.png" /></figure><h4>Code example</h4><p>Now you can add some code example: with <strong>```swift … ```:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIlR_h9Mwks8s5hlKEJ5Kg.png" /></figure><h4>Quick help with the summary, description and code example</h4><p>Now, if you look at the quick help of the struct, you will see all the information you have added (option + right click):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*yQjW5HRG30jt6irS9MJIHA.png" /></figure><h4>Parameters</h4><p>When you have, for example a function with parameters, you can add some information like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBuHugQ1-61kDL_xYd6TRg.png" /></figure><p>Note: if you only have one parameter, you need to use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*delzvsY6U0oj_50aJsBoDA.png" /></figure><h3>Create the documentation</h3><p>Now, to finally create the documentation page, select Build Documentation from the product menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*9YoE_RMRS7DyZXjSNQGa-A.png" /></figure><p>Here you will find all the information you have added to the code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TX85M94iMDAMiK3ho_ierw.png" /></figure><h3>Pro tip</h3><p>Actually, top help with the documentation, you can use command + right click on the function or anyting where you want to add a documentation and then select:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tpu9XCZItUkG3ALQKb8kA.png" /></figure><h3>Related Apple documentation</h3><p>SlothCreator: Building DocC Documentation in Xcode:<br><a href="https://developer.apple.com/documentation/xcode/slothcreator_building_docc_documentation_in_xcode">https://developer.apple.com/documentation/xcode/slothcreator_building_docc_documentation_in_xcode</a></p><p>Elevate your DocC documentation in Xcode: <a href="https://developer.apple.com/videos/play/wwdc2021/10167/">https://developer.apple.com/videos/play/wwdc2021/10167/</a></p><h3>Thanks!</h3><p>Thank you for reading this post, if you have any comments please add it with the comment button below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29b77e7243fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Swift]]></title>
            <link>https://medium.com/@felipeugarte/learning-swift-9683c44b63e5?source=rss-24d8c0ebdc05------2</link>
            <guid isPermaLink="false">https://medium.com/p/9683c44b63e5</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Felipe Ugarte]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 18:44:09 GMT</pubDate>
            <atom:updated>2022-03-17T18:44:09.812Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello! I&#39;m learning to code with swift for some time now and I would like to write about my experience so far.</p><p>I have done some courses over <a href="https://www.udemy.com/">Udemy</a> or other places, none of them give me a good comprehension of what I was doing, but I had to keep trying!!</p><h3>SwiftUI Experience</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8Wa9hRycvcQlV0qoCGWtQ.png" /></figure><p>In 2019, when SwiftUI was released, I decided to give it a try and started looking for some good courses. I ended with <a href="https://designcode.io/">Design+Code</a> and I have found great information for learning to code from the UI/UX point of view and using SwiftUI. Now I regulary go back there to look for something that I don&#39;t remember but I know that I have done before.</p><p>I found SwiftUI much easyer compared to UIKit and I recommend it as a starting point. Now I&#39;m on another swift course with mentoring and all the knoledge from SwiftUI and going again from the fundamentals (properties and methods), is helping me to go much better now on UIKit.</p><h3>UIKit, a must</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syNIZ4X1NKsOPkhNKk5ifQ.png" /></figure><p>At the moment UIKit is a must, if you want to work as a developer, most of the code may be on UIKit (and some on Objective C).</p><p>Now, doing more exercises with UIKit and been used it before learning SwiftUI, I can understand a lot more of what&#39;’ happening &quot;under the hood&quot; and some times is like &quot;I think something like this may work…&quot;and I find a way to do what I need.</p><h3>Some differences between UIKit and SwiftUI</h3><ol><li><strong>The code:</strong></li></ol><p><strong>UIKit:</strong> The Imperative code is a lot more complex, need to se the &quot;Big Picture&quot; to understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*RvzT2fJ-XvQIHXFkBPaHXw.png" /><figcaption>Example from bluelabellabs.com</figcaption></figure><p><strong>SwiftUI:</strong> here we use a Declaragive code, where you can find it much more easer to reed and understand as a beginer on programing like me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*_Y7TyusPCMeaR_E88Wz0_w.png" /><figcaption>Example from bluelabellabs.com</figcaption></figure><p><strong>2. Working with objects:</strong></p><p><strong>UIKit:</strong> Need to reference the objects on the UI to be able to trigger actions or change properties (<strong>IBOutlets</strong> and <strong>IBActions</strong>).</p><pre><strong>// segues for changing properties like the text color</strong><a href="http://twitter.com/IBOutlet"><br>@IBOutlet</a> var labelGroupName: [UILabelView]!<br>@IBOutlet var singlelabel: UILabelView</pre><pre><strong>//Button action de segue</strong><br>@IBAction func someButton(_ sender: Any) { someFunc() }</pre><p><strong>SwiftUI:</strong> You add all the view items or objects on the code. If you add (for example a label, image or button) on the preview, all the code related will be added for you, like this:</p><pre>Button(action: {<br>    isPresented = <strong>true<br></strong>}) {<br>    Label(“Add Item”, systemImage: “plus”)<br>}</pre><p><strong>3. View&#39; Life Cycle</strong></p><p>Lifecycle is the series of events that happen from the creation of a view to it&#39;s destruction.</p><p><strong>UIKit:</strong> you have many options to see when do you need to do something…</p><ul><li>loadView</li><li>viewWillAppear</li><li>ViewDidLoad</li><li>viewDidAppear</li><li>viewWillLayoutSubviews</li><li>viewDidLayoutSubviews</li><li>viewWillDisappear</li><li>viewDidDisappear</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*esYCxF2EzrXjRDIylUgSuA.png" /><figcaption>From candost.blog</figcaption></figure><p><strong>SwiftUI:</strong> Most of the time I don&#39;t need to update the view, the iOS manage it by itself, whenever some tipe of property change, he view is updated. Here you have 3 phases :</p><ul><li>Appearing</li><li>Updating</li><li>Disappearing</li></ul><h3>Final Thoughts</h3><p>I ask you, if you have a different approach that helped you on the process of learning to code with Swift, or you think I&#39;m wrong, please let me know why with your comments. The learning process is different for everyone but sharing can help as all!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9683c44b63e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>