<?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 Mary Goodhart on Medium]]></title>
        <description><![CDATA[Stories by Mary Goodhart on Medium]]></description>
        <link>https://medium.com/@marygoodhart?source=rss-55fd35978e09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oLdvcFzhHdbX2nIj</url>
            <title>Stories by Mary Goodhart on Medium</title>
            <link>https://medium.com/@marygoodhart?source=rss-55fd35978e09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:40:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marygoodhart/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[Rails/Rales Engine]]></title>
            <link>https://medium.com/@marygoodhart/rails-rales-engine-96b88669e3e?source=rss-55fd35978e09------2</link>
            <guid isPermaLink="false">https://medium.com/p/96b88669e3e</guid>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Mary Goodhart]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 02:05:15 GMT</pubDate>
            <atom:updated>2019-01-28T02:05:15.410Z</atom:updated>
            <content:encoded><![CDATA[<p>Rails/Rales Engine</p><p>Turing; Mod 3</p><ul><li>How did you approach this project? What sort of planning did you do?</li></ul><p>This project was assigned the Tuesday of the first week of my third six week ‘module’ at Turing School of Software and Design; it was due 6 days later, so all the planning took place the first day. Database structure and a basic idea of how to begin. The learning goals and requirements were as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h98m069o_XWMaPSNcf2wDw.jpeg" /></figure><ul><li>What was the most challenging part of the project? How did you deal with that challenge? Were you able to overcome it? If yes, how did you overcome it? If no, what do you think is the reason for not being able to and what would you do differently?</li></ul><p>The most challenging part of this project was getting the spec harness to pass. I took them error by error and successfully cut the failures and errors down by half over a period of time. I was not able to successfully reach 100% on the spec harness; at the end I had 21 failures and 11 errors, which is down from 87 failures and 20 errors. I think that I need to study the spec harness more and understand exactly what it is expecting from the Active Record queries as well as precisely how it is expecting the return of the relationship endpoints. I feel confident that given a day or two more, I could successfully complete the spec harness requirements.</p><ul><li>What did you enjoy most about the project?</li></ul><p>I am very interested in API creating and consuming! I had never used serializers or used a PORO in a serializer either and that was fun and exciting to do; especially creating a different attribute for the object in the serializer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wpVLZ_zsRIFyRyQYzni3Q.jpeg" /></figure><ul><li>What part of the project are you most proud of and why?</li></ul><p>I feel proud of how much functionality that I finished (with my testing). I was able to learn from each part of the project. This included relationship endpoints as well as active record business intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtkGyEECV_fcXI97JPvkcg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYxuqPCdhZwGVPuUoFzQ0g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3M6ESq7aPEdX3h4VWICamw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7kOIblhWcOGec0i4WAxjA.jpeg" /></figure><ul><li>If you had to do this project again, what would you want to change? (This could be your process, organization of code, particular piece of code that you would want to write differently etc.)</li></ul><p>I would absolutely be better with my version control. I would also like to completely refactor every search controller to be DRY. I would like to finish the spec harness with 100% of the tests passing. I would like to become more comfortable with using POROs in serializers for other attributes.</p><ul><li>What is one specific thing that you want to take from this project and implement in your next project? (This could be something that worked well for you or something that didn’t go well, but you learned from it.)</li></ul><p>I am excited about my understanding of the flow between testing, routes, controllers, serializers, potential model tests and methods. I think that this project really solidified my understanding of routing in rails. Serializers can do some really cool things with APIs and I am really looking forward to utilizing them in future projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96b88669e3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laugh Tracks Blog Post]]></title>
            <link>https://medium.com/@marygoodhart/laugh-tracks-blog-post-5f68fbb61f0c?source=rss-55fd35978e09------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f68fbb61f0c</guid>
            <dc:creator><![CDATA[Mary Goodhart]]></dc:creator>
            <pubDate>Mon, 03 Dec 2018 02:16:43 GMT</pubDate>
            <atom:updated>2018-12-03T02:16:43.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*VZ4c1pIo1EJD-ZirLWzMHg.jpeg" /></figure><ul><li>How did you approach this project? What sort of planning did you do?</li></ul><p>I knew about this project before we started Mod2, so during the break I watched as many Sinatra tutorials as I could and did the practice recommended in pre-work. I tried to study everything that seemed relevant to the project so that I felt as prepared as I could without knowing what I was getting into. Although our project was kicked off on Monday, I chose to wait until Wednesday to really start coding on it because that is when we had lessons on Model and Feature testing, which are really important to me. Test Driven Development makes sense to me, especially coming from a background where I have had no experience in coding (besides Mod 1, of course). In Mod 1, I found that it was overall was more efficient for me to take the time in the beginning of a project and really figure out what it was, what was being asked, and what was expected before jumping in and coding right away. I started researching more about RSpec testing and Capybara and feature and model testing, as well as pre-reading our testing lessons. There was data that needed to be collected for this project, so from Monday when it was kicked off up until Wednesday (when our lessons on testing were), I chose instead to collect all the data that the project required, as well as study up more on CSS and HTML since I was really unfamiliar with them.</p><ul><li>What was the most challenging part of the project? How did you deal with that challenge? Were you able to overcome it? If yes, how did you overcome it? If no, what do you think is the reason for not being able to and what would you do differently?</li></ul><p>The first most challenging part of this project for me was writing thorough tests. I actually really enjoy testing, but getting used to the RSpec, Active Record and Capybara syntax all at once was tedious and a bit overwhelming. I just chose to take it slowly and keep all the docs for those pulled up as well as keeping a really good eye on test coverage. Because of the newness of everything, at first I made very little headway, but I am excited because I believe I developed the beginning of a good and thorough testing process with this new(to me) way of testing. I used the User Stories to start writing a feature test, which would direct me to write and implement code for the feature. Sometimes that would immediately direct me to write a model test, as a new method would need to be written in order for the feature test to pass. I would write the model test, then implement whatever code was needed to make that pass. Then I would return to the feature test and be able to implement that new method where it was needed in order for the view to be what the test was demanding. Then once the feature test passed, I would begin the process again for the next feature. The second part that was most difficult for me was CSS. I chose to just use standard CSS and HTML instead of learning something like Bootstrap because I really want to be able to understand what they are actually doing before using something that is more abstract. I think I have a long way to go and would like to pair with someone who has more CSS experience than I do. I don’t think I would’ve changed the fact that I went with basic CSS, it just helped highlight how much I need to use it in order to become more proficient. I also realize how complicated it is, which is something that I think is good to be aware of in any language.</p><ul><li>What did you enjoy most about the project?</li></ul><p>I really enjoyed being able to make something that could be interacted with as well as see the changes as I made them. I felt like this project gave me a little bit of light into seeing what kind of apps and things I will be able to create moving forward and in the real world. I’m excited to have that view! It’s starting to come together how the model/view/controller all work together and what you can do with data. I think that ActiveRecord is a really powerful tool and I am excited to be able to work more with it to see what all can be accomplished. I think my most favorite thing of all though was how specific RSpec and Capybara can be in testing models and features. It feels so much more powerful than Minitest and I think that having knowledge and understanding of this type of testing will be essential in future projects and in the real world.</p><ul><li>What part of the project are you most proud of and why?</li></ul><p>I am most proud about all of the backend part of the project. I think that I was able to use model/view/controller in ways that they are meant to be used-with the amount of knowledge I have-and I am excited about how the controller turned out. I am also extremely happy about how testing turned out with 100% coverage. I was really concerned about that from the beginning since there were so many new tools presented to us this first week.</p><p>class LaughTracksApp &lt; Sinatra::Base</p><p>get ‘/comedians’ do<br> if params[:age]<br> <a href="http://twitter.com/comedians">@comedians</a> = Comedian.where(age:params[:age])<br> else<br> <a href="http://twitter.com/comedians">@comedians</a> = Comedian.all<br> end<br> <a href="http://twitter.com/total_count">@total_count</a> = Special.where(comedian_id: <a href="http://twitter.com/comedians">@comedians</a>).count<br> <a href="http://twitter.com/average_run_time">@average_run_time</a> = Special.where(comedian_id: <a href="http://twitter.com/comedians">@comedians</a>).average(:run_time)<br> <a href="http://twitter.com/hometowns">@hometowns</a> = <a href="http://twitter.com/comedians">@comedians</a>.unique_list_of_hometowns<br> <a href="http://twitter.com/average_age">@average_age</a> = <a href="http://twitter.com/comedians">@comedians</a>.average_age<br> erb :”index”<br> end</p><p>get ‘/comedians/new’ do<br> erb:”comedians/new”<br> end</p><p>post “/comedians” do<br> Comedian.create(params[:comedian])<br> redirect ‘comedians’<br> end<br>end</p><ul><li>If you had to do this project again, what would you want to change? (This could be your process, organization of code, particular piece of code that you would want to write differently etc.)</li></ul><p>If there was one thing I could change, it would be the CSS and front-end part of my project. CSS is not something I am very strong in, and I would like to spend more time honing that skill moving forward; as well as getting a good process down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2CcNivy1m7egBlP02GiRQ.jpeg" /></figure><ul><li>What is one specific thing that you want to take from this project and implement in your next project? (This could be something that worked well for you or something that didn’t go well, but you learned from it.)</li></ul><p>Specifically, I would like to take the testing process I began for this project and really solidify that for my future projects. While it did feel really tedious at the beginning, it ended up driving the development of my project in such a way that I felt confident with the code I wrote. I know that there is still much to learn, but I have a place to start and something to implement in other projects!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HKP_eZziqpqSBigGdzlFAg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f68fbb61f0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>