<?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 Dione on Medium]]></title>
        <description><![CDATA[Stories by Dione on Medium]]></description>
        <link>https://medium.com/@dionew1?source=rss-fa5de9e7633d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B-sBoROznwKoqtxw1e-wpw.jpeg</url>
            <title>Stories by Dione on Medium</title>
            <link>https://medium.com/@dionew1?source=rss-fa5de9e7633d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:57:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dionew1/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[I think this is a great article!]]></title>
            <link>https://medium.com/@dionew1/i-think-this-is-a-great-article-76b799cfe5e0?source=rss-fa5de9e7633d------2</link>
            <guid isPermaLink="false">https://medium.com/p/76b799cfe5e0</guid>
            <dc:creator><![CDATA[Dione]]></dc:creator>
            <pubDate>Fri, 04 Jun 2021 20:20:59 GMT</pubDate>
            <atom:updated>2021-06-04T20:20:59.494Z</atom:updated>
            <content:encoded><![CDATA[<p>I think this is a great article! I value the vulnerability that you share here which is so powerful. Ian, you are a rockstar and a phenomenal human being. Your willingness to learn, improve, and share are truly inspirational qualities. Stream is extraordinarily lucky to have you and I know you are going to make a huge impact on their business, culture, and individuals. I&#39;m glad you&#39;ve been able to discover a positive path forward!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76b799cfe5e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More than just technical knowledge]]></title>
            <link>https://medium.com/@dionew1/more-than-just-technical-knowledge-e561eab08d4e?source=rss-fa5de9e7633d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e561eab08d4e</guid>
            <category><![CDATA[turing-school]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Dione]]></dc:creator>
            <pubDate>Fri, 23 Mar 2018 23:49:18 GMT</pubDate>
            <atom:updated>2018-03-23T23:49:18.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aUvaK5qaRBkvm_eu." /><figcaption>Photo by <a href="https://unsplash.com/@grohsfabian?utm_source=medium&amp;utm_medium=referral">Fabian Grohs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I recently graduated from a programming boot camp called Turing School of Software and Design. It was by far one of the most demanding, challenging, and rewarding experiences that I have ever had.</p><p>For those that are unfamiliar with Turing, it is a seven-month program dedicated to preparing students to become a professional software developer. That seems like a short amount of time to be professionally ready for any job, so how is it done? First, let me provide a little back story about myself before I dive into my journey at Turing.</p><p>Ever since I was little I had a fascination for why. Why do things work the way they do, why do we do it that way, why, why, why? I wanted to have a deeper understanding of the information that I was given so that I could solve not just one problem, but I could build on that foundation and solve other problems. So in college, I majored in chemistry because it broke down components to it’s smallest particles and looked at how these interact with one another. I enjoyed my time studying chemistry, but eventually I did graduate.</p><p>After I graduated, I didn’t work in my field. I took the first job possible so that I could start paying off student loans. While at this job, I got to work with amazing people and learned a lot. I learned that I enjoyed responsibility and being able to help others, that communication is crucial, and that I wanted a profession where I could continually learn. My profession at that time didn’t offer the continual learning that I wanted, therefore I began to search for something new. I looked at law, pharmacy, medical, and veterinary fields. None of these seemed to be a fit for me.</p><p>I started looking into programming and did a short online intro, but I knew that for me to truly gain a good understanding I needed someone for all the why questions I had. I looked at two schools in particular and saw that Turing offered a Try Coding event where I could have sample lesson and a lunch with a Q &amp; A panel of students from the program. It seemed like a low-risk way to see if this field was the right fit for me. It definitely was!</p><p>Back at the beginning of this post, I said that Turing prepares students to become a professional software developer. I think it is important to highlight this because Turing teaches more than just how to program in a particular language. Turing teaches you to be comfortable with being uncomfortable. This might sound strange and it definitely is a difficult concept to embrace. Being uncomfortable could be different for every student, for instance, applying newly learned concepts in a project that is due in one week, learning to depend on a project partner, or even beginning to work on something that you don’t fully understand yet. These are all situations that professional developers face and learning how to deal with that uncomfortableness is crucial.</p><p>Another important piece that I took away from my time at Turing was the closeness of my cohort. We all came from various backgrounds, experiences, and locations, but we all came to achieve one common goal. We learned from each other’s strengths and weaknesses, we encouraged one another when times were tough, and we pushed forward together to achieve our goal. This group of people will always be close to my heart and I admire each of them for their unique qualities and am thankful I got to experience the journey with them. Tying this back to the professional development side of things, it further affirmed for me that the people that I surround myself with make a huge difference in what I am able to accomplish. That being said, if the tech industry has people like the ones I have encountered thus far I know I have made the right decision in changing my career path.</p><p>To wrap this up, it takes more than just technical knowledge to be a professional software developer. Just like any job there is always the human element. Learning how to work outside your comfort zone is critical for understanding that this is where personal growth takes place and should not be avoided, but rather embraced. As a software developer rarely will I have an answer to the problems that I am trying to solve. At one point in time this thought would likely have discouraged me from pursuing a career in such a field, however, now I cannot wait for these opportunities to learn and grow. I also am looking forward to being a part of a team. Having learned how to work with a group of diverse individuals is an invaluable experience. I am thankful for the lessons learned and look forward to what is yet to come in this profession.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e561eab08d4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving into Open Source Code]]></title>
            <link>https://medium.com/@dionew1/diving-into-open-source-code-d02bda6ad45f?source=rss-fa5de9e7633d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d02bda6ad45f</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Dione]]></dc:creator>
            <pubDate>Wed, 28 Feb 2018 04:08:00 GMT</pubDate>
            <atom:updated>2018-02-28T04:08:00.333Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IS2_OFabebB49F33." /><figcaption>Photo by <a href="https://unsplash.com/@tentides?utm_source=medium&amp;utm_medium=referral">Jeremy Bishop</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Quick Definition:</h4><p>What does open source mean? It seems self-explanatory in the name, but to add some clarification open source code means that it is freely available for others to redistribute and modify.</p><h4>In the Beginning:</h4><p>I recently had an assignment to contribute to an open source project and was provided with a short list of possibilities to explore. I decided to start by going through each project and looking at what issues were open and available for contribution. As this was my first contribution I was looking for items that were labeled “beginner friendly”, “good first issue”, or something along those lines. After deciding on a project and finding an issue that appeared to be available. I left a quick comment introducing myself as a first-time contributor and that I was interested in the issue if it was available. Then I set out to set-up the project.</p><h4>The Set-up:</h4><p>Depending on the documentation of the project and how complex the application is, set-up can take some time. Fortunately, the application had straightforward instructions about how to get started. These instructions included what versions of Ruby and PostgreSQL were being used as well as how to run the tests.</p><h4>Digging into the Issue:</h4><p>Before really looking into the issue, I poked around the application just to see what all was happening and to gain familiarity with navigating the app. Then I opened up the code base to take a deeper look. Since it is a Rails application it was easy to find the familiar folders of controllers, models, view, tests and so on. After a quick review of the code, I re-read the issue and started to sort through what code this issue was talking about and where this issue might exist. The further I looked and began to understand the code, it became apparent that the issue was unclear what it was trying to resolve. After thinking and rethinking of different ways to approach the problem, I settled on writing a test that I thought addressed the issue. Then rather than continuing forward to try and solve this test, I submitted what my thought process was and the test. Though this contribution may not have solved the issue, it did allow for anyone else looking into the project and this particular issue to have more clarification of what problem they are trying to solve.</p><h4>What I Learned:</h4><p>This experience provided a few opportunities: to look at a larger, foreign code base, to appreciate the importance of documentation, and to learn from other people’s code. It is interesting to think that 7 months ago I likely could not have told you the first thing about reading code or what the layout of a Rails application was, but now I’m able to explore, follow and read code to understand what an application is doing even when the code is not my own.</p><p>Reviewing this code’s documentation it was easy to see that their setup documentation was well written in that it only took me a short amount of time to have their code up and running locally. However, the issue documentation could is just as important, especially if you are asking those who are unfamiliar with the application to assist in details. These issues should clearly state the issue that needs to be solved as well as how to recreate or view the problem. Though writing good documentation may take time, it is extremely beneficial for two reasons.<br>1. It causes you to think through the what the issue is and why it is an issue that needs to be fixed<br>2. It allows the people working on the issue to be clear in what needs to be solved and more effectively contribute to the code base</p><p>Moving on to what I learned from other people’s code. I learned about a <strong><em>.tap</em></strong> and <strong><em>.try</em></strong> in Ruby, that Ruby has protected and private methods, the gem Timecop, and the gem Pretender. <br>The .<strong><em>tap</em></strong> method allows an object to be manipulated within a block and the block will return the entire object. <br>The .<strong><em>try</em></strong> method is useful if you suspect that an object or class may cause a NoMethodError exception because .<strong><em>try</em></strong> will instead return <strong><em>nil</em></strong> rather than the exception.</p><p>I was aware that there are public and private methods in Ruby was surprised to find that protected also exists. Where a private method is only available within the class that it exists, protected is similar, however, it is accessible from the scope of any object belonging to the same class.</p><p>The Timecop gem was used from within the test file to help with code dependent upon time. There are several methods that Timecop can use, for example, Timecop.freeze. This allows you to statically mock the time now. There are several other methods and I would recommend checking them out.</p><p>Last but not least, the Pretender gem. This gem is a great tool for the development process because it allows you to impersonate users. This would be useful when views are dependent upon the user role. It’s a great way to view an application as various users without having to sign-in and out for these different roles.</p><h4>In conclusion:</h4><p>Thanks for taking the time to read about my experience with open source code. There are some great takeaways here and I hope that it encourages you to have your own open source experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d02bda6ad45f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog in Session — Setting up a session in a Rails application]]></title>
            <link>https://medium.com/@dionew1/blog-in-session-setting-up-a-session-in-a-rails-application-a1aec5ff95a1?source=rss-fa5de9e7633d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1aec5ff95a1</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[computer-sessions]]></category>
            <dc:creator><![CDATA[Dione]]></dc:creator>
            <pubDate>Mon, 06 Nov 2017 17:05:11 GMT</pubDate>
            <atom:updated>2017-11-06T17:06:28.341Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is a session anyway?</h4><p>For me, it is always easiest to understand what or how to set something up if I first know what it is and why I would need it. A session is something that helps provide state to an otherwise stateless http request. What does stateless request mean? This means that each request made from the client to the server is independent or “unknowing” of a previous request. Imagine if you went to check your emails. You first log in to your account and this directs you to your inbox. Now you want to read a specific email, but before you do that you must login again. Now you want to compose a new email, once again you have to log in before you can start. Continuing on in this way would become quite a nuisance. Fortunately, by using a session we can avoid this non-sense and only be required to log in once to accomplish each task.</p><p>Sessions store information about a user inside of a hash. This information can be stored client-side or server-side, but most rails applications will store information client-side. This information is typically encrypted and not available for the client/user to edit.</p><h4>What does it look like in code?</h4><p>Let’s begin by looking at the log in page that a user might see. We are all fairly familiar with what a login page looks like in the browser. The code behind this though looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*mr71BL7vKbEdw4vEHG-VeQ.png" /><figcaption>File Path: app/views/sessions/new.html.erb</figcaption></figure><p>Now let’s look at our routes.rb file. Within this file we should see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*zmrr0pBN81b07_7-9rehwg.png" /><figcaption>File Path: config/routes.rb</figcaption></figure><p>Line 1 our http verb is get, what will appear in our url is /login, and the last part is our controller#action (sessions#new). Line 2 and 3 follow the same logic. Next we are actually going to take a look at two controllers, the sessions controller and the application controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*44XUXKYzl_LeXcBC_a93Sg.png" /><figcaption>File Path: app/controllers/sessions_controller.rb</figcaption></figure><p>The new method simply renders the new view which is above. <br>The create method is first finding the user by the username which was submitted via the “new” form. The if statement is authenticating the user by comparing what was submitted from the log in page and comparing it to the password that was created when the user first set up his or her account. If this is successful the user_id will be stored with in the session hash. Should this be unsuccessful the else will render the log in page for the user to try to submit the correct information.<br>The destroy method is what will occur when a user logs out of the app. Session.clear simply resets the hash to be empty and redirects the user back to the root_path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNDpTju_TOzbhiTpTU-NfQ.png" /><figcaption>File Path: app/controllers/application_controller.rb</figcaption></figure><p>The current_user method is included inside of our application controller so that it is available to all our controllers. The helper method also allows this method to be available to all our views. Simply put this method is saying if @current_user already exists use the information that is stored, but if it doesn’t exist, use the user_id stored in session to find the correct user.</p><h4>Wrapping Up</h4><p>Hopefully, this helped provide some visual examples and gave a general idea behind sessions and why they are nifty tools for developers to store information. Please see the links below if you wish to continue your journey in exploring sessions.</p><h4>Links to relevant information</h4><p><a href="http://guides.rubyonrails.org/security.html#what-are-sessions-questionmark">Rails Guide</a> discussing sessions<br><a href="http://backend.turing.io/module2/lessons/sessions_cookies_and_flashes">Session, Cookies and Flashes</a> from Turing Software and Design</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1aec5ff95a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>