<?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 Rebecca M Fortes on Medium]]></title>
        <description><![CDATA[Stories by Rebecca M Fortes on Medium]]></description>
        <link>https://medium.com/@rebeccamfortes?source=rss-c70b2946a772------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0fx8C6Z0C4FuVY1-h0L4vg.jpeg</url>
            <title>Stories by Rebecca M Fortes on Medium</title>
            <link>https://medium.com/@rebeccamfortes?source=rss-c70b2946a772------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 04:16:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rebeccamfortes/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[Code With Me: Make a Phone Number]]></title>
            <link>https://medium.com/@rebeccamfortes/code-with-me-make-a-phone-number-f123a2cea28c?source=rss-c70b2946a772------2</link>
            <guid isPermaLink="false">https://medium.com/p/f123a2cea28c</guid>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[code-with-me]]></category>
            <category><![CDATA[code-challenge]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rebecca M Fortes]]></dc:creator>
            <pubDate>Fri, 03 Jul 2020 14:26:29 GMT</pubDate>
            <atom:updated>2020-07-03T15:13:36.244Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently had my first technical interview, and more than anything, I’m glad the first one is out of the way. It was tough: a timed, two-and-a-half hour test in which I was presented with ten coding challenges. Four were multiple-choice quiz questions; four more tested your knowledge of algorithms; of the remaining two, one was a front-end challenge and the other, a back-end.</p><p>I’ve thought a lot about a particular question, in part because I was proud of myself for knowing how to tackle the solution — and in part because I have since kneaded the problem in my mind for days, and gained deeper insight into my own code.</p><p>The prompt was something to the effect of: “Given a phone number in the form of an array of ten integers, write a function so that the array is returned as a string, and the phone number reads, for example, (123) 456–7890.”</p><p>My learning style embraces the experimental, so I’m going to walk through this prompt by taking every wrong path that might lead a dev astray.</p><p>Let’s code.</p><p>The prompt provided me with three arrays to test my code. (Really, it provided me with five, but two of them were hidden.)</p><p>For our purposes, let’s begin with this:</p><figure><img alt="digits = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]" src="https://cdn-images-1.medium.com/max/774/1*M1BIwBTk1DC2cJYr2a9q_g.png" /></figure><p>My first inclination was to use the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice">.slice() method</a>, which returns a portion of an array into a new array object selected from start to end, end not included.</p><p>So, I wrote a function with a descriptive name and cut up my array as I thought appropriate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9H-tXKpUxJXD1DORONp4uQ.png" /></figure><p>Looks easy! But it’s not quite it.</p><p>If we run this in our console, this is what we see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*-H0u-t3zeNMjfu599XPOOA.png" /></figure><p>We got a string, great! But how do we get rid of those commas?</p><p>(A quick detour: some might read this and wonder why I didn’t save myself some keystrokes and choose variable names like ‘x,’ ‘y,’ and ‘z.’ The answer is readability; when I see a variable named areaCode, my brain is quicker to understand that I’m dealing with an abstraction of an area code.)</p><p>To remove the commas, we’ll use .join(“”). When used with an array, this method returns a new string concatenated with a specific separator. The parameter is optional — whatever parameter is passed, will be what goes between each element in the array.</p><p>We’re formatting a phone number, so we want no space.</p><p>Let’s declare a new variable to store our new string. We’ll also need to change the values that our variables are storing, so that they’re pulling from the phoneNumber string rather than the digits array. Now, our function looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*8qqrgn2m9UA-jfYfYVO4-w.png" /></figure><p>Does it work? Yes. Here’s our console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*1xCkfcbTIqPvzbOs2vYLLg.png" /></figure><p>Not so fast, though.</p><p>As programmers, it’s important for us to consider as many variables as possible. Though I could see that the test arrays I had been provided all contained ten digits, a better block of code would account for the user who enters fewer than ten digits, or more.</p><p>We can account for this by adding an if statement:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1a1LzVf3m8X_PfqY9PQn0A.png" /></figure><p><em>If </em>the user enters ten digits, then format the phone number. Otherwise, ask the user to enter ten digits. Let’s test our code with an array the length of which is less than ten.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*vIzyHszMOPUuSYaQEAZX6A.png" /></figure><p>Cool, it works! Are we done?</p><p>Not so fast. How can we know the user will enter ten numeric digits? Well, we can’t, but for our program to work as best as it can, we need to account for that. Let’s amend our if statement by adding another condition.</p><p>In addition to checking the length of the array, we want our program to confirm the array only contains integers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*xXqm1kGpGeHbBM6-nZyZCA.png" /></figure><p>Cool. Let’s test our code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*dRNbTHtekGtWldADaSeYBw.png" /></figure><p>Let’s test it with new arrays, too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*huGe4T5hCPsqBFLb4Nf3SQ.png" /></figure><p>Looks like we’re done. Good work!</p><p>One of the things that made me fall in love with programming was the way in which any given problem could be manipulated into abstraction and solved in a million different ways, be it poorly or partially, elegantly or sustainably. To that effect, if you’d tackle this problem differently — let me know in a comment.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f123a2cea28c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading List: Black Lives Matter]]></title>
            <link>https://medium.com/@rebeccamfortes/reading-list-black-lives-matter-d5a2aa111563?source=rss-c70b2946a772------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5a2aa111563</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[anti-racist]]></category>
            <category><![CDATA[readinglist]]></category>
            <category><![CDATA[social-justice]]></category>
            <dc:creator><![CDATA[Rebecca M Fortes]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 18:50:00 GMT</pubDate>
            <atom:updated>2020-06-16T01:07:59.304Z</atom:updated>
            <content:encoded><![CDATA[<p>Read With Me: Black Lives Matter</p><p>Hello, there. My name is Rebecca Fortes. If you’re here, you may or may not know me. Regardless, it’s real nice to meet you.</p><p>I’m a writer and software engineer. After half a decade working as a literacy advocate through nonprofits and independent presses and bookstores, I started to crave a new challenge: one that would fuse my passion for public service with my creativity and more logical, programmatic thinking.</p><p>I imagined my first post would be a list of books that guided my pivot from books &amp; literacy to tech — there were many that guided me, as books do.</p><p>But I’d like to do differently.</p><p>I’d like to recommend books that are especially worth reading right now: as city streets worldwide are flooded with demonstrators demanding long-overdue justice for yet another Black person robbed of their right to life; as the president of the United States tear gasses peaceful demonstrators prior to curfew and without warning for a photo op.</p><p>Storytelling is, I think, our most important mirror. The stories bound in these books are a reflection from which we cannot afford to look away. They’re some of my lighthouses. May they light the way for you, too.</p><figure><img alt="How to be an Antiracist by Ibram X. Kendi" src="https://cdn-images-1.medium.com/max/661/0*uCfJkXPXEt5S_YEQ" /></figure><p>In my bookselling days, I was fortunate enough to read a galley of <a href="https://bookshop.org/books/how-to-be-an-antiracist/9780525509288">How To Be an Antiracist</a> before it hit the market. Equal parts memoir and call-to-action, it’s laden with advice for how to be active in the urgent and necessary fight against racism. “One either allows racial inequities to persevere, as a racist, or confronts racial inequities, as an antiracist,” writes Dr. Ibram X. Kendi. “There is no in-between safe space of ‘not racist.’ The claim of ‘not racist’ neutrality is a mask for racism.”</p><p>Got young folks in your life? Great news: Dr. Kendi and author Jason Reynolds teamed up to write <a href="https://bookshop.org/books/stamped-racism-antiracism-and-you-a-remix-of-the-national-book-award-winning-stamped-from-the-beginning/9780316453691">Stamped: Racism, Antiracism, and You</a>, a young readers’ version of Dr. Kendi’s National Book Award-winning <a href="https://bookshop.org/books/stamped-from-the-beginning-the-definitive-history-of-racist-ideas-in-america-9781568585987/9781568585987">Stamped From the Beginning: The Definitive History of Racist Ideas in America</a>. Dr. Kendi is the founding director of the Anti-Racist Research and Policy Center at American University, and the Library of Congress named Reynolds the National Ambassador for Young People’s Literature in January of this year. So, they’ve got credentials.</p><figure><img alt="catalogue of unabashed gratitude by ross gay" src="https://cdn-images-1.medium.com/max/750/0*bDs_aKBZNMDBQb4p" /></figure><p>As we all share lists of antiracist reading and resources, I think we’d be remiss if we did not also elevate stories of Black friendship, Black love, Black joy, and Black life in all its beautiful complexity. The poems in <a href="https://bookshop.org/books/catalog-of-unabashed-gratitude/9780822963318">Ross Gay’s Catalog of Unabashed Gratitude</a> brim with ecstatic joy and — as the title suggests — gratitude. Ross Gay is also the author of <a href="https://poets.org/poem/small-needful-fact">A Small, Needful Fact</a>, a poem I return to again and again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*b8PBunp7o_eYlg6d.jpeg" /></figure><p>What kind of list would this be without Toni Morrison on it? I include <a href="https://bookshop.org/books/song-of-solomon/9781400033423">Song of Solomon</a> because it’s my favorite of her titles, but do yourself a favor: read her. Know her work, because wow did it transcend her otherworldly prose. In the 1960s, Toni Morrison became the first Black female editor at Penguin Random House and used her role to uplift African voices and foster a new generation of Black American writers: Angela Davis, Toni Cade Bambarra. She brought to publication the autobiography of Muhammad Ali, The Greatest: My Own Story.</p><p>And then she got to work on her own books, and went on to become the first Black American to win the Nobel Prize in Literature.</p><p><a href="https://www.tonimorrisonfilm.com/">In 2019, Magnolia Pictures made a documentary about her that I can’t recommend highly enough.</a></p><p>Her <a href="https://www.youtube.com/watch?v=lsiETgcYM7s">1993 interview with Charlie Rose</a> is also well worth watching.</p><figure><img alt="If Beale Street Could Talk" src="https://cdn-images-1.medium.com/max/1024/0*rgQWElaSk5PmmATY.jpg" /></figure><p>This is actually one of the greatest books I’ve ever read, and not just because James Baldwin writes truly spellbinding sentences. Herein lies the story of nineteen-year-old Tish and her lover, Fonny. Fonny’s story is sickeningly familiar, even in 2020, forty-six years after the novel’s publication. What I love about this book is its portrayal of love: how fiercely Tish’s family fights for justice for Fonny, and the tenderness and hope with which it treats the baby Tish is expecting.</p><figure><img alt="Americanah" src="https://cdn-images-1.medium.com/max/408/0*CCz6-7WYgncQV5ce.jpg" /></figure><p>You might have seen Chimamanda Ngozi Adichie’s TED Talk, <a href="https://www.ted.com/talks/chimamanda_ngozi_adichie_the_danger_of_a_single_story?language=en">The Danger of a Single Story</a>. (In the event that you haven’t, it’s well worth your time.)</p><p>I absolutely loved this novel; it follows young lovers Ifemelu and Obinze as they migrate from Nigeria to the West. Obinze finds himself living an undocumented life in London while in the United States, Ifemelu realizes for the first time in her life what it means to be Black.</p><figure><img alt="they can’t kill us until they kill us by hanif abdurraqib" src="https://cdn-images-1.medium.com/max/371/0*UWXUFvLkib3qPd61.jpg" /></figure><p>Of the night in 2007 when Prince made the Halftime show upstage the Superbowl itself, Hanif Abdurraqib writes: “There are moments when those we believe to be immortal show us why that belief exists.” Of Chance the Rapper’s meteoric success, he writes: “I think what Chance does is what the best artists of color manage to do in this setting: makes music facing his people while also leaving the door open for everyone else to try and work their way in.”</p><p>I think Hanif is one of our smartest living writers, because his writing does what the best writing does: irrevocably changes how I view things. I haven’t thought of Fetty Wap’s “Trap Queen” the same since <a href="http://sevenscribes.com/in-defense-of-trap-queen-as-our-generations-greatest-love-song/">Hanif made a case for it as our generation’s greatest love song</a>. Catch him musing on a Tribe Called Quest in his other collection of essays, <a href="https://bookshop.org/books/go-ahead-in-the-rain-notes-to-a-tribe-called-quest/9781477316481">Go Ahead in the Rain: Notes to a Tribe Called Quest</a>. Poetry more your jam? <a href="https://bookshop.org/contributors/hanif-abdurraqib">Well, he does that, too</a>.</p><figure><img alt="citizen by claudia rankine" src="https://cdn-images-1.medium.com/max/433/0*JkLSITswn0yALGo9.jpg" /></figure><p>I promise you’ve never read a book like Citizen. ‘American Lyric’ is the best word to describe it. Here you’ll find essays, poems, power, and grief. Hybridity and art and rage. This book resists description — but it is required reading.</p><p>This list is a <em>very </em>small sampling of cherished books within my own personal library. We all have reading to do, and I intend to start with <a href="https://bookshop.org/books/the-new-jim-crow-mass-incarceration-in-the-age-of-colorblindness-anniversary/9781620971932">Michelle Alexander’s The New Jim Crow</a>. Ross Gay’s <a href="https://bookshop.org/books/the-book-of-delights-essays/9781616207922">The Book of Delights</a> is on deck, too.</p><p>For more recommendations, I recommend checking out this <a href="https://bookshop.org/lists/antiracist-reading-recs">Antiracist Reading List</a> put together by Loyalty Books, a Black-owned bookshop in DC and Maryland. Shop through their affiliate link and you’ll benefit the store. You can also buy from Loyalty Books <a href="https://www.loyaltybookstores.com/">directly</a>.</p><p>Thanks for being here. Let’s get to work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a2aa111563" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>