<?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 Layla Emanuele on Medium]]></title>
        <description><![CDATA[Stories by Layla Emanuele on Medium]]></description>
        <link>https://medium.com/@laylaemanuele?source=rss-45ede0695ddf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5UI8uVr4nIqafdKjTsatcg.jpeg</url>
            <title>Stories by Layla Emanuele on Medium</title>
            <link>https://medium.com/@laylaemanuele?source=rss-45ede0695ddf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:11:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laylaemanuele/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[Programming logic— Swift #eng]]></title>
            <link>https://medium.com/@laylaemanuele/programming-logic-swift-eng-ddcc029a4c19?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddcc029a4c19</guid>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[collections-in-swift]]></category>
            <category><![CDATA[dictionary]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 02:52:32 GMT</pubDate>
            <atom:updated>2024-07-12T02:52:32.173Z</atom:updated>
            <content:encoded><![CDATA[<h3>Constants and Variables</h3><p>We declare variables using <em>var</em> and constants using <em>let</em></p><blockquote>Var can be changed, while let cannot be changed later in scope</blockquote><p>You can declare multiple constants or multiple variables on a single line, separated by commas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*9JC1E0XPhTqMLQ0Zh3NoXg.png" /></figure><p>Variable declarations have several forms that declare different types of <em>named and mutable values</em>, including stored and computed variables and properties, stored variables and property observers, and static variable properties. The appropriate form to use depends on the scope in which the variable is declared and the type of variable you intend to declare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*9rPdUgTP98IJfJgrYvwLig.png" /></figure><blockquote><strong>Is there any advantage to using constants instead of variables?</strong><br>Both are necessary, constants have their advantages when it comes to a value that will not be changed throughout the code, but variables are necessary when that value will be modified throughout the compilation.</blockquote><h3>Comments</h3><p>// - Just one line</p><p>/*...*/ - Multiple commented lines</p><p>/// - To document</p><h3>Primitive Types</h3><p><strong><em>Named type</em></strong> is for classes, structures, enumerations, and protocols.<br><strong><em>Compound type</em></strong> is an unnamed type defined by the language itself.<br> <br><a href="https://docs.swift.org/swift-book/documentation/the-swift-programming-language/types/"><strong><em>The types</em></strong></a> that are known as primitives in other languages ​​are named types, defined and implemented in the Swift standard library.</p><h3>Operators</h3><blockquote>An operator is a special symbol or phrase that you use to check, change, or combine values.</blockquote><p>Swift supports operators you may already know from languages ​​like C and improves several features to eliminate common coding errors. The assignment operator (=) does not return a value, to prevent it from being used by mistake when the equals operator (==) is intended. Arithmetic operators (+, -, *, /, %, and so on) detect and disallow value overflow, to avoid unexpected results when working with numbers that become larger or smaller than the allowed value range of the type that stores them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*8DEE9keNnSBGRWv5I6pGJQ.png" /></figure><p><strong>What types of operators exist in Swift?</strong><br><em>Unary:</em> operate with a single target. Example ! Not<br><em>Binary:</em> operate between two targets, such as + -<br><em>Ternary</em>: there is a condition for that to occur, there are three targets. Example: (a ? b : c)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*WbYaYLF4yNkIgMKeNSncmg.png" /></figure><h3>String Interpolation</h3><p>You can also use strings to insert constants, variables, literals, and expressions into longer strings, in a process known as string interpolation. This makes it easy to create custom string values ​​for display, storage, and printing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yLpZWXAboT-N_A2lshEqhw.png" /></figure><h3>Conditions</h3><p>In Swift there are the following conditionals<strong><em> if, if let </em></strong>(used together with optionals),<strong><em> if case let</em></strong> (used together with enums), <strong><em>switch, switch case</em></strong> (used with enums). Each repetition structure has its own declaration, following its own rules for how the loop works.</p><h3>Control Flow</h3><p>Swift provides a variety of <a href="https://docs.swift.org/swift-book/documentation/the-swift-programming-language/controlflow/">control flow</a> statements. This includes while loops to perform a task multiple times; if, guard, and switch statements to execute different branches of code based on certain conditions; and instructions such as breaking and continuing to transfer the flow of execution to another point in your code.</p><h3>Loops</h3><p>They are repetition structures in which a certain command is carried out until it breaks, whether based on a conditional or a forced break using breaks or returns.</p><h4>Foreach / forin?</h4><p><strong>For in</strong> works like traditional for and also with arrays, it accepts optionals.<br><strong>Foreach</strong> is a method in Swift.</p><p>The<a href="https://stackoverflow.com/questions/45333177/when-to-use-foreach-instead-of-for-in"> main advantage</a> of forEach is realized when you are doing functional programming, you can add it to a chain of functional calls, without having to save the previous result in a separate variable that you would need if you used the for-in syntax.</p><p>Using<strong><em> for in</em></strong> gives us a much greater degree of control over an iteration while using <strong><em>forEach </em></strong>allows us to take advantage of the power of closures and first-class functions, even though we cannot stop an iteration once it has started.</p><p>Examples:<br><em>For in</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*raE1rIlINHcS0_ZKH0cd4w.png" /></figure><p><em>ForEach</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kN0QQaY0pAWZmONPw3fHRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*YeB170qE_oOkdEa7Czh_LQ.png" /></figure><h4>Breaking a loop</h4><p>To continue a<a href="https://www.hackingwithswift.com/read/0/9/loops"> loop </a>we use continue: Whereas exiting a loop stops execution immediately and continues directly after the loop, continuing a loop just exits the current iteration of the loop — it will jump back to the top of the loop and start from there. so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*O5QavUH3YUA8nen08RKQ5Q.png" /></figure><p><strong>Break </strong>is used when inside a while or a for to exit execution when you determine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*4KPENhMrVeA9PB6r_Wfq6w.png" /></figure><h3>Where</h3><p>It is used as a <a href="https://docs.swift.org/swift-book/documentation/the-swift-programming-language/controlflow/">condition </a>within the for in, switch, as an additional conditional to be evaluated.</p><h3>Functions</h3><p>What are <strong>expressions </strong>in a programming language?</p><p>An expression in programming languages ​​is a combination of values, variables, operators, and function calls that are interpreted (evaluated) according to the rules of precedence and associativity particular to a given programming language.</p><blockquote>In Swift, there are four types of expressions: prefix expressions, binary expressions, primary expressions, and postfix expressions. Evaluating an expression returns a value, causes a side effect, or both.</blockquote><p>Functions are self-contained blocks of code that perform a specific task. You give a function a name that identifies what it does, and that name is used to “call” the function to perform its task when necessary.</p><p><strong>What is the difference between function and method?</strong></p><p><em>Methods are functions associated with a specific type.</em> Classes, structures, and enumerations can define instance methods, which encapsulate specific tasks and functionality for working with an instance of a given type.</p><p><em>Functions are not specific to a class or type</em>, you can create a function and use it without depending on the instance of a method.</p><p><strong>What is a function </strong><a href="https://www.hackingwithswift.com/read/0/11/functions"><strong>return</strong></a><strong>?</strong><br>The return is a value of a specific data type, this return occurs at the end of the function execution.</p><p><strong>How to return in a function?</strong><br>To create a function with return, simply put a -&gt; and enter the return type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*r9hBILVeZBMsjLvenFbggQ.png" /></figure><p><strong>What are the arguments and parameters?</strong><br>Arguments are what are passed into the function. <br>Example:<br>func(1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*5gKr3fUl1PWG_luRHH-rbQ.png" /></figure><p>Parameters are what the function will receive. <br>Example:<br>void func(Int i) // declared a parameter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*vSVouAcKY7RsEGO9-RID5Q.png" /></figure><h3>Type-safe</h3><p>A type-safe language encourages you to be clear about the types of values ​​your code can work with. If part of your code requires a String, you cannot pass an Int by mistake. Because Swift is type-safe, it performs type checks when compiling your code and flags any incompatible types as errors. This allows you to detect and fix errors as early as possible in the development process.</p><h3>Type Inference</h3><p>Type inference allows a compiler to deduce the type of a particular expression automatically when compiling your code, simply by examining the values ​​you provide.<br>Example:<br>var a = “String”<br>He will understand that the type of variable a will be String.</p><h3>Optionals</h3><p>They are variables in which their value is optional, they would have a complete absence of value, with neither 0 nor null.</p><p>I indicate that I want an optional using the ? after the data type name.</p><p><em>It is a postfix expression</em></p><h4>Force-unwrapping</h4><p>It is a forced unwrapping of an optional variable, it is generally advised not to perform this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*AEcSLPmrUuoZ3IYQowo0Jw.png" /></figure><h3>Collections</h3><p>Swift provides three main collection types known as arrays, sets and dictionaries to store collections of values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5b9TPm5RO1s8Pzcm.png" /></figure><h4>Array</h4><p>Arrays are ordered collections of values ​​of the same type, and store values ​​of the same type in an ordered list. The same value may appear multiple times in different positions.</p><p>Within an array we have some methods to use, as the example below shows .append</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*uMIOudnKvs77qQoI8oIiDg.png" /></figure><p>Checks if the array is empty.isEmpty</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*cx6WDJQRAeGX1lDxbq0Bpw.png" /></figure><p>There are methods for removing elements, such as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*HPosZpSSkgd11TiYuh9KHA.png" /></figure><p>If in doubt what each method does, you can see their description by going over them with the arrows.</p><p>Sets are <strong>unordered collections</strong> of unique values.</p><p><strong>Dictionaries </strong>are unordered collections of <strong>key-value</strong> associations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*0_93VbYQ2NUlQfX9fK0Kzw.png" /></figure><p>Note: <br><strong>Tuples</strong></p><p>A tuple is a constant or variable that can accommodate a group of values ​​that can be of different data types and composed of a single value. In easy words, a tuple is a structure that can contain multiple values ​​of distinct data types.</p><blockquote>Difference between tuples and arrays/collections is that the values ​​stored in a <strong>tuple do not need to be of the same type.</strong></blockquote><p><strong><em>Links:<br></em>💬 </strong><a href="https://www.programiz.com/swift-programming/comments">https://www.programiz.com/swift-programming/comments</a><br><strong>💬 </strong><a href="https://www.youtube.com/watch?v=-jJ8atgqTGs">https://www.youtube.com/watch?v=-jJ8atgqTGs</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/BasicOperators.html">https://docs.swift.org/swift-book/LanguageGuide/BasicOperators.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html">https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html</a><br><a href="https://pt.wikipedia.org/wiki/Express%C3%A3o_(computa%C3%A7%C3%A3o)#:~:text=Uma%20express%C3%A3o%20em%20linguagens%20de,%2C%20produz%20(retorna)%20um%20valor">https://pt.wikipedia.org/wiki/Express%C3%A3o_(computa%C3%A7%C3%A3o)#:~:text=Uma%20express%C3%A3o%20em%20linguagens%20de,%2C%20produz%20(retorna)%20um%20valor</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/ReferenceManual/Expressions.html">https://docs.swift.org/swift-book/ReferenceManual/Expressions.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/Functions.html">https://docs.swift.org/swift-book/LanguageGuide/Functions.html</a><br><strong>💬 </strong><a href="https://swiftly.dev/">https://swiftly.dev/</a><br><strong>💬 </strong><a href="https://swiftly.dev/switch">https://swiftly.dev/switch</a><br><strong>💬 </strong><a href="https://www.hackingwithswift.com/read/0/9/loops">https://www.hackingwithswift.com/read/0/9/loops</a><br><strong>💬 </strong><a href="https://swiftly.dev/foreach">https://swiftly.dev/foreach</a><br><strong>💬 </strong><a href="https://medium.com/@vinigodoy/opcionais-em-swift-7aae7877085">https://medium.com/@vinigodoy/opcionais-em-swift-7aae7877085</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/ReferenceManual/Expressions.html">https://docs.swift.org/swift-book/ReferenceManual/Expressions.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/OptionalChaining.html">https://docs.swift.org/swift-book/LanguageGuide/OptionalChaining.html</a> <br><strong>💬 </strong><a href="https://quaggie.github.io/swift-optionals">https://quaggie.github.io/swift-optionals</a><br><strong>💬 </strong>http://<a href="http://equinocios.com/optionals/2016/03/25/optionals-e-o-gato-de-schrodinger/#:~:text=O%20force%20unwrap%20">equinocios.com/optionals/2016/03/25/optionals-e-o-gato-de-schrodinger/#:~:text=O%20force%20unwrap%20</a>(ou%20desembrulho,estiver%20errado%20o%20app%20crasha.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddcc029a4c19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is MVC? What are the pros and cons? #eng]]></title>
            <link>https://medium.com/@laylaemanuele/what-is-mvc-what-are-the-pros-and-cons-eng-fa75eaeb7558?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa75eaeb7558</guid>
            <category><![CDATA[mvc-architecture]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 22:18:48 GMT</pubDate>
            <atom:updated>2024-07-11T22:18:48.452Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is MVC?</h3><p>Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components is built to handle specific aspects of developing an application.</p><h4>Model</h4><p>The Model component corresponds to all the data-related logic that the user works with. This could represent data being transferred between the View and Controller components or any other data related to business logic. For example, a Customer object will retrieve customer information from the database, manipulate it, and update it back to the database or use it to render data.</p><h4>View</h4><p>The View component is used for all of the application’s UI logic. For example, the client view will include all UI components such as text boxes, drop-down lists, etc. with which the end user interacts.</p><h4>Controller</h4><p>Controllers act as an interface between the Model and View components to process all incoming business logic and requests, manipulate data using the Model component, and interact with the Views to render the final output. For example, the Customer controller will handle all interactions and inputs from the Customer View and update the database using the Customer Model. The same controller will be used to view Customer data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIPq9X6cJYi6J6r84zSmeQ.png" /></figure><h3>Advantages and disadvantages</h3><h4>Advantages</h4><ul><li>helps organize the interface layer</li><li>ease of use</li><li>smaller amount of code compared to other modes</li></ul><h4>Disadvantages</h4><ul><li>It always seems like one of the layers is doing too much</li><li>does not resolve the issue of Networking, Passing, and routing</li><li>low testability</li><li>controller very full of functions</li></ul><h4>UIKit example of a model that can be adopted</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfdd3a7daa698b4a73ef08f531c619d5/href">https://medium.com/media/bfdd3a7daa698b4a73ef08f531c619d5/href</a></iframe><h4>SwiftUI example of a model that can be adopted</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b61491b9c86e253c6b949db0a9c371e8/href">https://medium.com/media/b61491b9c86e253c6b949db0a9c371e8/href</a></iframe><p>Links:<br><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/">https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/</a><br><a href="https://www.tutorialspoint.com/mvc_framework/mvc_framework_introduction.htm">https://www.tutorialspoint.com/mvc_framework/mvc_framework_introduction.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa75eaeb7558" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Padrão de commits e branches — sugestão]]></title>
            <link>https://medium.com/@laylaemanuele/padr%C3%A3o-de-commits-e-branches-sugest%C3%A3o-c16602df6d76?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16602df6d76</guid>
            <category><![CDATA[semantic-commits]]></category>
            <category><![CDATA[conventional-commits]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Wed, 03 May 2023 04:01:44 GMT</pubDate>
            <atom:updated>2024-07-12T02:59:31.085Z</atom:updated>
            <content:encoded><![CDATA[<h3>📌Padrão de commits e branches — <strong><em>sugestão #ptBR</em></strong></h3><h3>Padrão de branches:</h3><p>Para este módulo será adotado o seguinte padrão para a criação de branches (o que é)/numerodatarefa-doquesetrata</p><p><strong>Exemplo 1:</strong></p><p>feat/númeroDaHistoriaNoJira-create-new-module</p><p><strong>Exemplo 2:</strong></p><p>feat/MAC–2020-create-new-module</p><p>Então sempre seguirá vindo o prefixo do que se trata, o número da história ou tarefa e depois o que será feito de modo sucinto em inglês separado por traço. O termo utilizado no começo (onde está o feat, no exemplo acima) pode ser as seguintes variações:</p><p><strong>release:</strong> para geração de versões;</p><p><strong>ci:</strong> Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs);</p><p><strong>docs:</strong> referem-se a inclusão ou alteração somente de arquivos de documentação;</p><p><strong>feat:</strong> tratam adições de novas funcionalidades ou de quaisquer outras novas implantações ao código;</p><p><strong>fix: </strong>essencialmente definem o tratamento de correções de bugs;</p><p><strong>perf:</strong> uma alteração de código que melhora o desempenho;</p><p><strong>refactor:</strong> tipo utilizado em quaisquer mudanças que sejam executados no código, porém não alterem a funcionalidade final da tarefa impactada;</p><p><strong>style:</strong> Alterações referentes a formatações na apresentação do código que não afetam o significado do código, como por exemplo: espaço em branco, formatação, ponto e vírgula ausente etc.);</p><p><strong>test:</strong> Adicionando testes ausentes ou corrigindo testes existentes nos processos de testes automatizados (TDD);</p><p><strong>chore:</strong> Atualização de tarefas que não ocasionam alteração no código de produção, mas mudanças de ferramentas, mudanças de configuração e bibliotecas que realmente não entram em produção;</p><p><strong>env:</strong> basicamente utilizado na descrição de modificações ou adições em arquivos de configuração em processos e métodos de integração contínua (CI), como parâmetros em arquivos de configuração de containers;</p><h3>Padrão de commits:</h3><p>Ao commitar será utilizado o seguinte padrão o (prefixo: número da tarefa): (o que foi feito)</p><p><strong>Exemplo 1</strong>:</p><p>(feat: númeroDaHistoriaNoJira): (create a new module to business pj transfers pix received)</p><p>O prefixo utilizado no lugar feat segue o mesmo padrão listado acima, então para cada commit que for feito deverá levar em conta do que se trata a alteração e colocar o prefixo de acordo com a explicação acima.</p><p><strong>Exemplo 2:</strong></p><p>Supondo que você já tenha subido todas as suas alterações mas depois de subir percebeu que tem alguns erros de formatação ou indentação, o prefixo utilizado seria o style, logo ficaria então:</p><p>(style: númeroDaHistoriaNoJira): (remove extra spaces and fix the indentation)</p><h3>📌Commit and branch pattern — suggestion #eng</h3><h3>Branch pattern:</h3><p>For this module, the following pattern will be adopted for creating branches (what it is)/number of task-doquesetrata</p><p><strong>Example 1:</strong></p><p>feat/numberOfHistoryInJira-create-new-module</p><p><strong>Example 2:</strong></p><p>feat/MAC–2020-create-new-module</p><p>Then the prefix of what it is about will always follow, the number of the story or task, and then what will be done succinctly in English separated by a dash. The term used at the beginning (where the feat is, in the example above) can be the following variations:</p><p><strong>release: </strong>for generation of versions;</p><p><strong>ci:</strong> changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs);</p><p><strong>docs:</strong> refer to the inclusion or alteration of documentation files only;</p><p><strong>feat:</strong> handle additions of new features or any other new implementations to the code;</p><p><strong>fix: </strong>essentially define the handling of bug fixes;</p><p><strong>perf:</strong> a code change that improves performance;</p><p><strong>refactor:</strong> type used in any changes that are made to the code, but do not alter the final functionality of the impacted task;</p><p><strong>style:</strong> changes relating to formatting in the presentation of the code that do not affect the meaning of the code, such as white space, formatting, missing semicolons, etc.);</p><p><strong>test:</strong> adding missing tests or correcting existing tests in automated testing processes (TDD);</p><p><strong>chore:</strong> updating tasks that do not cause changes to the production code, but tool changes, configuration changes, and libraries that do not actually go into production;</p><p><strong>env:</strong> basically used to describe modifications or additions to configuration files in continuous integration (CI) processes and methods, such as parameters in container configuration files;</p><h3>Commit pattern:</h3><p>When committing, the following pattern will be used (prefix: task number): (what was done)</p><p><strong>Example 1</strong>:</p><p>(feat: numberOfHistoryInJira): (create a new module to business pj transfers pix received)</p><p>The prefix used instead of feat follows the same pattern listed above, so for each commit that is made, you must take into account what the change is about and place the prefix according to the explanation above.</p><p><strong>Example 2:</strong></p><p>Supposing you have already uploaded all your changes but after uploading you realize that you have some formatting or indentation errors, the prefix used would be style, so it would look like this:</p><p>(style: numberOfHistoryInJira): (remove extra spaces and fix the indentation)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16602df6d76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lógica de Programação — Swift]]></title>
            <link>https://medium.com/@laylaemanuele/l%C3%B3gica-de-programa%C3%A7%C3%A3o-swift-292fa3314ebe?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/292fa3314ebe</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[logic-programming]]></category>
            <category><![CDATA[prgramming]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Fri, 20 May 2022 20:39:46 GMT</pubDate>
            <atom:updated>2024-07-12T02:53:03.160Z</atom:updated>
            <content:encoded><![CDATA[<h3>📌Lógica de Programação — Swift #ptBR</h3><h3>Constantes e Variáveis</h3><p>Para variáveis declaramos usando <strong><em>var</em></strong> e constantes usando <strong><em>let</em></strong>.</p><blockquote>Var pode ser mudada, enquanto o let não é possível mudar depois no escopo.</blockquote><p>Você pode declarar várias constantes ou várias variáveis ​​em uma única linha, separadas por vírgulas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*9JC1E0XPhTqMLQ0Zh3NoXg.png" /></figure><p>As declarações de variáveis ​​têm <strong>várias formas que declaram diferentes</strong> tipos de <em>valores nomeados</em> e mutáveis, incluindo variáveis ​​e propriedades armazenadas e computadas, variáveis ​​armazenadas e observadores de propriedade e propriedades de variáveis ​​estáticas. A forma apropriada a ser usada <strong>depende do escopo em que a variável é declarada </strong>e do tipo de variável que você pretende declarar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*9rPdUgTP98IJfJgrYvwLig.png" /></figure><blockquote><strong>Existe alguma vantagem em usar constantes ao invés de variáveis?</strong><br>Ambas são necessárias, constantes tem suas vantagens quando se trata de um valor que não será mudado ao longo do código, porém as variáveis são necessárias quando aquele valor será modificado ao longo da compilação.</blockquote><h3>Comentários</h3><p>// - Apenas uma linha</p><p>/*...*/ - Múltiplas linhas comentadas</p><p>/// - Documentar</p><h3>Tipos Primitivos</h3><p><strong><em>Named type</em></strong> é para classes, structures, enumerations, protocols.<br><strong><em>Compound type</em></strong> é um tipo sem nome definido pela própria linguagem. <br> <br><a href="https://docs.swift.org/swift-book/ReferenceManual/Types.html"><strong>Os tipos</strong></a> que são conhecidos como primitivos em outras linguagens são tipos nomeados, definidos e implementados na biblioteca padrão do Swift.</p><h3>Operadores</h3><blockquote>Um operador é um símbolo ou frase especial que você usa para verificar, alterar ou combinar valores.</blockquote><p>O Swift oferece suporte aos operadores que você talvez já conheça em linguagens como C e aprimora vários recursos para eliminar erros comuns de codificação. O operador de <strong>atribuição</strong> (=) não retorna um valor, para evitar que seja usado por engano quando o operador <strong>igual</strong> a (==) é pretendido. Operadores <strong>aritméticos</strong> (+, -, *, /,% e assim por diante) detectam e não permitem o estouro de valor, para evitar resultados inesperados ao trabalhar com números que se tornam maiores ou menores do que o intervalo de valor permitido do tipo que os armazena.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*8DEE9keNnSBGRWv5I6pGJQ.png" /></figure><p><strong>Quais os tipos de operadores existentes em Swift?</strong><br><em>Unário</em> : operam com um único alvo. Exemplo ! Not<br><em>Binário</em>: operam entre dois alvos, como por exemplo + -<br><em>Ternário</em>: existe uma condição para aquilo ocorrer, são três alvos. Exemplo: (a ? b : c).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*WbYaYLF4yNkIgMKeNSncmg.png" /></figure><h3>Interpolação de Strings</h3><p>Você também pode usar strings para inserir constantes, variáveis, literais e expressões em strings mais longas, em um processo conhecido como interpolação de strings. Isso facilita a criação de valores de string personalizados para exibição, armazenamento e impressão.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yLpZWXAboT-N_A2lshEqhw.png" /></figure><h3>Condições</h3><p>Em Swift tem-se os seguintes condicionais <strong>if, if let</strong> (usado junto com optionals), <strong>if case let </strong>(usado junto com enums), <strong>switch, switch case</strong> (usado com enums). Cada estrutura de repetição tem sua própria declaração, seguindo suas próprias regras para funcionamento do loop.</p><h3>Control Flow</h3><p>O Swift fornece uma variedade de declarações de <a href="https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html">fluxo de controle</a>. Isso inclui loops while para executar uma tarefa várias vezes; instruções if, guard e switch para executar diferentes ramificações do código com base em certas condições; e instruções como quebrar e continuar a transferir o fluxo de execução para outro ponto em seu código.</p><h3>Loops (repetição)</h3><p>São estruturas de repetição no qual realiza determinado comando até que ocorra uma quebra dele seja baseado em uma condicional ou em uma quebra forçada usando breaks ou returns.</p><h4>Foreach / forin?</h4><p><strong>For in</strong> funciona como o for tradicional e também com arrays, ele aceita optionals.<br><strong>Foreach</strong> é um método em Swift.</p><p>A principal <a href="https://stackoverflow.com/questions/45333177/when-to-use-foreach-instead-of-for-in">vantagem</a> do forEach é percebida quando você está fazendo programação funcional, você pode adicioná-lo a uma cadeia de chamadas funcionais, sem ter que salvar o resultado anterior em uma variável separada que você precisaria se usasse a sintaxe for-in.</p><p>Usar o <strong>for in</strong> nos dá um grau muito <strong>maior de controle sobre uma iteração</strong>, enquanto usar <strong>forEach</strong> nos permite <strong>tirar proveito do poder de closures e funções de primeira classe</strong>, mesmo que não possamos interromper uma iteração depois de iniciada.</p><p>Exemplos:<br><em>For in</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*raE1rIlINHcS0_ZKH0cd4w.png" /></figure><p><em>ForEach</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kN0QQaY0pAWZmONPw3fHRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*YeB170qE_oOkdEa7Czh_LQ.png" /></figure><h4>Interrompendo um loop</h4><p>Para continuar um loop usamos o <strong>continue</strong>: Considerando que sair de um <a href="https://www.hackingwithswift.com/read/0/9/loops">loop interrompe</a> a execução imediatamente e <strong>continue</strong> diretamente após o loop, continuar um loop apenas sai da iteração atual do loop — ele vai pular de volta para o topo do loop e começar a partir daí.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*O5QavUH3YUA8nen08RKQ5Q.png" /></figure><p>O <strong>break</strong> é usado quando dentro de um while ou um for para sair da execução quando você determinar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*4KPENhMrVeA9PB6r_Wfq6w.png" /></figure><h3>Where</h3><p>Ele é usado como uma <a href="https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html">condição</a> dentro do for in, switch, como uma condicional a mais para ser avaliada.</p><h3>Funções</h3><p>O que são <strong>expressões</strong> em linguagem de programação?</p><p>Uma expressão em linguagens de programação é uma combinação de valores, variáveis, operadores, e chamadas de funções que são interpretadas (avaliadas) de acordo com as regras de precedência e de associatividade particulares a uma determinada linguagem de programação.</p><blockquote>Em Swift, existem quatro tipos de expressões: expressões de <strong>prefixo</strong>, expressões <strong>binárias</strong>, expressões <strong>primárias</strong> e expressões <strong>pós-fixadas</strong>. Avaliar uma expressão retorna um valor, causa um efeito colateral ou ambos.</blockquote><p><strong>Funções</strong> são blocos autocontidos de código que <strong>executam uma tarefa específica</strong>. Você dá a uma função um nome que identifica o que ela faz, e esse nome é usado para “chamar” a função para realizar sua tarefa quando necessário.</p><p><strong>Qual a diferença de função e de método?</strong><br> <em>Métodos são funções associadas a um tipo específico</em>. Classes, estruturas e enumerações podem definir métodos de instância, que encapsulam tarefas e funcionalidades específicas para trabalhar com uma instância de um determinado tipo. <br>Já as <em>funções não são específicos</em> de uma classe ou um tipo, você pode criar uma função e usar sem a dependência da instância de um método.</p><p><strong>O que é </strong><a href="https://www.hackingwithswift.com/read/0/11/functions"><strong>retorno</strong></a><strong> de uma função?</strong><br>O retorno é um valor de um tipo específico de dado, esse retorno acontece ao final da execução da função.</p><p><strong>Como retornar em uma função?</strong><br>Para criar uma função com retorno basta colocar um -&gt; e informar qual o tipo de retorno.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*r9hBILVeZBMsjLvenFbggQ.png" /></figure><p>O que são <strong>argumentos</strong> e <strong>parâmetros</strong>?<br>Argumentos é o que é passado para dentro da função. <br>Exemplo:<br>func(1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*5gKr3fUl1PWG_luRHH-rbQ.png" /></figure><p>Parâmetros é o que a função vai receber. <br>Exemplo:<br>void func(Int i) // declarou um parâmetro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*vSVouAcKY7RsEGO9-RID5Q.png" /></figure><h3>Type-safe</h3><p>Uma linguagem de tipo seguro incentiva você a ser claro sobre os tipos de valores com os quais seu código pode trabalhar. <strong>Se parte do seu código requer uma String, você não pode passar um Int por engano</strong>. Como o Swift é seguro para tipos, ele executa verificações de tipo ao compilar seu código e sinaliza quaisquer tipos incompatíveis como erros. Isso permite que você detecte e corrija os erros o mais cedo possível no processo de desenvolvimento.</p><h3>Type Inference</h3><p>A inferência de tipo permite que um compilador deduza o tipo de uma expressão particular automaticamente ao compilar seu código, simplesmente examinando os valores que você fornece.<br>Exemplo:<br><strong>var a = “String”<br></strong>Ele vai entender que o tipo da variável <strong>a </strong>será do tipo String.</p><h3>Optionals</h3><p>São variáveis no qual seu valor é opcional, ela teria uma ausência completa de valor <strong>não havendo nem 0 nem null.</strong></p><p>Eu indico que quero um opcional utilizando a ? após o nome do tipo de dado.</p><p><em>É uma expressão posfixa</em></p><h4>Force-unwrapping</h4><p>É um desembrulho forçado de uma variável opcional, geralmente é aconselhado a não realizar isso.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*AEcSLPmrUuoZ3IYQowo0Jw.png" /></figure><h3>Coleções</h3><p>O Swift fornece <strong>três tipos de coleção principais</strong>, conhecidos como <strong>arrays</strong>, <strong>conjuntos</strong> e <strong>dicionários</strong>, para armazenar coleções de valores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5b9TPm5RO1s8Pzcm.png" /></figure><h4>Array</h4><p><strong>Arrays</strong> são coleções <strong>ordenadas</strong> de valores do mesmo tipo, armazena valores do mesmo tipo em uma lista ordenada. O mesmo valor pode aparecer várias vezes em posições diferentes.</p><p>Dentro de um array possuimos alguns métodos para utilizar, como o exemplo abaixo mostra o .append</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*uMIOudnKvs77qQoI8oIiDg.png" /></figure><p>Verifica se está vazio o array .isEmpty</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*cx6WDJQRAeGX1lDxbq0Bpw.png" /></figure><p>Existem métodos para remoção de elementos, como por exemplo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*HPosZpSSkgd11TiYuh9KHA.png" /></figure><p>Em caso de dúvida o que cada método faz é possivel ver pelo descrição deles ao passar por cima deles com as setinhas.</p><p><strong>Conjuntos</strong> são coleções <strong>não ordenadas</strong> de valores únicos.</p><p><strong>Dicionários</strong> são coleções <strong>não ordenadas de associações de valores-chave.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*0_93VbYQ2NUlQfX9fK0Kzw.png" /></figure><p>Obs: <br><strong>Tuplas</strong></p><p>Uma <strong>tupla</strong> é uma constante ou variável que pode acomodar um grupo de valores que podem ser de diferentes tipos de dados e compostos para um único valor. Em palavras fáceis, uma <strong>tupla</strong> é uma estrutura que pode conter vários valores de tipos de dados distintos.</p><blockquote>Diferença entre tuplas e arrays/coleções é que os valores armazenados em uma <strong>tupla não precisam ser do mesmo tipo</strong>.</blockquote><p><strong><em>Links:<br></em>💬 </strong><a href="https://www.programiz.com/swift-programming/comments">https://www.programiz.com/swift-programming/comments</a><br><strong>💬 </strong><a href="https://www.youtube.com/watch?v=-jJ8atgqTGs">https://www.youtube.com/watch?v=-jJ8atgqTGs</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/BasicOperators.html">https://docs.swift.org/swift-book/LanguageGuide/BasicOperators.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html">https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html</a><br><a href="https://pt.wikipedia.org/wiki/Express%C3%A3o_(computa%C3%A7%C3%A3o)#:~:text=Uma%20express%C3%A3o%20em%20linguagens%20de,%2C%20produz%20(retorna)%20um%20valor">https://pt.wikipedia.org/wiki/Express%C3%A3o_(computa%C3%A7%C3%A3o)#:~:text=Uma%20express%C3%A3o%20em%20linguagens%20de,%2C%20produz%20(retorna)%20um%20valor</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/ReferenceManual/Expressions.html">https://docs.swift.org/swift-book/ReferenceManual/Expressions.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/Functions.html">https://docs.swift.org/swift-book/LanguageGuide/Functions.html</a><br><strong>💬 </strong><a href="https://swiftly.dev/">https://swiftly.dev/</a><br><strong>💬 </strong><a href="https://swiftly.dev/switch">https://swiftly.dev/switch</a><br><strong>💬 </strong><a href="https://www.hackingwithswift.com/read/0/9/loops">https://www.hackingwithswift.com/read/0/9/loops</a><br><strong>💬 </strong><a href="https://swiftly.dev/foreach">https://swiftly.dev/foreach</a><br><strong>💬 </strong><a href="https://medium.com/@vinigodoy/opcionais-em-swift-7aae7877085">https://medium.com/@vinigodoy/opcionais-em-swift-7aae7877085</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/ReferenceManual/Expressions.html">https://docs.swift.org/swift-book/ReferenceManual/Expressions.html</a><br><strong>💬 </strong><a href="https://docs.swift.org/swift-book/LanguageGuide/OptionalChaining.html">https://docs.swift.org/swift-book/LanguageGuide/OptionalChaining.html</a> <br><strong>💬 </strong><a href="https://quaggie.github.io/swift-optionals">https://quaggie.github.io/swift-optionals</a><br><strong>💬 </strong>http://<a href="http://equinocios.com/optionals/2016/03/25/optionals-e-o-gato-de-schrodinger/#:~:text=O%20force%20unwrap%20">equinocios.com/optionals/2016/03/25/optionals-e-o-gato-de-schrodinger/#:~:text=O%20force%20unwrap%20</a>(ou%20desembrulho,estiver%20errado%20o%20app%20crasha.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=292fa3314ebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Primeiros passos com Swift #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/primeiros-passos-com-swift-34cb6f433f21?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/34cb6f433f21</guid>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Tue, 17 May 2022 17:35:59 GMT</pubDate>
            <atom:updated>2024-07-12T02:34:16.130Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*aznG-Gf8fiIdH9ql.png" /></figure><blockquote><em>Swift é uma linguagem de programação de propósito geral construída usando uma abordagem moderna para segurança, desempenho e padrões de design de software.</em></blockquote><h4>Qual o objetivo do Swift?</h4><p>O objetivo do projeto Swift é criar a <strong>melhor linguagem disponível</strong> para usos que vão desde a programação de sistemas até aplicativos móveis e de desktop, escalonando para serviços em nuvem. Mais importante ainda, o Swift foi projetado para tornar a <strong>escrita e manutenção</strong> de programas corretos <strong>mais fácil</strong> para o desenvolvedor. O Swift pretende ser um substituto para linguagens baseadas em C (C, C ++ e Objective-C)</p><h4>Orientada a Objeto ? Protocolo ?</h4><p>Swift é uma linguagem de <strong>programação híbrida, funcional e orientada a objetos com tipagem estática</strong>. Primeiramente, apesar de ser uma linguagem estaticamente tipada, as variáveis podem usar inferências de tipo para evitar ter que usar tipos pré-definidos em todo lugar, como é feito com o C.</p><blockquote>Swift é uma linguagem open source, então fique a vontade para contribuir :)</blockquote><h4>Para o que é usado o Swift?</h4><p>Desenvolver usando a linguagem Swift permite que você crie Apps para Apple Store, sendo esses Apps tanto para iPhone, Apple Watch, tvOS, macOS e muito mais.</p><p>Com Swift você pode desenvolver tanto Apps como Jogos de forma nativa, sendo tanto em 3D como em 2D.</p><h4>Ferramentas para codar em Swift</h4><p>Para desenvolver em Swift é necessário um Macbook que tenha instalado o Xcode, mas caso não seja possível tendo em vista que o Mac é muito caro é possível programar em Swift pelo iPad usando o Playgrounds.</p><p>O <strong>Playgrounds é um App para iPad e Mac</strong> para incentiva pessoas a começar a programar usando como base a linguagem de programação Swift. Nele é possível você aprende a programar com jogos que já estão feitos lá como também é possível você fazer seu próprio jogo e aprender enquanto joga.</p><p>Nessa <strong>documentação</strong> <a href="https://developer.apple.com/swift-playgrounds/">aqui</a> da própria Apple mostra como c<strong>omeçar a usar o Playgrounds.</strong></p><p>Tem também o <a href="https://developer.apple.com/videos/play/wwdc2018/402/"><strong>Playground</strong></a> que é uma ferramenta dentro do <a href="https://developer.apple.com/documentation/xcode/"><strong>Xcode</strong></a> que é a IDE que usamos para programar em Swift. Ele permite que os desenvolvedores testem conteúdo de forma interativa, assim como vejam tanto o resultado final como cálculos intermediários, levando a possibilidades impressionantes.</p><blockquote>Use playgrounds para aprender e explorar Swift, protótipos de partes do seu aplicativo e criar ambientes de aprendizagem para outros. O ambiente interativo do Swift permite que você experimente código, explore APIs do sistema e até mesmo crie visualizações personalizadas. Você também pode adicionar notas e orientações usando comentários elaborados, agrupar conceitos relacionados em páginas e, em seguida, adicionar navegação. Em playgrounds, você pode executar o código do ponto de inserção que oferece suporte a um estilo de desenvolvimento incremental. Depois de aperfeiçoar seu código no playground, basta mover esse código para o projeto.</blockquote><p><a href="https://help.apple.com/xcode/mac/current/#/dev188e45167"><strong>Interface</strong></a><strong> do Playground:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*duxVjjZ1d2cywgJljevuhQ.png" /></figure><p>Diferenças entre os playgrounds:<br> — Blank: um playground genérico.<br> — Game: Um playground baseado no SpriteKit.<br> — Map: um playground que usa MapKit.<br> — Single View: um playground com uma visão única.</p><p><strong><em>Melhores lugares para buscar sobre Desenvolvimento Apple:<br></em>🟠 </strong><a href="https://developer.apple.com/">https://developer.apple.com/</a><br><strong>🟠 </strong><a href="https://www.hackingwithswift.com/read/0/overview">https://www.hackingwithswift.com/read/0/overview</a><br><strong>🟠 </strong><a href="https://swiftly.dev/">https://swiftly.dev/</a><br><strong>🟠 </strong><a href="https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals">https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals</a><br><strong>🟠 </strong><a href="https://developer.apple.com/pt/support/">https://developer.apple.com/pt/support/</a></p><p><strong>Obs: É possível acessar a documentação direto pelo Xcode</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*gParD8Kn-k2yZBPdRevx7A.png" /></figure><p><strong><em>Links:<br></em>🔴 </strong><a href="https://swift.org/about/">https://swift.org/about/</a><br><strong>🔴 </strong><a href="https://www.youtube.com/watch?v=4P_ZsOqELBo">https://www.youtube.com/watch?v=4P_ZsOqELBo</a><br><strong>🔴 </strong><a href="https://books.apple.com/br/book/the-swift-programming-language-swift-5-4/id881256329">https://books.apple.com/br/book/the-swift-programming-language-swift-5-4/id881256329</a><br><strong>🔴 </strong><a href="https://docs.swift.org/swift-book/">https://docs.swift.org/swift-book/</a></p><h3>📌Getting started with Swift #eng</h3><blockquote>Swift is a general-purpose programming language built using a modern approach to security, performance, and software design patterns.</blockquote><h4>What is the goal of Swift?</h4><p>The goal of the Swift project is to create the best language available for uses ranging from systems programming to mobile and desktop applications, scaling to cloud services. Most importantly, Swift was designed to make writing and maintaining correct programs easier for the developer. Swift is intended to be a replacement for C-based languages ​​(C, C++, and Objective-C).</p><h4>Object Oriented? Protocol?</h4><p>Swift is a hybrid, functional, object-oriented programming language with static typing. Firstly, despite being a statically typed language, variables can use type inferences to avoid having to use pre-defined types everywhere, as is done with C.</p><blockquote>Swift is an open source language, so feel free to contribute :)</blockquote><h4>What is Swift used for?</h4><p>Developing using the Swift language allows you to create Apps for the Apple Store, these Apps being for iPhone, Apple Watch, tvOS, macOS, and more.</p><p>With Swift, you can develop both Apps and Games natively, in both 3D and 2D.</p><h4>Tools for coding in Swift</h4><p>To develop in Swift you need a Macbook with Xcode installed, but if this is not possible given that the Mac is very expensive, it is possible to program in Swift on the iPad using Playgrounds.</p><p>Playgrounds is an App for iPad and Mac that encourages people to start programming using the Swift programming language as a base. In it, you can learn to program with games that are already made there, and you can also make your own game and learn while you play.</p><p>This documentation here from Apple shows how to start using Playgrounds.</p><p>There is also Playground which is a tool within Xcode which is the IDE we use to program in Swift. It allows developers to test content interactively, as well as see both the final result and intermediate calculations, leading to impressive possibilities.</p><blockquote>Use playgrounds to learn and explore Swift, prototype parts of your app, and create learning environments for others. Swift’s interactive environment lets you experiment with code, explore system APIs, and even create custom visualizations. You can also add notes and guidance using rich comments, group related concepts into pages, and then add navigation. In playgrounds, you can run insertion point code that supports an incremental development style. Once you’ve perfected your code in the playground, simply move that code into the project.</blockquote><p>Playground Interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*duxVjjZ1d2cywgJljevuhQ.png" /></figure><p>Differences between playgrounds:<br> — Blank: a generic playground.<br> — Game: A playground based on SpriteKit.<br> — Map: a playground that uses MapKit.<br> — Single View: a playground with a single view.</p><p><em>Best places to look for Apple Development:</em><strong><em><br></em>🟠 </strong><a href="https://developer.apple.com/">https://developer.apple.com/</a><br><strong>🟠 </strong><a href="https://www.hackingwithswift.com/read/0/overview">https://www.hackingwithswift.com/read/0/overview</a><br><strong>🟠 </strong><a href="https://swiftly.dev/">https://swiftly.dev/</a><br><strong>🟠 </strong><a href="https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals">https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals</a><br><strong>🟠 </strong><a href="https://developer.apple.com/pt/support/">https://developer.apple.com/pt/support/</a></p><p><em>Note: It is possible to access the documentation directly through Xcode</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*gParD8Kn-k2yZBPdRevx7A.png" /></figure><p><strong><em>Links:<br></em>🔴 </strong><a href="https://swift.org/about/">https://swift.org/about/</a><br><strong>🔴 </strong><a href="https://www.youtube.com/watch?v=4P_ZsOqELBo">https://www.youtube.com/watch?v=4P_ZsOqELBo</a><br><strong>🔴 </strong><a href="https://books.apple.com/br/book/the-swift-programming-language-swift-5-4/id881256329">https://books.apple.com/br/book/the-swift-programming-language-swift-5-4/id881256329</a><br><strong>🔴 </strong><a href="https://docs.swift.org/swift-book/">https://docs.swift.org/swift-book/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34cb6f433f21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple TV introdução  #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/apple-tv-introdu%C3%A7%C3%A3o-a86785669496?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a86785669496</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[apple-tv]]></category>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Tue, 10 May 2022 18:39:34 GMT</pubDate>
            <atom:updated>2024-07-12T02:28:13.646Z</atom:updated>
            <content:encoded><![CDATA[<h3>O que é a Apple TV?</h3><p>O Apple TV é um <strong>reprodutor de mídia de streaming</strong>, o que significa que ele pega o <strong>conteúdo da Internet</strong> e o exibe na sua TV, como também é um decodificador que permite que uma televisão se torne uma <strong>tela de exibição </strong>de conteúdo da Internet.</p><p>A Apple TV também possui loja de aplicativos dedicada permitindo que os usuários baixem Apps para jogar, melhorar sua qualidade de vida e muito mais. Alguns desses Apps possuem conectividade com a Siri e a Siri permite pesquisa de voz pela TV.</p><p>A Apple TV possui um controle remoto com touch pad que pode ser usado como controlador da TV como também para jogar, ela também aceita controle de terceiros para jogar. Ela também emparelha dispositivos Apple como AirPods para fone de ouvido.</p><h3>Qual seu público alvo ?</h3><p>O principal grupo-alvo do Apple TV+, pelo menos a curto prazo, serão os proprietários de dispositivos existentes com idades entre <strong>18 e 34 anos.</strong></p><h3>Qual o objetivo da Apple TV?</h3><p>O objetivo da Apple com a AppleTV não é apenas ser mais um serviço de stream, ela permite que tenha conectividade com todo o ecossistema da Apple isso acaba promovendo uma experiência de usuário melhor, como também a parceria com outros sistemas de stream aumenta seu catálogo e permite também que o usuário possa ter jogos e apps da AppStore em sua AppleTV.</p><p>Todos esses motivos agregados fazem com que <strong>melhore a experiência dos usuários da Apple</strong> e isso cria o desejo de o usuário ter para si, ter tudo integrado é um grande motivo de muitos quererem ter tudo da apple.</p><p><strong><em>Links:</em></strong><em><br></em><a href="https://www.techtarget.com/searchmobilecomputing/definition/Apple-TV-Apple-TV-4#:~:text=Apple%20TV%20is%20a%20set,a%20number%20of%20pa">https://www.techtarget.com/searchmobilecomputing/definition/Apple-TV-Apple-TV-4#:~:text=Apple%20TV%20is%20a%20set,a%20number%20of%20pa</a><br> <br><a href="https://techforluddites.com/apple-tv-what-is-it-and-how-does-it-work/">https://techforluddites.com/apple-tv-what-is-it-and-how-does-it-work/</a></p><p><a href="https://onezero.medium.com/what-is-apples-tv-plus-strategy-d7c7bb10ea2f">https://onezero.medium.com/what-is-apples-tv-plus-strategy-d7c7bb10ea2f</a><br> <br><a href="https://observer.com/2021/09/state-of-the-streamer-apple-tv-is-charting-a-unique-path-through-the-streaming-wars/">https://observer.com/2021/09/state-of-the-streamer-apple-tv-is-charting-a-unique-path-through-the-streaming-wars/</a></p><p><a href="https://www.fiercevideo.com/video/lack-interest-apple-tv-content-a-big-barrier-for-subscribers#:~:text=%E2%80%9CThe%20core%20target%20group%20for,device%20owners%20aged%2018%2D34">https://www.fiercevideo.com/video/lack-interest-apple-tv-content-a-big-barrier-for-subscribers#:~:text=%E2%80%9CThe%20core%20target%20group%20for,device%20owners%20aged%2018%2D34</a>.</p><h3>📌Apple TV introduction 📺 #eng</h3><h3>What is Apple TV?</h3><p>Apple TV is a streaming media player, which means it takes content from the Internet and displays it on your TV, and it is a set-top box that allows a television to become a display screen for Internet content.</p><p>Apple TV also has a dedicated app store allowing users to download apps to play games, improve their quality of life, and much more. Some of these Apps have connectivity with Siri and Siri allows voice search through the TV.</p><p>The Apple TV has a remote control with a touchpad that can be used as a TV controller or to play games, it also accepts third-party controls to play games. It also pairs Apple devices like AirPods to headphone jack.</p><h3>Who is your target audience?</h3><p>The main target group for Apple TV+, at least in the short term, will be existing device owners aged 18 to 34.</p><h3>What is the purpose of Apple TV?</h3><p>Apple’s objective with AppleTV is not just to be another streaming service, it allows it to have connectivity with the entire Apple ecosystem, which ends up promoting a better user experience, but also the partnership with other streaming systems increases its catalog and It also allows the user to have games and apps from the AppStore on their AppleTV.</p><p>All these reasons combined improve the experience of Apple users and this creates the desire for users to have it for themselves, having everything integrated is a big reason why many want to have everything from Apple.</p><p><strong><em>Links:</em></strong><em><br></em><a href="https://www.techtarget.com/searchmobilecomputing/definition/Apple-TV-Apple-TV-4#:~:text=Apple%20TV%20is%20a%20set,a%20number%20of%20pa">https://www.techtarget.com/searchmobilecomputing/definition/Apple-TV-Apple-TV-4#:~:text=Apple%20TV%20is%20a%20set,a%20number%20of%20pa</a><br> <br><a href="https://techforluddites.com/apple-tv-what-is-it-and-how-does-it-work/">https://techforluddites.com/apple-tv-what-is-it-and-how-does-it-work/</a></p><p><a href="https://onezero.medium.com/what-is-apples-tv-plus-strategy-d7c7bb10ea2f">https://onezero.medium.com/what-is-apples-tv-plus-strategy-d7c7bb10ea2f</a><br> <br><a href="https://observer.com/2021/09/state-of-the-streamer-apple-tv-is-charting-a-unique-path-through-the-streaming-wars/">https://observer.com/2021/09/state-of-the-streamer-apple-tv-is-charting-a-unique-path-through-the-streaming-wars/</a></p><p><a href="https://www.fiercevideo.com/video/lack-interest-apple-tv-content-a-big-barrier-for-subscribers#:~:text=%E2%80%9CThe%20core%20target%20group%20for,device%20owners%20aged%2018%2D34">https://www.fiercevideo.com/video/lack-interest-apple-tv-content-a-big-barrier-for-subscribers#:~:text=%E2%80%9CThe%20core%20target%20group%20for,device%20owners%20aged%2018%2D34</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a86785669496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O que é MVP? Quais são os prós e contras? #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/o-que-%C3%A9-mvp-quais-s%C3%A3o-os-pr%C3%B3s-e-contras-45153d59a5ac?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/45153d59a5ac</guid>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 20:42:35 GMT</pubDate>
            <atom:updated>2024-07-12T02:25:37.823Z</atom:updated>
            <content:encoded><![CDATA[<h4>O que é:</h4><p>O Model View Presenter (MVP) é um padrão de design que separa os objetos em três componentes principais: Model, View e Presenter.</p><blockquote>View Controller é considerado como View, e o apresentador contém toda a lógica de negócios da aplicação.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwLrfGceZURMc1Ep9DeypA.png" /></figure><h4>View</h4><p>A view consiste no View e no View Controller. Ele contém apenas o código relacionado à exibição. Ele cuida de toda a configuração e eventos da interface do usuário.</p><h4>Presenter</h4><p>O Presenter contém toda a lógica de negócios do aplicativo. Ele define as ações do usuário e atualiza a interface do usuário de acordo com os métodos delegados. Não é dependente do UIKit e, portanto, facilmente testável.</p><h4>Model</h4><p>O Model contém os dados do aplicativo. As chamadas de rede, analisador, ramais, gerente, etc. ocorrem aqui.</p><h3>Vantagens e Desvantagens</h3><h4>Vantagens</h4><ul><li>ajuda a organizar a interface layer</li><li>Esse modelo é mais fácil de entender, pois possui um modelo de aplicativo separado.</li><li>Não há relação conceitual entre os componentes do aplicativo.</li><li>O teste isolado de componentes é mais fácil.</li></ul><h4>Desvantagens</h4><ul><li>Não resolve a questão de Networking, Passing, storage e routing</li><li>Ele tem um mapeamento de um para um entre o apresentador e a exibição.</li><li>Ele usa controladores para manipular os modelos de dados que causam confusão no backend.</li><li>É necessário ter seus próprios controladores para um modelo. Portanto, um aplicativo com modelos aumentados não pode suportar o MVP se o número de controladores também não for aumentado.</li></ul><p><em>Links:</em></p><p><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://www.javatpoint.com/ios-model-view-presenter#:~:text=Model%20View%20Presenter%20(MVP)%20is,business%20logic%20of%20the%20application">https://www.javatpoint.com/ios-model-view-presenter#:~:text=Model%20View%20Presenter%20(MVP)%20is,business%20logic%20of%20the%20application</a>.</p><h3>📌What is MVP? What are the pros and cons? #eng</h3><h4>What is it:</h4><p>Model View Presenter (MVP) is a design pattern that separates objects into three main components: Model, View, and Presenter.</p><blockquote>View Controller is considered as View, and the presenter contains all the business logic of the application.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwLrfGceZURMc1Ep9DeypA.png" /></figure><h4>View</h4><p>The view consists of the View and the View Controller. It only contains code related to the view. It takes care of all UI configurations and events.</p><h4>Presenter</h4><p>The Presenter contains all of the application’s business logic. It defines user actions and updates the user interface according to delegate methods. It is not dependent on UIKit and therefore easily testable.</p><h4>Model</h4><p>The Model contains the application data. Network calls, analyzers, extensions, managers, etc. occur here.</p><h3>Advantages and disadvantages</h3><h4>Advantages</h4><ul><li>helps organize the interface layer</li><li>this model is easier to understand as it has a separate application model</li><li>there is no conceptual relationship between application components</li><li>testing components in isolation is easier</li></ul><h4>Disadvantages</h4><ul><li>does not resolve the issue of Networking, Passing, storage, and routing</li><li>it has a one-to-one mapping between the presenter and the view</li><li>it uses controllers to manipulate the data models which cause confusion in the backend</li><li>you must have your own controllers for a model. Therefore, an application with augmented models cannot support MVP if the number of controllers is not also increased</li></ul><p><em>Links:</em></p><p><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://www.javatpoint.com/ios-model-view-presenter#:~:text=Model%20View%20Presenter%20(MVP)%20is,business%20logic%20of%20the%20application">https://www.javatpoint.com/ios-model-view-presenter#:~:text=Model%20View%20Presenter%20(MVP)%20is,business%20logic%20of%20the%20application</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45153d59a5ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O que é MVVM? Quais são os prós e contras? #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/o-que-%C3%A9-mvvm-quais-s%C3%A3o-os-pr%C3%B3s-e-contras-15c022f8cb99?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c022f8cb99</guid>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 20:34:01 GMT</pubDate>
            <atom:updated>2024-07-12T02:20:51.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>O que é MVVM?</h3><p>Model–view–viewmodel (MVVM) é um padrão de arquitetura de software que facilita a separação do desenvolvimento da interface gráfica do usuário (a visualização) — seja por meio de uma linguagem de marcação ou código GUI — do desenvolvimento da lógica de negócios ou back- end logic (o modelo) para que a visualização não dependa de nenhuma plataforma de modelo específica. <br> <br>O viewmodel do MVVM é um conversor de valores, o que significa que o viewmodel é responsável por expor (converter) os objetos de dados do modelo de forma que os objetos sejam facilmente gerenciados e apresentados.</p><p>A este respeito, o viewmodel é mais model do que view, e lida com a maioria, senão toda a lógica de exibição da view. O viewmodel pode implementar um padrão mediador, organizando o acesso à lógica de back-end em torno do conjunto de casos de uso suportados pela view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDv8lVvmJLaiv4wxIMHmtg.png" /></figure><h4>View</h4><p>Tem apenas os elementos visuais</p><h4>View Controller</h4><p>Ele só executa coisas relacionadas à interface do usuário — Mostrar/obter informações. Parte da camada de visualização</p><h4>View Model</h4><p>Ele recebe informações do VC, trata todas essas informações e as envia de volta ao VC.</p><h4>Model</h4><p>Este é apenas o seu modelo, nada muito aqui. É o mesmo modelo do MVC. É usado pela VM e atualizado sempre que a VM envia novas atualizações</p><h3>Vantagens e Desvantagens</h3><h4>Vantagens</h4><ul><li>ajuda a organizar a interface layer</li><li>compatível com MVC</li><li>deixa o código mais modularizado</li></ul><h4>Desvantagens</h4><ul><li>não resolve a questão de Networking, Passing, storage e routing</li><li>a quantidade de classes aumentarão</li><li>é complexo para quem está iniciando</li></ul><h4>Exemplo em SwiftUI de um modelo que pode ser adotado</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c56fef647be9a9bd58cb9a792ca2319/href">https://medium.com/media/6c56fef647be9a9bd58cb9a792ca2319/href</a></iframe><h4>Exemplo em UIKit de um modelo que pode ser adotado</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca540c614f5171c9c2750c2b72c1e9ad/href">https://medium.com/media/ca540c614f5171c9c2750c2b72c1e9ad/href</a></iframe><p>Links:<br><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/">https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/</a><br><a href="https://medium.com/@abhilash.mathur1891/mvvm-in-ios-swift-aa1448a66fb4">https://medium.com/@abhilash.mathur1891/mvvm-in-ios-swift-aa1448a66fb4</a><br><a href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel">https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel</a></p><h3>📌What is MVVM? What are the pros and cons? #eng</h3><h3>What is MVVM?</h3><p>Model–view–viewmodel (MVVM) is a software architecture pattern that makes it easy to separate the development of the graphical user interface (the view) — whether through a markup language or GUI code — from the development of the business logic or back-end logic (the model) so that the visualization does not depend on any specific model platform.<br> <br>The MVVM viewmodel is a value converter, which means that the viewmodel is responsible for exposing (converting) the model’s data objects so that the objects are easily managed and presented.</p><p>In this respect, the viewmodel is more model than view and handles most if not all of the view’s display logic. The viewmodel can implement a mediator pattern, organizing access to backend logic around the set of use cases supported by the view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDv8lVvmJLaiv4wxIMHmtg.png" /></figure><h4>View</h4><p>It only has visual elements</p><h4>View Controller</h4><p>It only does UI-related stuff — Show/Get information. Part of the visualization layer</p><h4>View Model</h4><p>It receives information from the VC, processes all this information, and sends it back to the VC</p><h4>Model</h4><p>This is just your template, nothing much here. It’s the same model as MVC It is used by the VM and updated whenever the VM pushes new updates</p><h3>Advantages and disadvantages</h3><h4>Advantages</h4><ul><li>helps organize the interface layer</li><li>MVC compatible</li><li>makes the code more modularized</li></ul><h4>Disadvantages</h4><ul><li>does not resolve the issue of Networking, Passing, storage, and routing</li><li>the number of classes will increase</li><li>It’s complex for those just starting out</li></ul><h4>SwiftUI example of a model that can be adopted</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c56fef647be9a9bd58cb9a792ca2319/href">https://medium.com/media/6c56fef647be9a9bd58cb9a792ca2319/href</a></iframe><h4>UIKit example of a model that can be adopted</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca540c614f5171c9c2750c2b72c1e9ad/href">https://medium.com/media/ca540c614f5171c9c2750c2b72c1e9ad/href</a></iframe><p><em>Links:</em><br><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/">https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/</a><br><a href="https://medium.com/@abhilash.mathur1891/mvvm-in-ios-swift-aa1448a66fb4">https://medium.com/@abhilash.mathur1891/mvvm-in-ios-swift-aa1448a66fb4</a><br><a href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel">https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c022f8cb99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O que é MVC? Quais são os prós e contras? #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/o-que-%C3%A9-mvc-quais-s%C3%A3o-os-pr%C3%B3s-e-contras-b1febb589ae4?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1febb589ae4</guid>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 20:28:52 GMT</pubDate>
            <atom:updated>2024-07-11T22:15:35.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>O que é <strong>MVC</strong>?</h3><p>O Model-View-Controller (MVC) é um padrão de arquitetura que separa um aplicativo em três componentes lógicos principais: o modelo, a visualização e o controlador. Cada um desses componentes é construído para lidar com aspectos específicos de desenvolvimento de um aplicativo.</p><h4><strong>Model</strong></h4><p>O componente Model corresponde a toda a lógica relacionada a dados com a qual o usuário trabalha. Isso pode representar os dados que estão sendo transferidos entre os componentes View e Controller ou quaisquer outros dados relacionados à lógica de negócios. Por exemplo, um objeto Customer irá recuperar as informações do cliente do banco de dados, manipulá-las e atualizá-las de volta para o banco de dados ou usá-las para renderizar dados.</p><h4><strong>View</strong></h4><p>O componente View é usado para toda a lógica de interface do usuário do aplicativo. Por exemplo, a visualização do cliente incluirá todos os componentes da interface do usuário, como caixas de texto, listas suspensas, etc. com os quais o usuário final interage.</p><h4><strong>Controller</strong></h4><p>Os controladores atuam como uma interface entre os componentes Model e View para processar toda a lógica de negócios e solicitações recebidas, manipular dados usando o componente Model e interagir com as Views para renderizar a saída final. Por exemplo, o controlador do Cliente tratará de todas as interações e entradas da Visualização do Cliente e atualizará o banco de dados usando o Modelo do Cliente. O mesmo controlador será usado para visualizar os dados do Cliente.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIPq9X6cJYi6J6r84zSmeQ.png" /></figure><h3>Vantagens e Desvantagens</h3><h4>Vantagens</h4><ul><li>ajuda a organizar a interface layer</li><li>facilidade de uso</li><li>quantidade de código menor comparado com outros modos</li></ul><h4>Desvantagens</h4><ul><li>sempre parece que uma das layers está fazendo muito</li><li>não resolve a questão de Networking, Passing e routing</li><li>baixa testabilidade</li><li>controller muito cheia de funções</li></ul><h4>Exemplo em UIKit de um modelo que pode ser adotado</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfdd3a7daa698b4a73ef08f531c619d5/href">https://medium.com/media/bfdd3a7daa698b4a73ef08f531c619d5/href</a></iframe><h4>Exemplo em SwiftUI de um modelo que pode ser adotado</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b61491b9c86e253c6b949db0a9c371e8/href">https://medium.com/media/b61491b9c86e253c6b949db0a9c371e8/href</a></iframe><p>Links:<br><a href="https://www.youtube.com/watch?v=qzTeyxIW_ow">https://www.youtube.com/watch?v=qzTeyxIW_ow</a><br><a href="https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/">https://developpaper.com/ios-advantages-and-disadvantages-of-mvc-and-mvvm/</a><br><a href="https://www.tutorialspoint.com/mvc_framework/mvc_framework_introduction.htm">https://www.tutorialspoint.com/mvc_framework/mvc_framework_introduction.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1febb589ae4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns #ptBR]]></title>
            <link>https://medium.com/@laylaemanuele/design-patterns-d6b062930689?source=rss-45ede0695ddf------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b062930689</guid>
            <dc:creator><![CDATA[Layla Emanuele]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 20:50:26 GMT</pubDate>
            <atom:updated>2024-07-11T22:13:23.755Z</atom:updated>
            <content:encoded><![CDATA[<h4>O que são <strong>Padrões de Projeto</strong> (<em>Design Patterns</em>)?</h4><p>Estão relacionados com a arquitetura, engenharia e padrões de projetos de software. O design pattern está intimamente ligado com o programação orientada a objeto. <br> <br><em>Focam em padrão de resolução.</em></p><p>Os softwares mudam e precisam de manutenção por isso os designs patterns são importantes, além de facilitar para que outros desenvolvedores consigam entender.</p><p>Existe casos que não se deve usar um pattern, tudo depende da linguagem e do projeto, pois incluir ele pode aumentar a complexidade.</p><h4>Qual é o objetivo de adotar <strong>padrões</strong> em seus projetos?</h4><p>Os softwares mudam e precisam de manutenção por isso os designs patterns são importantes, além de facilitar para que outros desenvolvedores consigam entender, além de facilitar no desenvolvimento.<br> <br>Encurta sua decisão, você toma decisões mais rápidas e passa mais rapido também informações para novas pessoas.<br> <br> Ajuda a ser assertivo.</p><h4>O que são <strong>Padrões Arquiteturais</strong> (<em>Architectural Patterns</em>)?</h4><p>São padrões estruturais, que vai determinar as responsabilidades das camadas e como sua aplicação será dividida.<br> <br>Facilita para que os desenvolvedores façam o código porque terá um padrão, facilita em manutenção, quando precisar explicar como a aplicação funciona, ajuda na entrada de novos membros, ajuda em novas implementações. <br> <br>Ajuda em problemas comportamentais e vários outros casos.</p><h4>Qual a diferença de <strong>padrões arquiteturais</strong> e <strong>padrões de projeto</strong>?</h4><p>Padrões de projeto — resolve problemas recorrentes na construção de software<br> <br>Padrões arquitetônicos — organização estrutural fundamental para sistemas de software<br> <br>Padrões de projeto são táticas de média escala que concretizam parte da estrutura e comportamento das entidades e seus relacionamentos.</p><p>Enquanto os padrões de arquitetura são vistos como comuns em um nível mais alto do que os padrões de design. Padrões de arquitetura são estratégias de alto nível que dizem respeito a componentes de grande escala, propriedades globais e mecanismos de um sistema.</p><h4>Qual a importância de <strong>planejar</strong> uma arquitetura antes de <strong>executar</strong>?</h4><p>Quando bem planejado permite que você faça melhores escolhas, o que no final significa menos dívida técnica. Ao planejar a arquitetura fica mais fácil estruturar o projeto e também ajuda a analisar qual arquitetura dá mais certo para o projeto tendo em mente diminuir a complexidade.</p><h4>Quais são <strong>padrões de projeto</strong> mais utilizados no mercado?</h4><p>Singleton, Decorador, Command, Factory, Observer.</p><p><em>Links:</em></p><p>Dicionário do Programador:<br><a href="https://www.youtube.com/watch?v=J-lHpiu-Twk">https://www.youtube.com/watch?v=J-lHpiu-Twk</a><br>5 Design Patterns que todos deveriam conhecer:<br><a href="https://www.youtube.com/watch?v=FLmBqI3IKMA">https://www.youtube.com/watch?v=FLmBqI3IKMA</a><br><a href="https://refactoring.guru/design-patterns/catalog">https://refactoring.guru/design-patterns/catalog</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://refactoring.guru/design-patterns/catalog">https://refactoring.guru/design-patterns/catalog</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI<br>https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://www.simform.com/blog/software-architecture-patterns/">https://www.simform.com/blog/software-architecture-patterns/</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://stackoverflow.com/questions/4243187/whats-the-difference-between-design-patterns-and-architectural-patterns">https://stackoverflow.com/questions/4243187/whats-the-difference-between-design-patterns-and-architectural-patterns</a><br><a href="https://www.upgrad.com/blog/software-design-patterns/">https://www.upgrad.com/blog/software-design-patterns/</a></p><h3>📌Design Patterns #eng</h3><h4>What are Design Patterns?</h4><p>They are related to architecture, engineering, and software design patterns. The design pattern is closely linked to object-oriented programming.<br> <br><em>Focam em padrão de resolução.</em></p><p>Software changes and needs maintenance, which is why design patterns are important, as well as making it easier for other developers to understand.</p><p>There are cases in which a pattern should not be used, it all depends on the language and the project, as including it can increase complexity.</p><h4>What is the purpose of adopting standards in your projects?</h4><p>Software changes and needs maintenance, which is why design patterns are important, as well as making it easier for other developers to understand, as well as facilitate development.<br> <br>It shortens your decision, makes faster decisions, and also passes information to new people faster.<br> <br>It helps to be assertive.</p><h4>What are Architectural Patterns?</h4><p>These are structural standards, which will determine the responsibilities of the layers and how their application will be divided.<br> <br>It makes it easier for developers to write the code because it will have a standard, it makes maintenance easier when they need to explain how the application works, it helps with the entry of new members, and it helps with new implementations. <br> <br>Helps with behavioral problems and several other cases.</p><h4>What is the difference between architectural patterns and design patterns?</h4><p>Design patterns — solves recurring problems in building software<br> <br>Architectural patterns — fundamental structural organization for software systems<br> <br>Design patterns are medium-scale tactics that realize part of the structure and behavior of entities and their relationships.</p><p>While architectural patterns are seen as common at a higher level than design patterns, architectural patterns are high-level strategies that concern large-scale components, global properties, and mechanisms of a system.</p><h4>How important is it to plan an architecture before executing it?</h4><p>When planned well it allows you to make better choices, which in the end means less technical debt. When planning the architecture, it becomes easier to structure the project and also helps to analyze which architecture works best for the project, keeping in mind reducing complexity.</p><h4>Quais são padrões de projeto mais utilizados no mercado?</h4><p>Singleton, Decorator, Command, Factory, Observer.</p><p><em>Links:</em></p><p>Dicionário do Programador:<br><a href="https://www.youtube.com/watch?v=J-lHpiu-Twk">https://www.youtube.com/watch?v=J-lHpiu-Twk</a><br>5 Design Patterns que todos deveriam conhecer:<br><a href="https://www.youtube.com/watch?v=FLmBqI3IKMA">https://www.youtube.com/watch?v=FLmBqI3IKMA</a><br><a href="https://refactoring.guru/design-patterns/catalog">https://refactoring.guru/design-patterns/catalog</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://refactoring.guru/design-patterns/catalog">https://refactoring.guru/design-patterns/catalog</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI<br>https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://www.simform.com/blog/software-architecture-patterns/">https://www.simform.com/blog/software-architecture-patterns/</a><br><a href="https://www.youtube.com/watch?v=YOOr_OjhjwI">https://www.youtube.com/watch?v=YOOr_OjhjwI</a><br><a href="https://stackoverflow.com/questions/4243187/whats-the-difference-between-design-patterns-and-architectural-patterns">https://stackoverflow.com/questions/4243187/whats-the-difference-between-design-patterns-and-architectural-patterns</a><br><a href="https://www.upgrad.com/blog/software-design-patterns/">https://www.upgrad.com/blog/software-design-patterns/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b062930689" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>