<?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: Luke O'Connell</title>
    <description>The latest articles on DEV Community by Luke O'Connell (@lukeoc615).</description>
    <link>https://dev.to/lukeoc615</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%2F1182683%2F7ac2181d-7f28-4bc3-b4ca-3189b5bfe1b3.jpeg</url>
      <title>DEV Community: Luke O'Connell</title>
      <link>https://dev.to/lukeoc615</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lukeoc615"/>
    <language>en</language>
    <item>
      <title>Today I learned. Defining our own classes-review</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Fri, 10 Nov 2023 23:48:11 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-defining-our-own-classes-review-2plg</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-defining-our-own-classes-review-2plg</guid>
      <description>&lt;p&gt;We declare attributes to classes using the attr_accessor keyword. When we refer to a class in Ruby we use capital letters. Multi-word names use CamelCase. We can define our own methods using the def keyword. We use the self keyword when we don't know in advance what the variable name is. Instance methods are called on an instance of a class and are used to modify the attributes of an object. Class methods are called on the class itself and are used for tasks that involve the class as a whole. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned-The cookies hash</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Thu, 09 Nov 2023 00:58:54 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-the-cookies-hash-1m6n</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-the-cookies-hash-1m6n</guid>
      <description>&lt;p&gt;One feature of HTTP requests is that the server stores a set of key-value pairs in the client, which is known as cookies. We can set access to cookies in Sinatra and Rails. We can use hash methods like .keys and .fetch with the cookies hash. Signing in a user is the most important thing that we use the cookies hash for. Only strings can be stored in the cookies hash. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned- Dynamic Path Segments</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Fri, 03 Nov 2023 01:04:08 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-dynamic-path-segments-21a7</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-dynamic-path-segments-21a7</guid>
      <description>&lt;p&gt;Today I learned about dynamic path segments and used them to improve my dice rolling app. I used these dynamic path segments to support all possible combinations of dice rolls. When we start a path segment with a colon it becomes a dynamic path segment. I also learned how to use the params hash to receive user input. I was able to refactor the code after using the dynamic path segments to make it shorter while still being functional. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned - Sinatra</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Wed, 01 Nov 2023 23:47:52 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-sinatra-3189</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-sinatra-3189</guid>
      <description>&lt;p&gt;Today I built my first web app with Sinatra. I learned how to create a gemfile and install the gems. I also learned how to route. A resource path with a bare slash is known as the root URL or homepage. Once I got my dice rolling app to work I improved the code using view templates. We use the erb method to load the files from the view templates. I also learned how to use layouts to reduce duplication. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned - HTTP Requests</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Tue, 31 Oct 2023 20:24:10 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-http-requests-2d9m</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-http-requests-2d9m</guid>
      <description>&lt;p&gt;Today I learned about HTTP requests and completed the Umbrella project. HTTP requests are the fundamental unit of web applications. The request is sent from the client to the server, which responds to the request. The request line is the first line of the HTTP request and contains three parts: the verb, the resource path, and the HTTP version. The status line is the first line of the response and contains the HTTP version, the status code, and the reason phrase. Ruby has useful libraries for placing HTTP requests. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned - leap year exercise</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Mon, 30 Oct 2023 22:09:58 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-leap-year-exercise-4nn6</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-leap-year-exercise-4nn6</guid>
      <description>&lt;p&gt;Today I completed the leap year exercise in the Ruby gym. I was stuck on this one before but was able to figure it out after coming back to it. I used nested if statements to solve this problem. I also used string interpolation in this problem. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Thu, 26 Oct 2023 20:30:03 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-3935</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-3935</guid>
      <description>&lt;p&gt;Today I learned how to define our own class. We use attr_accessor to add attributes to the class. I also learned how to define my own method using the def keyword. There are instance methods as well as class methods. We use the self keyword to refer to certain objects since we don't know the variable name in advance. Using the &amp;lt; notation, we can define a new class that inherits the power of a parent class. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned - The Hash Class</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Wed, 25 Oct 2023 17:46:06 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-the-hash-class-29oo</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-the-hash-class-29oo</guid>
      <description>&lt;p&gt;Today I learned about hashes and symbols. Symbols follow the same rules as variable names and are often used in hashes. We can use the fetch method to retrieve data from a hash. There are also shorthand methods for retrieving and storing data from a hash. I found the exercises in this lesson challenging but I was able to complete them. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned- Floats</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Mon, 23 Oct 2023 18:05:40 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-floats-1388</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-floats-1388</guid>
      <description>&lt;p&gt;Today I learned that Ruby calls decimal numbers floats. I learned that, unlike with integers, division with floats produces a fractional result. I also learned how to calculate roots in Ruby. In addition to this I learned about the round and the rand methods. If the rand method is used with no arguments it returns a float between 0 and 1.  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned- Integers</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Mon, 23 Oct 2023 17:48:13 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-integers-2d59</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-integers-2d59</guid>
      <description>&lt;p&gt;Today I learned about the Integer class in Ruby. One interesting thing I learned is that division in Ruby only returns the whole part and you use % to find the remainder. I learned about the rand method which seems to be extremely useful. I also learned about to_i and to_s. These can be useful when a string contains a number. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Today I learned</title>
      <dc:creator>Luke O'Connell</dc:creator>
      <pubDate>Mon, 23 Oct 2023 16:37:41 +0000</pubDate>
      <link>https://dev.to/lukeoc615/today-i-learned-3nma</link>
      <guid>https://dev.to/lukeoc615/today-i-learned-3nma</guid>
      <description>&lt;p&gt;Today I learned about strings in Ruby. One thing I learned about was the concat method and how it interprets a number as an ASCII code and translates it to a single character. We use the shortcut of string literals to type out strings. I also learned about some of the string class's methods including: string addition and multiplication, reverse, upcase, downcase, and swapcase. Another important thing I learned is that the only time we use capital letters when we're programming is when we refer to Ruby classes. &lt;/p&gt;

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