<?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 Rachel Moskowitz on Medium]]></title>
        <description><![CDATA[Stories by Rachel Moskowitz on Medium]]></description>
        <link>https://medium.com/@rachieb19?source=rss-8eb98977413f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CrDC8QIcUpuOvGxa</url>
            <title>Stories by Rachel Moskowitz on Medium</title>
            <link>https://medium.com/@rachieb19?source=rss-8eb98977413f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 12:25:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rachieb19/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[Copy & Paste Code]]></title>
            <link>https://rachieb19.medium.com/copy-paste-code-f443cb622de7?source=rss-8eb98977413f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f443cb622de7</guid>
            <category><![CDATA[code-newbie]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Rachel Moskowitz]]></dc:creator>
            <pubDate>Tue, 05 Jan 2021 19:03:44 GMT</pubDate>
            <atom:updated>2021-01-05T19:03:44.299Z</atom:updated>
            <content:encoded><![CDATA[<p>An Aspiring Developers Dream or A Struggling Developers Nightmare</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Z_V86SLX0tVU9Mp" /><figcaption>Photo by <a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;utm_medium=referral">James Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The old joke goes — what&#39;s the difference between a junior and senior developer? A junior developer tries to copy and paste from StackOverflow; a senior developer knows <em>what </em>to copy and paste from StackOverflow.</p><figure><img alt="meme: find code online, copy an paste into IDE, code doesn’t work, confused and sad look: code doesn’t work" src="https://cdn-images-1.medium.com/max/800/1*HJgtFUtUuv8hYFWzVxCqtQ.jpeg" /></figure><p>What qualifications do I have to tell you don&#39;t just copy-paste? I am an Instructor at a Coding Bootcamp, and I have taught over a hundred students how to go from code newbie to junior developer. I am by no means a perfect developer, but I have been around the block a few times.</p><p>So is copying and pasting code bad? Should people stop doing it? No! That’s not what I am implying here. Rather, I believe that you need to learn the hows and whys of code before you start copying and pasting. Because if you understand the code and then use it, you can reapply the logic under different circumstances.</p><p>I have an acronym that benefits newer developers when looking at code they may want to copy.</p><h3>Think <strong>ETC:</strong></h3><ul><li><strong>E</strong>xplain: Can you explain to yourself what each line of code you are copying does?</li><li><strong>T</strong>each: Could you teach how to use this code and when to use this code to another developer?</li><li><strong>C</strong>oncepts: Do you understand the code as a whole and what problem it fixes?</li></ul><p>If you can answer yes to all three of these questions awesome! But don&#39;t hit cmd/ctl + c yet! Here comes my next piece of advice:</p><h3><strong>Type it Out!</strong></h3><p>I will shout this from the rooftops if I have to. I don’t care if it is one line or twenty. Type out the code you are taking from another source. This will improve muscle memory, and the more you type out code, the more you will understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*C3O5giiY7PjC8KdEacbjNw.gif" /><figcaption>Typing out ALL of. my code</figcaption></figure><p>Have I convinced you yet? No? Ok, here are three other reasons never to copy and paste.</p><ol><li>Whitespace and Non-Printing Characters — if the code is not formatted correctly, it may break your code, and it won&#39;t be easy to figure out why.</li><li>Random code from the internet may have bugs in it — just because someone says that&#39;s the answer does not make it so. It also may cause issues with your codebase.</li><li>Security Vulnerabilities — enough said. If you don’t know why something works or what exactly it&#39;s doing, you don’t know what security risks you just opened up your code to.</li></ol><p>Do you agree with me? Disagree? Let me know in the comments! And remember, type it out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f443cb622de7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Struggles with React Native Link]]></title>
            <link>https://rachieb19.medium.com/struggles-with-react-native-link-1f1738076472?source=rss-8eb98977413f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f1738076472</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Rachel Moskowitz]]></dc:creator>
            <pubDate>Sun, 04 Nov 2018 15:19:53 GMT</pubDate>
            <atom:updated>2019-09-01T01:33:21.380Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Adding Facebook’s Login SDK to a React Native / Firebase App:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*60BPLkN_4Vbm0p4E.jpg" /></figure><p>** Note: React Native v0.60 now includes auto linking which may potentially solve this issue</p><p>I struggled with this specific piece of functionality on and off for a month due to a lack of documentation and a bunch of different build errors. What turned out to be the issue was, that as of the time I was creating this app, the command react-native link was not interacting properly with the react-native-fbsdk. I had to find a manual work around for this using the Facebook documentation and piecing together different debugging solutions from various sources. Below are the steps I took to incorporate the SDK with no errors and full functionality</p><h3>Major Errors I Encountered:</h3><p><strong><em>Duplicate module name: react native</em></strong> — This was because I did not realize that the Pod installation and the manual installation were doing the same job and therefore overwriting each other</p><p><strong><em>Cannot read property loginWithReadPermissions of undefined</em></strong><em> </em>— This was because the SDK was not linking correctly and therefore Login Manager would not work correctly.</p><h3>Final Step by Step Tutorial</h3><p>Run the following command in the root of your React Native project —</p><pre>npm i react-native-fbsdk</pre><p>NOTE: DO NOT RUN:</p><pre>react-native link react-native-fbsdk</pre><p>this will lead to errors and this tutorial is to work around those errors</p><p>Once this is done follow these step by step instructions</p><ol><li>Create a new Facebook App on the <a href="https://developers.facebook.com/">Facebook Developers Site</a></li><li>Enable Facebook Sign In on your Firebase project and add your new App ID and App Secret from the previous step</li><li>Download the Facebook SDK <a href="https://developers.facebook.com/docs/facebook-login/ios?sdk=fbsdk">here</a> into your Documents folder and unzip it</li><li>Create a directory in the ios folder of your application called Frameworks</li><li>Copy the following frameworks from the Facebook SDK folder to your new Frameworks folder — 1. Bolts.framework 2. FBSDKCoreKit.framework 3. FBSDKLoginKit.framework 4. FBSDKShareKit.framework</li><li>Add the following code to your Info.plist right above the last &lt;/dict&gt; tag and make sure to swap out the curly braces for your actual App ID and display name</li></ol><pre>&lt;key&gt;CFBundleURLTypes&lt;/key&gt;<br>&lt;array&gt;<br>  &lt;dict&gt;<br>  &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;<br>  &lt;array&gt;<br>    &lt;string&gt;fb{fb-app-id}&lt;/string&gt;<br>  &lt;/array&gt;<br>  &lt;/dict&gt;<br>&lt;/array&gt;<br>&lt;key&gt;FacebookAppID&lt;/key&gt;<br>&lt;string&gt;{fb-app-id}&lt;/string&gt;<br>&lt;key&gt;FacebookDisplayName&lt;/key&gt;<br>&lt;string&gt;{fb-display-name}&lt;/string&gt;<br>&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;<br>&lt;array&gt;<br>  &lt;string&gt;fbapi&lt;/string&gt;<br>  &lt;string&gt;fb-messenger-share-api&lt;/string&gt;<br>  &lt;string&gt;fbauth2&lt;/string&gt;<br>  &lt;string&gt;fbshareextension&lt;/string&gt;<br>&lt;/array&gt;</pre><p>7. Add the following code to your AppDelegate.m under didFinishLaunchingWithOptions</p><pre>[[FBSDKApplicationDelegate sharedInstance] application:application<br>    didFinishLaunchingWithOptions:launchOptions];</pre><p>If you are unsure where this is see the picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECUo1oQhd-XmmjhQWm2RAg.png" /></figure><p>8. Add the following code to your AppDelegate.m right before the final @end</p><pre>- (BOOL)application:(UIApplication *)application <br>            openURL:(NSURL *)url <br>  sourceApplication:(NSString *)sourceApplication<br>         annotation:(id)annotation {</pre><pre>  BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application<br>    openURL:url<br>    sourceApplication:sourceApplication<br>    annotation:annotation<br>  ];<br>  // Add any custom logic here.<br>  return handled;<br>}</pre><p>9. Add the following code to your Login page</p><pre><em>import</em> { LoginButton, AccessToken } <em>from</em> &quot;react-native-fbsdk&quot;;</pre><pre>&lt;LoginButton<br>          publishPermissions={[&quot;email&quot;]}<br>          onLoginFinished={<br>            (error, result) =&gt; {<br>              if (error) {<br>                alert(&quot;Login failed with error: &quot; + error.message);<br>              } else if (result.isCancelled) {<br>                alert(&quot;Login was cancelled&quot;);<br>              } else {<br>                alert(&quot;Login was successful with permissions: &quot; + result.grantedPermissions)<br>              }<br>            }<br>          }<br>          onLogoutFinished={() =&gt; alert(&quot;User logged out&quot;)}/&gt;</pre><p>10. Now here comes the Xcode part to manually link the SDK to your project. Find your project’s .xcodeproj file and open it in Xcode.</p><p>11. Click and drag the the files from your Frameworks folder to your Framework folder in Xcode making sure to click copy if needed in the dialog box that pops up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*spdBrfS1QwfgMy6httbHwA.png" /><figcaption>Final Frameworks Folder Xcode</figcaption></figure><p>12. Go into your node_modules folder and find the folder labeled `react-native-fbsdk` in there go into your ios folder and copy the RCTFBSDK.xcodeproj to your Libraries folder in Xcode making sure to click copy if needed in the dialog box that pops up so you end up with this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*P86xIwx6BubImsBUaUp40A.png" /><figcaption>Final Libraries Folder in Xcode</figcaption></figure><p>13. Go to your project’s Build Phases — found by clicking your project name in the project navigator and under Link Binary With Libraries add the libRCTFBSDK.a library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RK6PR657YUApWYFlEPnZYg.png" /></figure><p>Now build your project and watch the magic happen!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f1738076472" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>