<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Brooke B</title>
    <description>The latest articles on Forem by Brooke B (@brookebachman).</description>
    <link>https://forem.com/brookebachman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F297584%2Fb1c49ebc-02f0-444d-828f-d5334118a663.jpg</url>
      <title>Forem: Brooke B</title>
      <link>https://forem.com/brookebachman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/brookebachman"/>
    <language>en</language>
    <item>
      <title>How to install Webpack</title>
      <dc:creator>Brooke B</dc:creator>
      <pubDate>Wed, 30 Dec 2020 16:21:12 +0000</pubDate>
      <link>https://forem.com/brookebachman/how-to-install-webpack-2co9</link>
      <guid>https://forem.com/brookebachman/how-to-install-webpack-2co9</guid>
      <description>&lt;p&gt;Liquid syntax error: Tag '{% raw %}' was not properly terminated with regexp: /\%\}/&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Media Queries and Responsive Magic</title>
      <dc:creator>Brooke B</dc:creator>
      <pubDate>Sun, 08 Nov 2020 20:55:24 +0000</pubDate>
      <link>https://forem.com/brookebachman/media-queries-and-responsive-magic-55k3</link>
      <guid>https://forem.com/brookebachman/media-queries-and-responsive-magic-55k3</guid>
      <description>&lt;p&gt;I am brushing up on my CSS and currently taking a Frontend Udacity course.&lt;/p&gt;

&lt;p&gt;It is nice to be able to go back over what we learned at Flatiron bootcamp, but also I realize, there is so much that I never knew about CSS.&lt;/p&gt;

&lt;p&gt;Media queries are super cool!&lt;/p&gt;

&lt;p&gt;A cardinal rule I learned about creating responsive web layouts, is to design for the smallest screen first. &lt;/p&gt;

&lt;p&gt;A media query is a rule you can add to your CSS that changes the style of CSS according to the screen size.&lt;/p&gt;

