<?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>DEV Community: thomasprinn</title>
    <description>The latest articles on DEV Community by thomasprinn (@thomasprinn).</description>
    <link>https://dev.to/thomasprinn</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%2F1122468%2F55153bcb-5b46-40ae-9225-b16e577d87b8.png</url>
      <title>DEV Community: thomasprinn</title>
      <link>https://dev.to/thomasprinn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thomasprinn"/>
    <language>en</language>
    <item>
      <title>TIL (Ruby) Each</title>
      <dc:creator>thomasprinn</dc:creator>
      <pubDate>Wed, 09 Aug 2023 18:09:14 +0000</pubDate>
      <link>https://dev.to/thomasprinn/til-ruby-each-3kfn</link>
      <guid>https://dev.to/thomasprinn/til-ruby-each-3kfn</guid>
      <description>&lt;p&gt;I feel that the array and each sections were the most difficult for me, but when they clicked, they really clicked!&lt;/p&gt;

&lt;p&gt;For example, I initially struggled with figuring out how to count and compare the number of characters to the word they were a part of, as seen in lesson 76 for the letter count activity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;word = ["photo", "like", "commenter"].sample
sample_word = word.to_s

sample_word.split("").each do |sns_component|
    pp sns_component + " appears " + sample_word.count(sns_component).to_s + " times"

end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is my completed code, and it works, but I found it necessary to write out my understanding for future reference.&lt;/p&gt;

&lt;p&gt;When I used &lt;code&gt;sample_word.split("")&lt;/code&gt; in the &lt;code&gt;do&lt;/code&gt; loop, the word was split into a new array consisting of individual letters. This new array needs to have its' elements individually counted in order to complete the activity.&lt;/p&gt;

&lt;p&gt;So when I went to print the statement and used &lt;code&gt;.count()&lt;/code&gt;, adding &lt;code&gt;sns_component&lt;/code&gt; into those parentheses allowed the code to look at the number of times each of the new elements in the new array (individual letters) occur in &lt;code&gt;sns_component&lt;/code&gt; (which concerns the original array at the start of my code, and contains whole words for elements).&lt;/p&gt;

&lt;p&gt;This was a great example of understanding what I needed to do, but not being entirely sure how to do it until I went, "what if I tried this?" with &lt;code&gt;.count(sns_component)&lt;/code&gt;. It feels rather obvious in hindsight, but these exercises were very similar to a recent interview I had (and struggled with) so being able to talk myself through it on my own was a great breakthrough.&lt;/p&gt;

&lt;p&gt;At the very least, I hope that's the correct way to speak about it - maybe I'll look back and wonder why I thought of things in such a complicated matter when I improve!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TIL (Ruby Fundamentals)</title>
      <dc:creator>thomasprinn</dc:creator>
      <pubDate>Wed, 09 Aug 2023 04:00:58 +0000</pubDate>
      <link>https://dev.to/thomasprinn/til-ruby-fundamentals-13l6</link>
      <guid>https://dev.to/thomasprinn/til-ruby-fundamentals-13l6</guid>
      <description>&lt;p&gt;Due to some IRL mishaps I'm a bit behind still, but I was able to finish up the Codeacademy Ruby course, the What, why, and how assignment, and go through the Ruby modules on Canvas.&lt;/p&gt;

&lt;p&gt;I noticed something interesting:&lt;br&gt;
When using&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;self.pp(2.add(3))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;if I add&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print self
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to the code,&lt;br&gt;
why is the output for print self "main"?&lt;/p&gt;

&lt;p&gt;It turns out that self is a special object - the main object for the example, so Ruby is telling me exactly that.&lt;/p&gt;

&lt;p&gt;I also didn't know that there was a difference between using print and pp, so I'll practice it.&lt;/p&gt;

&lt;p&gt;Comparing objects and methods to nouns and verbs helps a lot.&lt;br&gt;
There are many interesting terms such as "pretty print", "syntactic sugar" that make learning Ruby a little more unique and easy to remember compared to other programming languages.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TIL (link in bio)</title>
      <dc:creator>thomasprinn</dc:creator>
      <pubDate>Thu, 27 Jul 2023 07:30:55 +0000</pubDate>
      <link>https://dev.to/thomasprinn/til-link-in-bio-oib</link>
      <guid>https://dev.to/thomasprinn/til-link-in-bio-oib</guid>
      <description>&lt;p&gt;I accidentally got a bit caught up in the design elements of our recent link in bio assignment - it's been really fun figuring out palettes, images, icons, and different backgrounds to use for a website. I hadn't realized it was that easy, or that there were so many resources that make it as simple as copy and paste (and messing around with that to change the color, font size, and so on, has been fun as well.)&lt;br&gt;
I made my first link in bio type of website, so even though it's late, you can check it out &lt;a href="https://wild-shadow-7260.fly.dev/"&gt;here&lt;/a&gt;! I think it turned out pretty cute.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TIL (CodeAcademy CSS)</title>
      <dc:creator>thomasprinn</dc:creator>
      <pubDate>Mon, 24 Jul 2023 01:05:57 +0000</pubDate>
      <link>https://dev.to/thomasprinn/til-codeacademy-css-391e</link>
      <guid>https://dev.to/thomasprinn/til-codeacademy-css-391e</guid>
      <description>&lt;p&gt;Recently I have learned in depth about HTML and CSS - I knew a little from older platforms such as MySpace and LiveJournal's profile layout editing but it is really cool to see things come together.&lt;/p&gt;

&lt;p&gt;With HTML I learned how to make unordered lists using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And also to add videos.&lt;/p&gt;

&lt;p&gt;With CSS I learned what a stylesheet is and how to style html. Adding something as simple as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link href="style.css" rel="stylesheet"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Changed the code entirely to show a full website instead of just text, images, and links.&lt;/p&gt;

&lt;p&gt;I wonder if, in the future, programming languages also have clear cut styles such as CSS for HTML? Or if it is all a part of the same language?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TIL about Codespaces....</title>
      <dc:creator>thomasprinn</dc:creator>
      <pubDate>Wed, 19 Jul 2023 10:02:21 +0000</pubDate>
      <link>https://dev.to/thomasprinn/til-about-codespaces-4025</link>
      <guid>https://dev.to/thomasprinn/til-about-codespaces-4025</guid>
      <description>&lt;p&gt;I'm new to using GitHub and was able to learn something new, using codespaces. I didn't realize the site had more than just spaces to keep track of code and updates for apps.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
