<?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 Sam Nayrouz on Medium]]></title>
        <description><![CDATA[Stories by Sam Nayrouz on Medium]]></description>
        <link>https://medium.com/@samuel.nayrouz?source=rss-85d042a428bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q1-Tfz76tI8IEr3Y0_C2xQ.jpeg</url>
            <title>Stories by Sam Nayrouz on Medium</title>
            <link>https://medium.com/@samuel.nayrouz?source=rss-85d042a428bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:35:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuel.nayrouz/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[Slack Overflow?]]></title>
            <link>https://medium.com/@samuel.nayrouz/slack-overflow-566bb0caaca3?source=rss-85d042a428bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/566bb0caaca3</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[stackoverflow]]></category>
            <category><![CDATA[resources]]></category>
            <dc:creator><![CDATA[Sam Nayrouz]]></dc:creator>
            <pubDate>Thu, 21 Jun 2018 22:39:13 GMT</pubDate>
            <atom:updated>2018-06-21T22:39:13.020Z</atom:updated>
            <content:encoded><![CDATA[<p>There was a time not so long ago when I believed that Stack Overflow was the one stop shop for all problems software engineers face. The “Google of engineering problems”. With over 40 million engineers on their site monthly, it made sense that Stack Overflow would be the go to resource to ask for help on your engineering issues.</p><p>As I completed Turing School of Software and Design and began my professional engineering career, I found that in 2018 there are much more resources available for engineers, regardless of the technologies you’re using. Language specific documentation has gotten better. Engineers have become better writers. Not to say Stack Overflow still isn’t engineering gold, the experience in which receiving help and searching for resources has changed for an engineer.</p><p>Working on personal projects at home and not in a classroom or work environment, I found myself wanting more from the resources I was utilizing.</p><p>Enter Slack. Throughout my sales career I never understood the true value of community that Slack holds. In my previous profession, I used Slack to communicate with my direct team, look at GIFs engineers would send and scroll through the GIFs in search of company announcements.</p><p>I first came across a great, local Slack workspace called <a href="https://denverdevs.org/">Denver Devs</a>. For the first time as an engineer, I felt included in a community of my peers. It was exciting to see everyone coming together for the sole purpose of their love to code. Not only that, everyone is local to my community in Denver. Jobs, Meetups, questions and answers are being regularly. It can seem overwhelming at first, with many channels to choose from and making sure your in the right channels that would benefit you. However, what social platform isn’t overwhelming at first take?</p><p>I found myself stuck in thought. I used to work for Stack Overflow, yet I haven’t contributed as much as I thought and want to. I hadn’t felt the feeling that developers from all over the world used to feel when they told me how much Stack Overflow has helped them progress as an engineer. Many even said they couldn’t do their day to day job without Stack Overflow.</p><p>I began to be mindful of where I was going for help because I knew that employers can view my Stack Overflow profile, and if I’m not contributing, I thought I may be getting overlooked for opportunities. Should I sit and wait for a question I know I can answer just to gain points, be noticed and possibly get hired?</p><p>Beer in hand, I made a list of what I feel the benefits and pitfalls have been on both platforms. <em>This is all my personal opinion, based on my personal experiences. I’d love to hear anyone’s input or about their experience’s with the two platforms.</em></p><h3>Slack Advantages</h3><ul><li>Engineering Slack communities provide me the most immediate feedback. The platform facilitates conversation from engineers who may have built the framework/language/technology pertaining to the questions I have.</li><li><em>On Stack Overflow, I’ll post my question and wait. Maybe for seconds, maybe for minutes, maybe for hours. I pray not days. There’s also a (small) possibility my question never gets answered :*( Many Engineering Slack communities link Stack Overflow for their question/answer forum so who’s to say what’s best at the time.</em></li><li>Engineering Slack communities help me work on communicating effectively with engineers from all over the world.</li><li><em>It’s a must that you provide detailed information regarding your question/problem on Stack Overflow. Personally, I don’t feel that it helps me sharpen my communication skills as effectively as Slack and real conversation does in a group setting.</em></li><li>Engineering Slack communities allow me to see how other developers think through and solve complex problems. Resources are shared, and often times, an engineer from anywhere in the world will hop on a screen share with you. In my opinion, this is the best help anyone at my skill level can receive for free.</li><li><em>You can feel somewhat defeated when you ask a question and never truly get the answer you want on Stack Overflow. Scrolling through pages and pages of questions and answers, some dating too far back for the version you’re looking for. And, from what I understand, Stack Overflow monitors the comments to make sure the answers provided are valuable and that there is not a lengthy back and forth conversation in the comment section (could be wrong here).</em></li><li>I’m never concerned with who is answering my question in a Slack community because it’s usually multiple engineers. Many times a great side conversation is sparked based on a question I’ve asked in Slack. In real time, I’m able to explain my errors, what I’m trying to accomplish and in seconds/minutes, I’m problem solving and debugging with an engineer, whether they’re a generalist, subject matter expert or new to engineering like myself.</li><li><em>Something always bothered me about reputation points on Stack Overflow. I understand the gamification psychology and why it was built into the Stack Exchange network. I’ve personally learned a lot about ego and it’s pitfalls (that’s a separate conversation). I feel that reputation points feed into ego. Not to say their aren’t egotistical people in all communities and online social platforms. I believe people should want to help because it’s the right thing to do and not because the number next to their name will get bigger. In any case, I know there are genuine people on both platforms, but for reasons that are personal to me, I’ve never enjoyed the gamification aspects of Stack Overflow.</em></li></ul><h3>Stack Overflow Advantages</h3><ul><li>Over 40 million engineers visit stack overflow every month. I believe a majority of them are eager and excited to help other engineers.</li><li><em>Slack has a much smaller audience and it’s typically the same people answering questions and providing help. Some could argue this is a good thing. I see and understand both sides.</em></li><li>The feeling of providing a correct answer is incredible. With a verified correct answer, you’ve helped engineers from all over the world who may come across the same problem you experienced while coding. Your answer is there forever (I think) which is cool because Stack Overflow is the one site that most engineers respect and trust.</li><li><em>In my experience, helping someone in a Slack community is mirrored to helping someone on your direct team. You/They ask a question, it’s answered, you throw in a GIF, and life goes on. The problem here is that the answer is never stored or documented for other engineers and get’s lost in the noise.</em></li><li>The community managers are professionals. Lots of time, energy and resources are invested into making sure you feel welcomed and that you’ll come back. In fact, check out their recent blog post on how they’re making improvements to the community by their Product Manager, Joe Friend: <a href="https://stackoverflow.blog/2018/06/21/rolling-out-the-welcome-wagon-june-update/">Rolling out the Welcome Wagon</a></li><li><em>I understand it must be difficult being an admin in a Slack community. You’re essentially creating a space to talk about common interests, but with great power, comes great responsibility (I knew I wouldn’t make it without a Spiderman quote). In my experience, admins can be rude and filled with too much power. While this isn’t true for the majority of Slack communities. I don’t think a lot of them want to try to empower the users, but would rather be the source of power and authority and make community rules on their own (which in turn discredits the “community”).</em></li></ul><h3>Undecided</h3><ul><li>Stack Overflow Careers and Slack Job channels — I really really really want to give Stack Overflow the advantage here as I owe them the experience I gained as an employee to me becoming a software engineer. I trust and believe that Joel Spolksy and the team at Stack Overflow are the voice of many engineers when it comes to software engineering recruitment. They’ve dedicated their business into solving the engineer hiring pains we all face. I enjoy having a Developer Story on Stack Overflow Careers. It truly tell a better story than my resume. I enjoy the job ads which are targeted towards me based on the languages/technologies I’m visiting on Stack Overflow. I’m undecided as to where the real advantage lies between these two platforms because say, for example, I’m looking for a company that works with GraphQL. I can join the GraphQL Slack community and join the ‘Jobs’ channel and know that those jobs will be what I want. This is true for many technologies. Check out this list created by Alex Kistenev: <a href="https://medium.com/startupsco/the-full-list-of-400-slack-communities-5545e82cf65d">The Full List of 400 Slack Communities</a>. I understand that I am junior in the eyes of many companies, but in a Slack channel, employers can truly see how I’m helping other engineers. They’ll see how I communicate and talk through problems with engineers from all over the world. That’s if they’re really looking ;)</li></ul><p>Jeff Atwood and Joel Spolsky started Stack Overflow because there was not a free place, at the time, for developers to go to when they had programming questions. The amount of incredible and useful information on Stack Overflow is unparalleled.</p><p>I’ve set a goal for myself to not get complacent when it comes to my programming resources. I never want to be dependent on one or two sources of information because I’ll only be as good as those few sources. I hope that as I begin to contribute more on Stack Overflow and help other engineers from around the world, I can make the same professional relationships as I have in Slack communities.</p><p>At the end of the day, it’s important to always be curious and finding help from all types of resources. The funnest part about software development is tackling a problem you’ve never faced.</p><p>I love them both and I can’t wait to become a better resource for other engineers on both platforms. I would be really interested to hear your thoughts! I know there is no right answer as people learn differently, but I wanted to write this blog to see what other people thought and to create conversation.</p><p>Stay Weird Interwebs,</p><p>Sam</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=566bb0caaca3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Open Source Contribution-Pokemon Showdown]]></title>
            <link>https://medium.com/@samuel.nayrouz/my-first-open-source-contribution-pokemon-showdown-cf817aa6324c?source=rss-85d042a428bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf817aa6324c</guid>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Sam Nayrouz]]></dc:creator>
            <pubDate>Wed, 10 Jan 2018 13:49:42 GMT</pubDate>
            <atom:updated>2018-06-22T00:27:59.956Z</atom:updated>
            <content:encoded><![CDATA[<p>In my final week at Turing, we were challenged as a group to find an open source project to contribute to. Our group decided we wanted to contribute to <a href="https://pokemonshowdown.com/">Pokemon Showdown</a>, a website that is a simulator for Pokemon battles. It was really interesting because the website has a lot of functionality (ie. chat rooms, watching others battle, building a team to battle).</p><p>The developers that maintain the repository made jumping into their codebase as an entry level engineer smooth. They have a section called “<a href="https://github.com/Zarel/Pokemon-Showdown/issues/2444">Ideas For New Developers</a>” that have issues for engineers like myself to tackle.</p><p>As a team, we decided we wanted to refactor their test suite based on a new function being used in code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*9FG2OK5OjOjn-iu1" /></figure><p>They have a great READme that allowed us to get set up locally, quickly. I noticed that when I initially went through the file structure, everything was well organized and maintained. The code is DRY which made it easy for me to jump in and understand what each function was doing and how models were separated out.</p><p>We all decided that we would each to a Pokemon move test and refactor the test based on the new method being used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/0*dJhpFTorCNBX3Ozf" /></figure><p>What’s interesting is that the most challenging part of my first open source contribution was that I didn’t know anything about Pokemon, so I found myself Googling more Pokemon questions around moves and battles than I did looking through the docs of the repository. What I also found interesting was their level of dedication to making the code DRY and readable for any dev to participate in their repository. If I could change one thing in the project directory, it would be to put all the Pokemon move models into a folder to clean up the file structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*2g7JNM8ttdDbfv_3" /></figure><p>I’m excited to continue to contribute to the open source community. My first initial feeling of hesitation to contributing to open source projects is now gone. I find that the open source community is welcoming to new engineers. For me, that makes contributing more and often a task of the future.</p><p><em>Originally published at </em><a href="https://naydaysite.wordpress.com/2018/01/10/my-first-open-source-contribution-pokemon-showdown/"><em>naydaysite.wordpress.com</em></a><em> on January 10, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf817aa6324c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two-Factor Password Reset in Rails Using Twilio SMS]]></title>
            <link>https://medium.com/@samuel.nayrouz/two-factor-password-reset-in-rails-using-twilio-sms-fd18b3f17940?source=rss-85d042a428bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd18b3f17940</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Sam Nayrouz]]></dc:creator>
            <pubDate>Tue, 24 Oct 2017 02:25:44 GMT</pubDate>
            <atom:updated>2018-06-22T00:28:41.931Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, a requirement for our brownfield project (inheriting the code from a project we completed in a past module at Turing), we were required to use Twilio for two-factor password reset on our e-commerce platform.</p><p>I was eager to take this card on Pivotal Tracker because I knew it would be a good learning experience and it was something new to get my hands dirty with. In this post, I’ll also walk through the TDD used to test our story using RSPEC.</p><p>Let’s start with the user story:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/0*GyFSXOB1B4a4VYxk" /></figure><p>A guest user is a user who has not registered with our e-commerce site but has access to view items in a store, put items in a cart from multiple stores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*5amh2Sts_JPsTm86" /></figure><p>When they click on the link that reads “Forgot My Password”, they will be redirected to a path with a route of:</p><p>Here’s what the Rspec test looks like so far:</p><p>Based on the user story, we expect the ‘/password-reset’ path to have content such as a submit button and a field to enter their email:</p><p>Once a user enters their email associated with their account on our e-commerce site, they will receive a verification code to create a new password.</p><p>This is where the Twilio fun starts.</p><p>I’m building this e-commerce site using Ruby on Rails, so my next step is to visit Rubygems.org and search for the gem “twilio-ruby”. I personally like to have the most updated version of a gem when starting from scratch, but I understand how that can cause issues at a much larger scale.</p><p>I’ll copy that gem and stick it in the Gemfile. I’ll also be using the Figaro gem, which helps keep our SID and Twilio Auth Token hidden so no one can be malicious on our e-commerce site.</p><p>Once both gems are in my Gemfile, I will run ‘bundle’ in the command line. I will also run ‘bundle exec figaro install’ in my command line so that I get the correct .yml files in my ‘config’ folder.</p><p>Next, let’s go to twilio.com and set up a trial account to receive a Account SID, Auth Token and a fake phone number to have your messages sent from.</p><p>Once you have all three, open up your ‘application.yml’ file and put those in there:</p><p><strong><em>The above is all fake and reads ‘RANDOMSTUFF’ with numbers between the letters. Don’t be malicious in any circumstance.</em></strong></p><p>I’d also like to note Twilio provides great docs for specific languages if Ruby isn’t your taste.</p><p><em>Onward!</em></p><p>Let’s breakdown what happens next. The user clicks on ‘Get Confirmation Code’ and they receive a text with a code. Simple? Eh, not so much at first.</p><p>The user story says that they should be on ‘/password-confirmation’:</p><p>Now for the fun stuff.</p><p>Every route needs an action right? You’ll notice from my two route examples, I have a ‘passwords’ controller and a ‘confirmations’ controller.</p><p>The ‘passwords’ controller has a new, create and update action.</p><p>The ‘confirmations’ controller has a ‘new’ action.</p><p>In our ‘passwords’ controller, our ‘create’ method should find a user by their email, then trigger a method to send a confirmation to our user.</p><p>“Sam! What’s the ‘ConfirmationSender’ class method doing?!?!”</p><p>I thought you might ask. Well as you can tell, there’s a ‘send_confirmation(user)’ method in this class. So let’s take a look at that:</p><p>“SAM!! NOW THERE ARE EVEN MORE CLASSES AND METHODS!!”</p><p>Ya I know. In order for us to send a confirmation to the user, we have to generate a code. This method is also checking that the verification code you enter matches the one that is assigned to you in the DB.</p><p>Oh ya, the DB.</p><p>We’ll have to run two migrations to add a ‘phone’ column and ‘verification_code’ column to users’.</p><p>The ‘CodeGenerator’ module is straight-forward Ruby. Gotta love a good PORO!</p><p>Next, our ‘MessageSender’ class runs the ‘send_code’ method. This is the class and method that’s actually sending the code to the user’s phone number associated with their ID in the database:</p><p>In the method ‘send_code’, we’re using the ‘twilio_auth_token’ and ‘twilio_account_SID’ we saved in our ‘application.yml’ file and then sending the message to the user.</p><p>At this moment, the user has received a text and is now on the ‘/password-confirmation’ path.</p><p>The next action we have is our ‘new’ action in the ‘confirmations’ controller. This action simply finds the user by the email they provided with their account:</p><p>The user story says they should see instructions to enter their confirmation code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*9BPQdYujVq3jdPx7" /></figure><p><em>**Yes I know the content is a bit different from the user story, but that was a team decision**</em></p><p>Now the user has an SMS with their 6 digit code. They’ll enter that code, a new password and confirm that new password one more time.</p><p>When they click on ‘Submit’ they should be redirected to ‘/dashboard’. We’ll update our current password with a ‘UPDATE’ action in our ‘passwords’ controller:</p><p>The user will now be logged in and their password will be updated in the database.</p><p>I’m not going to go through the sad path testing, but it’s important that YOU DO!</p><p>Cheers,</p><p>Sam</p><p><em>Originally published at </em><a href="https://naydaysite.wordpress.com/2017/10/24/two-factor-password-reset-in-rails-using-twilio-sms/"><em>naydaysite.wordpress.com</em></a><em> on October 24, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd18b3f17940" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If you want something, just do it.]]></title>
            <link>https://medium.com/@samuel.nayrouz/if-you-want-something-just-do-it-3d23899f1408?source=rss-85d042a428bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d23899f1408</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Sam Nayrouz]]></dc:creator>
            <pubDate>Mon, 23 Oct 2017 14:55:43 GMT</pubDate>
            <atom:updated>2018-06-22T00:29:23.008Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s often times hard to keep up with the fast moving tech industry. From the newest frameworks, to the latest summits/expos. Something I’ve learned from my mentor and instructors is to explore new technologies, frameworks, etc when you run into a problem with your current stack. Meaning, your current tools can’t handle the load of work you’re doing anymore.</p><p>Great advice. However, that’s not how I fell in love with GraphQL. I fell in love with GraphQL out of pure human experience. While at Turing, I have to make ends meets, so I find time to drive for Lyft when I can. It was then that I met a fellow engineer who told me about GraphQL and to simply explore it if I have time.</p><p><strong>My Initial Frustration</strong></p><p>In Turing’s backend program, we learn how to implement restful API’s. We learn the importance of creating endpoints for the data we want back. We learn strategies to read through API docs to understand the full capabilities of a particular API.</p><p>When I began to see GraphQL in API documents, like the curious person I am, I asked instructors around Turing if that’s something we’ll be learning. The overall response was something along the lines of ‘learn restful API’s so that you understand it’s benefits and downfalls before you learn something new’.</p><p><em>Fair enough.</em></p><p>How can I respect the power of GraphQL without knowing the problem it solves?</p><p>As my curiosity deepened, I thought to myself ‘I’ll go and attend a meetup that focuses on GraphQL and learn from the developer community around me.</p><p>To my surprise, there was not a GraphQL specific meetup in the Denver/Boulder area. Sure, there are great meetups that I’m sure cover GraphQL and it’s impact from time to time, but nothing where I can learn from industry experts in my community.</p><p><strong>Initial thought:</strong> ‘Well, I guess I’ll have to teach myself and search for meetups that may cover GraphQL’.</p><p>I put together a 5 minute lightning talk to share with the students at Turing, just in hopes to peak their interest and get them as exited as I am about GraphQL.</p><p>That was difficult. How do you give a 5 minute talk on a topic that can be talked about for weeks? How do you give a 5 minute talk on a topic that, I would guess, 80% of the school could understand even if they haven’t been exposed to API’s yet?</p><p>The answer was to keep it high level and use a broad metaphor that everyone could relate to. Get the data you want back with one call as opposed to many calls. Pretty simple right? Haha…</p><p>What now?</p><p>The day after I gave my lightning talk, I sat in the vault here at Turing and watched video after video of GraphQL for rails. I was excited to learn how Shopify specifically uses GraphQL because we build out a few commerce projects here at Turing.</p><p>I overheard a peer sitting behind me saying ‘I have to give a lightning talk on GraphQL for my interview so I’m putting together slides now’.</p><p>To my excitement, I pulled the curtain and said ‘HEY I JUST DID THAT LET ME HELP YOU!!’.</p><p>It was after him and I sitting together talking about GraphQL that I knew I wanted to do this more often.</p><p><strong>The Solution</strong></p><p>After much thought, I knew if I wanted to be a leader in the tech community here in Denver, it was time to step up to the plate. There was an opportunity to put together a collaborative environment in the Denver/Boulder community and I had to facilitate it.</p><p>I went to <a href="http://meetup.com/">meetup.com</a> and registered the Denver/Boulder GraphQL meetup. This was a hard decision. I didn’t think I would have the time to put a meetup together. Not to mention, I’m beyond broke. Seven months with no income, undergrad bills, credit card bills, vet and doctor bills. Is spending $20/month to host a meetup that I’m unsure people will even come to help me facilitate the community I want to see in Denver/Boulder?</p><p><em>The answer was yes.</em></p><p>I believe the answer was always yes, I just had to think through the reasons why it was a bad idea in the moment. But at the end, the answer was yes.</p><p>One of the biggest lessons I learned working at Stack Overflow was the value of the developer community. At the end of the day, we all want to learn from each other and build together. If I could help facilitate that, even as a student of engineering, I knew I would give back to the community that has given back to me so much already.</p><p><em>Originally published at </em><a href="https://naydaysite.wordpress.com/2017/10/23/if-you-want-something-just-do-it/"><em>naydaysite.wordpress.com</em></a><em> on October 23, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d23899f1408" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>