&lt;p&gt;For example if I  want to create a layout for a small screen I can say&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;@media(min-width:700px){body { background-color: blue;}&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Now when the screen width is greater than 700px it will change the background to blue.&lt;/p&gt;

&lt;p&gt;In reality what media queries are useful for are changing font size, margins, and the display styles. &lt;/p&gt;

&lt;p&gt;It is important to think about how the screen size changes what you want the user to see.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
      <category>design</category>
    </item>
    <item>
      <title>Staying Empowered During Job Search &amp; Job Search Prep</title>
      <dc:creator>Brooke B</dc:creator>
      <pubDate>Thu, 06 Aug 2020 16:59:36 +0000</pubDate>
      <link>https://forem.com/brookebachman/staying-empowered-during-job-search-job-search-prep-3o5b</link>
      <guid>https://forem.com/brookebachman/staying-empowered-during-job-search-job-search-prep-3o5b</guid>
      <description>&lt;p&gt;I am someone who can know exactly what I should be doing and totally resist it.&lt;/p&gt;

&lt;p&gt;I have been feeling torn between studying algorithms, applying to jobs and creating applications.&lt;/p&gt;

&lt;p&gt;It is not easy to create structure in your life, when the bootcamp ends, or when you graduate college.&lt;/p&gt;

&lt;p&gt;Consistency is something that creates results, however it is often a long game.&lt;/p&gt;

&lt;p&gt;I won't be great at solving algorithms, or learning new languages and frameworks overnight, but if I practice daily for months I will strengthen my skills.&lt;/p&gt;

&lt;p&gt;For the past week I have committed to doing algorithms on Leetcode everyday, even if it is just 2-3 new ones and 5 ones that I have already done. I also have committed to pushing code to Github everyday, but the most important thing I have added to my routine is meditation.&lt;/p&gt;

&lt;p&gt;This is my Leetcode submissions:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LLBf-26l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ys4x47v6kgufgl6npdtn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LLBf-26l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ys4x47v6kgufgl6npdtn.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I meditated everyday for 40 days and it changed my life. It was the turning point in my bootcamp, I was able to bounce back from seemingly unsolvable bugs, frustration with new material and the stress of code challenges.&lt;/p&gt;

&lt;p&gt;When I stopped meditating, I slowly fell back into old ways of thinking. I started to doubt myself, lose motivation, lose patience with learning how to solve various algorithms.&lt;/p&gt;

&lt;p&gt;Being a developer is an emotional rollercoaster, the actual coding is not that hard if you practice, however running into bugs that take hours or days to solve can really mess with your head if you do not have a strong mental fortitude, which I will be honest if I do not meditate I surely don't.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D2I4axJ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1kdd20hd5w4bkb8vmz2e.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D2I4axJ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1kdd20hd5w4bkb8vmz2e.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One last thing I will add is I keep seeing Junior developers complain about the number of rejections they get or the application process, and it is not productive. It is a downer to see negative posts on Linkedin, not to mention it is a red flag to recruiters. So stop that habit. Write in a journal, call a friend but do not ruin your professional reputation by having a quitter attitude.&lt;/p&gt;

&lt;p&gt;Good luck with your job searches everyone! You will find the right role it is just a matter of time.&lt;/p&gt;

</description>
      <category>career</category>
      <category>bootcamp</category>
    </item>
    <item>
      <title>Post Bootcamp Life</title>
      <dc:creator>Brooke B</dc:creator>
      <pubDate>Tue, 30 Jun 2020 21:09:49 +0000</pubDate>
      <link>https://forem.com/brookebachman/post-bootcamp-life-4h44</link>
      <guid>https://forem.com/brookebachman/post-bootcamp-life-4h44</guid>
      <description>&lt;p&gt;&lt;span&gt;Photo by &lt;a href="https://unsplash.com/@thomasbennie?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Thomas Bennie&lt;/a&gt; on &lt;a href="https://unsplash.com/t/experimental?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I graduated from Flatiron's coding bootcamp 2 months ago. &lt;/p&gt;

&lt;p&gt;It has flown by, and I have been learning a lot since it ended.&lt;/p&gt;

&lt;p&gt;It can be daunting to figure out what your next steps are once your bootcamp ends. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UKopXCgn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sc3k8tjabwkev5qsewqt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UKopXCgn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sc3k8tjabwkev5qsewqt.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;Photo by &lt;a href="https://unsplash.com/@maxon?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Max Ostrozhinskiy&lt;/a&gt; on &lt;a href="https://unsplash.com/s/photos/steps?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I knew algorithms were an essential part of the interview process, so Leetcode was a must.&lt;/p&gt;

&lt;p&gt;I also knew that being a beginner meant I could not take time off of coding or I would become rusty and forget a lot of what I had learned.&lt;/p&gt;

&lt;p&gt;Finally, I knew it looked good to have learned more languages and frameworks after the bootcamp ended.&lt;/p&gt;

&lt;p&gt;So, how would I figure out what to prioritize? &lt;/p&gt;

&lt;p&gt;Not two weeks after my bootcamp ended, I met a founder of a company who was working on an application very similar to what I had in mind for my own company in the future.&lt;/p&gt;

&lt;p&gt;I worked with him for a few weeks and in that time I learned the MERN stack, the plan was I would build his full website.&lt;/p&gt;

&lt;p&gt;I really enjoy the MERN stack, and had I not met that founder I may not have learned MERN. &lt;/p&gt;

&lt;p&gt;We decided to part ways and I was back on my own. &lt;/p&gt;

&lt;p&gt;I decided Python is the industry standard for algorithms so that is what I would learn.&lt;/p&gt;

&lt;p&gt;So I started watching tutorials and learning Python basics.&lt;/p&gt;

&lt;p&gt;I really really really liked Ruby so Python was a nice language to dive into.&lt;/p&gt;

&lt;p&gt;While studying Python...&lt;/p&gt;

&lt;p&gt;I had a company reach out to me for an interview, the recruiter told me to learn Java. I then learned about Java and the differences between Java and C#.&lt;/p&gt;

&lt;p&gt;I got an offer but they are in a hiring freeze.&lt;/p&gt;

&lt;p&gt;I applied to another company for a frontend role. They asked me to learn React-native and build a screen for them to measure my aptitude.&lt;/p&gt;

&lt;p&gt;Everyone's post bootcamp journey will look different. What I work on may not interest you and vice versa. What I have learned from this experience, is to always keep learning, and be open-minded. I am willing to learn just about any coding language. &lt;/p&gt;

&lt;p&gt;There is no recipe for success after a Bootcamp, but what I can say is do not stop, do not stop learning, applying and coding.&lt;/p&gt;

&lt;p&gt;Goodluck grads!&lt;/p&gt;

</description>
      <category>career</category>
      <category>bootcamp</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>Find_or_create_by: ActiveRecord Ruby on Rails</title>
      <dc:creator>Brooke B</dc:creator>
      <pubDate>Tue, 30 Jun 2020 20:31:58 +0000</pubDate>
      <link>https://forem.com/brookebachman/findorcreateby-activerecord-ruby-on-rails-2ifm</link>
      <guid>https://forem.com/brookebachman/findorcreateby-activerecord-ruby-on-rails-2ifm</guid>
      <description>&lt;p&gt;I am working on a project that I am very excited about! &lt;/p&gt;

&lt;p&gt;I am creating a social media platform for animals. I like to keep my project ideas silly and fun&lt;/p&gt;

&lt;p&gt;because it is hard to learn a new skill if you are working on a project that doesn't thrill you.&lt;/p&gt;

&lt;p&gt;I am using a Rails backend with a Javascript frontend. &lt;/p&gt;

&lt;p&gt;My relationships in my model are set up such that A Post cannot be created without a User.&lt;/p&gt;

&lt;p&gt;I created ease with my project by allowing a person to create both a post and a user at the same time. &lt;/p&gt;

&lt;p&gt;When I was attempting to create a new post in my application. I ran into an error on my backend. &lt;/p&gt;

&lt;p&gt;My post was able to create, however, I was not able to create a user, or find a user properly.&lt;/p&gt;

&lt;p&gt;My database would attempt to create a new user record, but would then fail.&lt;/p&gt;

&lt;p&gt;My code looked like this originally:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pkoiy8ej--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hnvvaxjsrrfa59me7okb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pkoiy8ej--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hnvvaxjsrrfa59me7okb.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am using the Find_or_create_by method. This is a method to help search for data from what you pass in, and if its record is not found in your database, will create a new record.&lt;/p&gt;

&lt;p&gt;The first argument is the attribute name, and its value. &lt;/p&gt;

&lt;p&gt;Find_or_create_by accepts a block of code. &lt;/p&gt;

&lt;p&gt;In the block that starts on line 20 I am specifiying the values that I want each attribute to be set to if this user is not found in the database.&lt;/p&gt;

&lt;p&gt;Now the database is able to create a new user in the database with all of its attributes passed in through the form where the data was entered. &lt;/p&gt;

&lt;p&gt;I kept getting an error where the database would INSERT a row to the table, but then it would rollback transaction.&lt;/p&gt;

&lt;p&gt;The database was very confused because I was only passing it a name attribute, and so if it could not find the user record, it was unable to create a new user in the table with only the name attribute given.&lt;/p&gt;

&lt;p&gt;In my posts controller, I have strong params set for users. What strong params do is make sure a user can only be created with the parameters I specified.&lt;/p&gt;

&lt;p&gt;I only want to create a new user record in my database if the name attribute that was typed into my form does not match any of the names that are currently in my database.&lt;/p&gt;

&lt;p&gt;When I create a User on my form I am passing 6 attributes. However, the only attribute I do not want repeated is the User's name. &lt;/p&gt;

&lt;p&gt;I rewrote my code like so: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--efpVc9rp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jakur8j7cj4bxxhd61bs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--efpVc9rp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jakur8j7cj4bxxhd61bs.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, In line 19 I am still looking for the name attribute, however, I am specifying what the database should compare that name to. It should be compared to the name attribute that gets entered into my form.&lt;/p&gt;

&lt;p&gt;Now the database is able to create an entire User, with all of its params passed in as well as look for the name attribute in the entire object. &lt;/p&gt;

&lt;p&gt;I am excited about the find_or_create_by method. I have built 2 javascript frontend with rails backend projects.&lt;/p&gt;

&lt;p&gt;I am constantly searching through my database, and now there is an easier way to accomplish this task.&lt;/p&gt;

&lt;p&gt;Hope you enjoyed this!&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
