<?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 Chavira Romero on Medium]]></title>
        <description><![CDATA[Stories by Chavira Romero on Medium]]></description>
        <link>https://medium.com/@chavira?source=rss-f3292ed86b38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZRn0jBQd9l7eTjK-.PNG</url>
            <title>Stories by Chavira Romero on Medium</title>
            <link>https://medium.com/@chavira?source=rss-f3292ed86b38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:51:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chavira/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[Introduction to the Combine Framework in Swift]]></title>
            <link>https://medium.com/@chavira/introduction-to-the-combine-framework-in-swift-9c7ef82bc568?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c7ef82bc568</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 18:11:34 GMT</pubDate>
            <atom:updated>2023-12-18T18:11:34.363Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Combine Framework in Swift</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HITLHuMUU0CqLBn-wp6A2A.png" /><figcaption>Generated by DALL-E</figcaption></figure><p>Today, we’re delving into the world of reactive programming in Swift, focusing on one of its most powerful tools: the Combine framework. Introduced by Apple in 2019, Combine has revolutionized the way developers handle asynchronous events in Swift applications. Let’s explore what makes Combine an essential part of your Swift toolkit.</p><h4>What is Combine?</h4><p>Combine is a declarative Swift framework for processing values over time. It offers a unified approach to handle asynchronous events, such as user inputs, network responses, and system notifications. By adopting reactive programming principles, Combine simplifies complex asynchronous code, making it more readable and maintainable.</p><h4>Core Concepts of Combine</h4><ol><li>Publishers: Objects that emit a sequence of values over time.</li><li>Subscribers: Objects that receive these values from publishers.</li><li>Operators: Methods that manipulate the data emitted by publishers before it reaches the subscribers.</li></ol><h4>Getting Started with Combine</h4><p>To use Combine, ensure you’re working on iOS 13.0+, macOS 10.15+, watchOS 6.0+, or tvOS 13.0+. Import the framework at the beginning of your Swift file:</p><pre>import Combine</pre><h4>Example 1: Simple Publisher-Subscriber Relationship</h4><p>Here’s a basic example to illustrate the publisher-subscriber relationship:</p><pre>let simplePublisher = Just(&quot;Hello, Combine!&quot;)<br>simplePublisher<br>    .sink { value in<br>        print(value)<br>    }<br>    .store(in: &amp;cancellables)</pre><p>In this example, Just creates a publisher that emits a single value and completes. The sink method subscribes to the publisher, printing the emitted value.</p><h4>Example 2: Working with URLSession</h4><p>Combine can handle URLSession tasks elegantly. Here’s how you can fetch data from a URL:</p><pre>let url = URL(string: &quot;https://api.example.com/data&quot;)!<br>URLSession.shared.dataTaskPublisher(for: url)<br>    .map(\.data)<br>    .decode(type: MyDataType.self, decoder: JSONDecoder())<br>    .sink(receiveCompletion: { completion in<br>        switch completion {<br>            case .finished:<br>                break<br>            case .failure(let error):<br>                print(error.localizedDescription)<br>        }<br>    }, receiveValue: { myData in<br>        print(myData)<br>    })<br>    .store(in: &amp;cancellables)</pre><p>This code fetches data from a URL and decodes it into a custom Swift type, handling errors gracefully.</p><h4>Best Practices and Tips</h4><ol><li>Memory Management: Always store your subscribers in a collection of cancellables to prevent memory leaks.</li><li>Thread Management: Use receive(on:) to specify the DispatchQueue on which to receive the publisher&#39;s output.</li><li>Error Handling: Leverage catch and replaceError to manage errors in your Combine pipeline.</li></ol><h4>Conclusion</h4><p>Combine is a robust framework that brings functional and reactive programming to Swift. By mastering Combine, you can write cleaner, more efficient asynchronous code. Remember, practice is key to getting comfortable with its concepts and syntax.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c7ef82bc568" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the best advice you can give to a junior programmer?]]></title>
            <link>https://medium.com/@chavira/what-is-the-best-advice-you-can-give-to-a-junior-programmer-be3bc75d7954?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/be3bc75d7954</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Tue, 15 Aug 2017 19:33:54 GMT</pubDate>
            <atom:updated>2017-08-15T19:33:54.985Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Drink Coffee. Coffee is your best friend on a long day. (This is a personal opinion)</li><li>Please solve your problems the right way. Don’t work around the problem and deliver a quick fix. It will backfire on you.</li><li>Commit your code at regular intervals and push your code at least once in 2 days. Don’t have a lot of uncommitted code on your local environment. You never know when the system is gonna go down.</li><li>Never use short forms for variable names. It’ll be a nightmare to understand your code after few months.</li><li>In the same vision as the point above, always add appropriate comments to your code.</li><li>Documentation should always live with the code. This is the current best practice. Example — Use /** Javadocs comments */ instead of writing bunch of confluence pages.</li><li>Externalize all your static variables. This will come in easy when you are trying to localize your software.</li><li>As a developer, write extensive unit tests. Maintain your code coverage more than 95% all the time. This will enable you to identify if your small code change will break the software.</li><li>Configure linters in your IDE. Have your code clean.</li><li>Adopt a common code-style for your team. Use it.</li><li>When in doubt, always ask. You never know what others in your team know. Never under-estimate anyone.</li><li>With regards to the point above: Don’t ask stupid questions. Look it up on google before you ask people around. There are good chances that someone else has had the same question before and already asked it online. You’ll get your answers there.</li><li>Don’t just code for a sunny day scenario. Edge cases and error scenarios are a bitch. They’ll hit you real hard later.</li><li>When your teammates approach you with questions, please help them. You never know when you’ll need others’ help.</li></ol><p>Last but not the least ….</p><ol><li>Don’t hesitate to learn new technologies. Get out of your comfort zone. That’s how you survive in the software industry.</li></ol><p>Oh, the most important of all.</p><p><strong>Restarting your computer fixes your problems more often than you think.</strong></p><p>From: <a href="https://www.quora.com/What-is-the-best-advice-you-can-give-to-a-junior-programmer/answer/Vignesh-Kannan-54?srid=SFJ">https://www.quora.com/What-is-the-best-advice-you-can-give-to-a-junior-programmer/answer/Vignesh-Kannan-54?srid=SFJ</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be3bc75d7954" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why do employees leave startups for big brands?]]></title>
            <link>https://medium.com/@chavira/why-do-employees-leave-startups-for-big-brands-b8c811c47105?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8c811c47105</guid>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Mon, 16 Jan 2017 03:11:05 GMT</pubDate>
            <atom:updated>2017-01-16T03:11:05.427Z</atom:updated>
            <content:encoded><![CDATA[<p>I mean in a start up you get good work, good pay and great exposure. Then what are the main reasons why start ups have such a high attrition rate? Why do people prefer to go with Big Brands? Question mostly related to Indian start ups but would like to know if there are greater problems at hand?</p><p>______________________________________________________________</p><p><a href="https://www.quora.com/profile/Josh-Fechter"><strong>Josh Fechter</strong></a>, Growth Evangelist @AutopilotHQ | Advisor @Praxis | Mentor</p><p>Upvoted by <a href="https://www.quora.com/profile/Marc-Bodnick">Marc Bodnick</a>, Co-Founder, Elevation Partners and <a href="https://www.quora.com/profile/Will-Steward">Will Steward</a>, current CEO &amp; previous SaaS startup founder, acquired in 2011</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*nu1WAsacJjuFQw5Q." /></figure><p><strong>You want to breathe.</strong></p><p>I’ve only worked for startups. However, I’ve had moments where I was sitting at a laptop and applied to hundreds of big brand companies.</p><p>I’ve never made the jump, but I know why I sent out my resume.</p><p>I felt tired.</p><p>Tired of seeing a low bank account balance.</p><p>Tired of coming to work where everyone is on edge.</p><p>Tired of working months on a project with a high probability of failure.</p><p>Tired of not seeing my girlfriend for weeks at a time because I’m working too much.</p><p>It takes a toll. It can feel like you’re suffocating.</p><p>You gasp for air, but there’s nothing there.</p><p>You look at people who work for corporate companies. You see their pictures on Facebook of them going on vacation, hanging out at the beach with their girlfriend, and attending conferences.</p><p>Not you.</p><p>You’re in your empty office on a Saturday night working until 3 a.m.</p><p>You feel very alone, but you tell yourself it’s worth it.</p><p><em>I can be a part of something great.</em></p><p><em>I can say, “I was there from the beginning. I helped build it.”</em></p><p>You continue working because you believe in creating a great legacy.</p><p>You believe passion and perseverance will conquer all obstacles.</p><p>You believe in yourself.</p><p><a href="https://www.quora.com/Why-do-employees-leave-startups-for-big-brands/answer/Josh-Fechter?srid=SFJ">https://www.quora.com/Why-do-employees-leave-startups-for-big-brands/answer/Josh-Fechter?srid=SFJ</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8c811c47105" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Apple make such incredibly powerful phones with (seemingly) greatly outdated specs?]]></title>
            <link>https://medium.com/@chavira/how-does-apple-make-such-incredibly-powerful-phones-with-seemingly-greatly-outdated-specs-abb90c9bdddc?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/abb90c9bdddc</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[iphone-6s]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Mon, 30 Nov 2015 18:13:07 GMT</pubDate>
            <atom:updated>2015-11-30T18:13:07.315Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.quora.com/How-does-Apple-make-such-incredibly-powerful-phones-with-seemingly-greatly-outdated-specs"><strong>How does Apple make such incredibly powerful phones with (seemingly) greatly outdated specs?</strong></a></p><p>Outdated Specs?<br><a href="http://bgr.com/2015/09/28/iphone-6s-performance-benchmarks/">Who needs octa-core CPUs and 4GB of RAM? iPhone 6s is the fastest phone on the planet</a><br>The iPhone 6S is the fastest phone in the world. It is even faster than the new MacBook for some benchmark tests. And it finally sees an upgrade to 2GB Ram for now.<br>I know that the RAM management has gotten better since the Android 4.4 updates but here’s an excerpt I saw on a Chinese Website:</p><blockquote><em>iOS</em></blockquote><blockquote><em>Youtube: Your majesty, I need 200MB of RAM to run the video. Can you give me please?<br>iOS: Ok here you go.<br>User receives a message on Whatsapp.<br>Whatsapp: Aye your majesty, I need 100MB of RAM to load this messages.<br>iOS: Here you go.<br>User receives a safari link on Whatsapp.<br>Safari: Can you allocate 300MB of RAM for me to load this webpage. Thank you your majesty.<br>iOS: Ok here you go Safari.<br>User decides to stop watching the video and chat with a Friend on Facebook.<br>iOS: Youtube and Whatsapp, please return your resources. The RAM is running low.<br>Youtube: Ok here you go majesty….<br>Whatsapp *Returns resources*<br>Youtube and Whatsapp returned loaned resources.<br>Facebook runs flawlessly.<br>User decides to play Asphalt.<br>iOS forces quit all applications without question.<br>User plays Asphalt 8.</em></blockquote><h3>Android</h3><blockquote><em>Youtube: Your majesty, I need 200MB of RAM to run the video. Can you give me please?<br>Android: Ok here you go.<br>User receives a message on Whatsapp.<br>Whatsapp: Aye your majesty, I need 100MB of RAM to load this messages.<br>Android: Here you go.<br>User receives a link on Whatsapp.<br>Chrome: Can you allocate 300MB of RAM for me to load this webpage. Thank you your majesty.<br>Android: Ok here you go Chrome.<br>User decides to stop watching the video and chat with a Friend on Facebook.<br>Android: Youtube and Whatsapp, please return your resources. The RAM is running low.<br>Youtube: What if the person still wants to wat…..<br>Whatsapp: What if the user still wants to chat….<br>Android: Ok you can keep your memory I’ll send the reserve memory for Facebook then.<br>Youtube: Can I get more RAM to display this advert?<br>Android: Ok it’s the last 1G Ram.<br>User decides to play Asphalt.<br>Android: Please hand back the Ram..<br>Youtube: What if…<br>Whatsapp: What if…<br>Facebook: What if….<br>Chrome: What if…<br>Asphalt 8 is forced to quit. Do you want to report this to Google?</em></blockquote><p><a href="http://qr.ae/RbKpDR">http://qr.ae/RbKpDR</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abb90c9bdddc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Where can I find developers willing to join my startup?]]></title>
            <link>https://medium.com/@chavira/where-can-i-find-developers-willing-to-join-my-startup-467dbb547f9a?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/467dbb547f9a</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Tue, 17 Nov 2015 19:37:01 GMT</pubDate>
            <atom:updated>2015-11-17T19:37:01.999Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Where can I find developers willing to join my startup?</strong></p><p>I almost didn’t answer this one because of the “if you can’t say something nice” rule. But <strong>let me see if I can put a hard truth in a kind way</strong>.</p><p>I am sure that you are sincere, well-meaning, and smart. But this is about the eight-millionth time I’ve heard from somebody who thinks that having an idea makes you somehow so interesting to professional developers that they will swoon for you. The first million times that was perfectly fine, but at this point the question just makes me stabby.</p><p>A good software developer is one of the most in-demand skill sets on the planet right now. And note that what you need isn’t talent, which any 12-year-old can have. What you need is skill, which is what you get when you start with talent and add years of hard work.</p><p>Anybody who has put in those years of work can do basically what they want. They could:</p><ul><li>Take an interesting, pleasant, high-paying job at a place like Google with great toys, great chefs, and great job security;</li><li>Find a cushy telecommuting gig, where they do something undemanding from the comfort of their home office;</li><li>Find some interesting job that takes them to any country they want to visit;</li><li>Take a high-pressure job in finance to make stupid sums of money;</li><li>Join an existing startup that has funding and a nice office and a foosball table; or</li><li>Found their own startup.</li></ul><p><strong>So ask yourself: Why would a developer who can do anything choose to work with you?</strong> I don’t mean that snottily, by the way. Just consider it calmly and sincerely. What can you offer that’s better than one of those things?</p><p>Offering them 30% of nothing is, frankly, not so appealing. Anybody good who wants to work for free probably has ideas of their own they’d like to work on, for which they get 100%.</p><p>Do you have $5m in investor money? Do you have a proven track record as a designer and startup CEO? Do you have deep domain knowledge in an exciting field (e.g., computational biology, big data, hardware engineering)? Do you have a prototype of a product that is so obviously awesome that they will sign up on the spot? Did you play a key role at a now-famous startup? Do you have an incredible rolodex of partners or clients lined up to buy the product? Are you worshiped in your field as a god?</p><p>I can name startups for every one of those, and the ones I have insight into are <em>still</em>having trouble recruiting.</p><p><strong>If your honest answer to the question is “nothing”, then change it to “nothing yet”.</strong> Go join an existing startup so you can build experience, a track record, and connections. Go talk the 3 Fs into giving you enough money that you can hire some contractors to build a prototype that you can put into the field. Or buckle down and spend 2000–5000 hours learning to code well.</p><p>Given the startup bubble, I’m sure it feels like you have to start achieving <em>right now</em>, but I promise that there will still be awesome businesses to found in 5 years.</p><p><a href="http://qr.ae/RwQk4P">http://qr.ae/RwQk4P</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=467dbb547f9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you make sure that someone doesn’t steal a startup idea that you are in the initial stages…]]></title>
            <link>https://medium.com/@chavira/how-do-you-make-sure-that-someone-doesn-t-steal-a-startup-idea-that-you-are-in-the-initial-stages-85670ee53a8b?source=rss-f3292ed86b38------2</link>
            <guid isPermaLink="false">https://medium.com/p/85670ee53a8b</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[quora]]></category>
            <dc:creator><![CDATA[Chavira Romero]]></dc:creator>
            <pubDate>Tue, 17 Nov 2015 19:32:45 GMT</pubDate>
            <atom:updated>2015-11-17T19:32:45.278Z</atom:updated>
            <content:encoded><![CDATA[<h3>How do you make sure that someone doesn’t steal a startup idea that you are in the initial stages of working on?</h3><p>The founder of Dropbox entered the room of VCs. The VCs asked him “Are there other products out there that is the same as yours?”</p><p>He said yes. The VCs replied “Then why should I invest in your idea when I can use others?”</p><p>He asked them if they use any of those service, they said “No”.</p><p>Then the founder said “That is what I would like to change.”</p><p>The lesson here is that there are bound to be others who will copy your idea. The important thing here is that YOU do it better than others.</p><p><a href="https://www.quora.com/How-do-you-make-sure-that-someone-doesnt-steal-a-startup-idea-that-you-are-in-the-initial-stages-of-working-on">https://www.quora.com/How-do-you-make-sure-that-someone-doesnt-steal-a-startup-idea-that-you-are-in-the-initial-stages-of-working-on</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85670ee53a8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>