<?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 Edgar El Jammal on Medium]]></title>
        <description><![CDATA[Stories by Edgar El Jammal on Medium]]></description>
        <link>https://medium.com/@eddyjammal?source=rss-472cc1dc0962------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hxizzYIeIdW9C_iW4OkEoQ.jpeg</url>
            <title>Stories by Edgar El Jammal on Medium</title>
            <link>https://medium.com/@eddyjammal?source=rss-472cc1dc0962------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:19:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eddyjammal/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[The example that made me understand flatMap and then flatMapLatest]]></title>
            <link>https://medium.com/codex/the-example-that-made-me-understand-flatmap-and-then-flatmaplatest-83aa85af3e38?source=rss-472cc1dc0962------2</link>
            <guid isPermaLink="false">https://medium.com/p/83aa85af3e38</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[creativity]]></category>
            <dc:creator><![CDATA[Edgar El Jammal]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 08:25:57 GMT</pubDate>
            <atom:updated>2022-12-05T08:53:03.032Z</atom:updated>
            <content:encoded><![CDATA[<p>I had a hard time wrapping my head around flatMap and flatMapLatest when I started learning observables. Oh the number of times I googled map vs flatMap! I always ended up just more confused. Until my mind magically crafted this simile for me. Don’t ask me how though.</p><p>I will not explain what observables are now, because you won’t be here if you didn’t already know. I will also assume that you understand what map does because it’s pretty simple, but still I will start the example with it in order to compare and contrast.</p><h3>The Fashion Show example</h3><p>Imagine a fashion show with 2 catwalks.</p><p>The catwalk represents an observable sequence.</p><p>The first catwalk is for the designers behind the beautiful dresses. The second catwalk is for the models wearing those beautiful dresses made by these designers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*9EdzMoCANm0ZR91JUfg9Mw@2x.jpeg" /></figure><p><strong>map</strong></p><p>Each designer has made exactly one dress. There is the same number of designers and models. Each model is wearing a dress for a designer. So every time a designer walks out on the first catwalk, a model wearing his designed dress will walk out on the second catwalk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*8UqK5xKFBaKI_k6w9UNkAg@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*WKSRqJSTmSeXg_qCfo5xdw@2x.jpeg" /></figure><ul><li>The designers together form a sequence.</li><li>Each dress on its own is NOT a sequence. But the result of all dresses is a sequence.</li></ul><p><strong>flatMap</strong></p><p>Each designer has made several dresses. Every time a designer walks out on the catwalk, the models wearing his dresses start going out on the next catwalk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*aAVsJY1imAUWhAyk4FqiGQ@2x.jpeg" /></figure><p>Let’s say the number of models is less than the number of dresses. The models need to go backstage to change dresses.</p><p>Now the first designer went out on the catwalk, 2 models went out on the second catwalk wearing his first 2 dresses, but the designer still has more dresses to flaunt.</p><p>In the meantime a 2nd designer walks out on the first catwalk, the models will start wearing dresses of the 2nd designer as well, while they will continue to wear dresses of the first designer.</p><p>However, on the second catwalk, people watching the show, can no longer tell if the model is wearing a dress of the first or the second designer. The 2 series of dresses have been flattened (wink) into 1 series. You see 1 series of dresses regardless who the designer is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*JyjbHpIkPgiTiJAAZfOnqQ@2x.jpeg" /></figure><p>The first designer’s dresses will keep being worn and displayed until all of them are done. Models will keep going out on the second catwalk, until the designer catwalk no longer has new designers walking out and until all the dresses of each designer who walked out is completed too.</p><ul><li>The designers are a sequence.</li><li>Each designer’s dresses are a sequence on their own. But the combination of all the dresses of the designers is one sequence too!</li></ul><p>So? Did you see the difference? The map generates another observable sequence based on mapping each element to another element; each designer to a model; however, the flatMap allows you to operate on an observable where each element generates another observable, so the flatMap instead of generating another observable for each element of the first observable, it generates ONE observable sequence based on combining all of the resulting sequences.</p><p>Back to my example, if the flatMap didn’t do a flattening; for each designer walking out, there had to be a new catwalk constructed on the spot for the designer’s models to walk out onto.</p><p>I thought to myself: “Mmm okay, I got it. Thanks brain for creating this example for me. flatMapLatest is useless though. I don’t need to understand it now.”</p><p>Then with experience I understood that I need it even more than the flatMap, but I also could not understand it by just looking at the — although superhelpful — rxMarbles.</p><p>So how does flatMapLatest play out in this example?</p><p><strong>flatMapLatest</strong></p><p>People went crazy, they said we can no longer tell which dress is whose. So it was agreed that whenever a new designer walks out on the first catwalk, the dresses of the previous designer stop being displayed by the models on the second.</p><p>So the first designer walks out, the models start rolling out. The second one walks out, the models unsubscribe (wink) from his dresses, and dispose them (wink) then start wearing and walking out with the new designer’s dresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*wUKM6IjhIHQfuKg7As_zRw@2x.jpeg" /></figure><p>I really hope these examples made it easier for you. I’m someone who is very visual and to really understand things I need to associate them to real world examples. So if you’re like me, and found this helpful, please let me know in the comments. It would make me very happy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83aa85af3e38" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/the-example-that-made-me-understand-flatmap-and-then-flatmaplatest-83aa85af3e38">The example that made me understand flatMap and then flatMapLatest</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why being a Product Manager is the hardest role I played in my career]]></title>
            <link>https://medium.com/design-bootcamp/why-being-a-product-manager-is-the-hardest-role-i-played-in-my-career-c385fae7838b?source=rss-472cc1dc0962------2</link>
            <guid isPermaLink="false">https://medium.com/p/c385fae7838b</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Edgar El Jammal]]></dc:creator>
            <pubDate>Sat, 15 Jan 2022 23:55:11 GMT</pubDate>
            <atom:updated>2022-01-19T05:57:16.152Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, let’s discuss how the title sounds. “Product Manager”, mmm really fancy to be honest. “Fancier than a project manager” — I thought to myself. We’ve all made projects in our life, starting from school, going through university, down to ‘File &gt; Create New Project’ on some desktop app. But a product? No, you don’t create a product everyday, and being its manager? That must be a totally different story — That’s what I thought at first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bo0S4Tb2vYjhEHQGYer-fg.jpeg" /></figure><p>After being a Product Manager for more than a year, I can clearly tell why it’s the hardest role I played in my career:</p><ul><li>It’s the only role in a company that you cannot find one clear set-in-stone definition for. The definition of responsibilities vary from a company to another and even from a team to another within the same company, so good luck knowing what’s yours to do and what’s not.</li><li>You don’t get to decide a thing even though you’re perceived as the CEO of the product. But you’re really not — you may lead by influence <strong>only</strong>.</li><li>Engineers give the estimations not you, but upper management waits for you to put the roadmap, and you’re to blame if deadlines are not met.</li><li>Designers craft the user experience, but you go through everyone’s nitpicking on the usability and user interface.</li><li>You have to listen to everyone commenting on how the product can be improved, smile, and let them know their opinions and comments are noted; although they told you nothing new; the product is not even complete in your eyes, and most probably their comments were your comments at some point, but you had to do some tradeoffs to get to the current version of the product.</li><li>You always have to give reasons for each decision you take. If you thought “because I’m the Product Manager” works, you just failed product management.</li><li>Your main artifact as a PM is your roadmap, good luck keeping it untouched in such a changing world of priorities.</li><li>Everyone has their priorities, and they are right about them. But it’s so hard for you to define your priorities. Stakeholders prioritize income, designers prioritize the user, and developers prioritize the code and its maintenance. What do you prioritize? All of the above: the Product.</li><li>You will be asked by executives to just prioritize shipment over quality in certain cases. The same people will come back with bug reports and probably an emoji of discontent.</li><li>You want to say no to almost everything, but you just can’t, and you can’t be a yes-man at the same time.</li></ul><p>So what? Do I quit PMing? Well I’m almost trying to, because I discovered that UI/UX is my thing. But I learned a few things that are currently helping me to get the hang of it, and maybe even start liking it and developing an attachment for this role:</p><ul><li>The hard time I’m facing is almost the case for most product managers. I’m not alone — that’s the job.</li><li>I found out that the more I fall in love with the problems and understand them, and the more I learn to sow questions instead of trying to plant explanations for my decisions, the more I start reaping authority.</li><li>With the constant feedback I get from almost everyone, from executives to marketing, designers, and engineers, I’m becoming the most informed person in the room. I’m building knowledge like no one else is.</li></ul><p>I can’t deny that sometimes I just tune off, and daydream about paragraphs I need to type when asked about certain decisions or confronted with suggestions and “it would be nice to”s. But I think this is just my brain creating new connections on how to deal with the situation of being a PM. After all, this role is making me well fortified; I’m learning to deal with stress like I’ve never done before, and I’m getting skilled at working with all the different personalities of people. All of this is just making me grow as an individual, and I’m starting to fall in love with that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c385fae7838b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/why-being-a-product-manager-is-the-hardest-role-i-played-in-my-career-c385fae7838b">Why being a Product Manager is the hardest role I played in my career</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>