<?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: Val Philip Lorejo</title>
    <description>The latest articles on DEV Community by Val Philip Lorejo (@vallorejo).</description>
    <link>https://dev.to/vallorejo</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1208984%2F7473ffcd-27a1-4014-87a0-c09b3d071094.jpeg</url>
      <title>DEV Community: Val Philip Lorejo</title>
      <link>https://dev.to/vallorejo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vallorejo"/>
    <language>en</language>
    <item>
      <title>TIL Blog Learn Ruby</title>
      <dc:creator>Val Philip Lorejo</dc:creator>
      <pubDate>Mon, 04 Dec 2023 15:44:57 +0000</pubDate>
      <link>https://dev.to/vallorejo/til-blog-learn-ruby-228c</link>
      <guid>https://dev.to/vallorejo/til-blog-learn-ruby-228c</guid>
      <description>&lt;p&gt;-Ruby is case sensitive&lt;/p&gt;

&lt;p&gt;-Variables, give it a name and set it equal to a value&lt;/p&gt;

&lt;p&gt;-6 arithmetic operators (+,-,&lt;em&gt;,/,&lt;/em&gt;*,%&lt;/p&gt;

&lt;p&gt;-puts and print is different, puts adds a new blank after printing&lt;/p&gt;

&lt;p&gt;-Everything in Ruby is an object&lt;/p&gt;

&lt;p&gt;-Methods are like skills&lt;/p&gt;

&lt;p&gt;-String Methods:&lt;br&gt;
.length&lt;br&gt;
.reverse&lt;br&gt;
.upcase&lt;br&gt;
.downcase&lt;br&gt;
.capitalize &lt;br&gt;
-Adding ! at the end of method modifies value contained in variable&lt;br&gt;
-include? method&lt;br&gt;
-gsub! method (global substitution)&lt;/p&gt;

&lt;p&gt;-starting with # is how to make comments (single line)&lt;br&gt;
-Multi line comments start with =begin and =end; one line to themselves&lt;/p&gt;

&lt;p&gt;-similar syntax with f string in python but no f included and uses # before bracket (string interpolation)&lt;br&gt;
-gets is the method that gets input from user&lt;br&gt;
-chomp removes extra line/whitespace&lt;/p&gt;

&lt;p&gt;-Control Flow can select different outcomes&lt;br&gt;
if, elsif, else, end&lt;br&gt;
unless statement, reverse of if, checks for false&lt;/p&gt;

&lt;p&gt;-3 Logical/Boolean operators&lt;br&gt;
And(&amp;amp;&amp;amp;), Or(||), and not(!)&lt;/p&gt;

&lt;p&gt;-Loops&lt;br&gt;
while&lt;br&gt;
until&lt;br&gt;
for&lt;br&gt;
  2 dots or 3 dots for range, 2 dots includes least and highest, 3 dots means go up to but dont include highest value&lt;/p&gt;

&lt;p&gt;-Loop method&lt;br&gt;
can interchange {} with do and end&lt;br&gt;
break &lt;br&gt;
next keyword- used to skip over steps&lt;/p&gt;

&lt;p&gt;-Use of arrays to store multiple values in a variable&lt;/p&gt;

&lt;p&gt;-.each operator, apply an expression to each element of an object, same with loop method can make use of {} or do and end.&lt;br&gt;
Iterates over hashes and arrays&lt;/p&gt;

&lt;p&gt;-.times operator a super compact for loop&lt;/p&gt;

&lt;p&gt;-.split method&lt;/p&gt;

&lt;p&gt;-Each element in the array has an index, starts at 0 goes up to arrays length-1&lt;/p&gt;

&lt;p&gt;-hashes similar to python dictionaries, key-value pairs, values assigned using =&amp;gt;&lt;br&gt;
Hash.new creates new hash, replaces use of bracket syntax&lt;br&gt;
When using Hash.new, can add new key-value pairs through use of bracket notation ex[key] = value&lt;br&gt;
Access value through key&lt;/p&gt;

&lt;p&gt;-.sort_by returns array of arrays&lt;br&gt;
-can covert things to a string by using .to_s&lt;/p&gt;

&lt;p&gt;-Methods syntax&lt;br&gt;
Defined using def&lt;br&gt;
Use of end&lt;br&gt;
Similar to functions in python&lt;br&gt;
Use of * means that there can be more than one argument put in&lt;/p&gt;

&lt;p&gt;-Return statement&lt;/p&gt;

&lt;p&gt;-Blocks are like methods with no name&lt;/p&gt;

&lt;p&gt;-How Blocks differ from methods&lt;br&gt;
Methods can be called many times as needed, but blocks only called once given the context&lt;/p&gt;

&lt;p&gt;-Combined comparison operator&lt;br&gt;
&amp;lt;=&amp;gt; returns 0, 1, or -1&lt;/p&gt;

&lt;p&gt;-Symbols are different from strings, makes use of : before string. Symbols carry only one copy, unlike strings&lt;br&gt;
-Immutable&lt;br&gt;
-Saves memory due to having one copy at a time&lt;/p&gt;

&lt;p&gt;-.intern and .to_sym same thing&lt;/p&gt;

&lt;p&gt;-Ruby 1.9 syntax - no need for hash rocket anymore, just replace colon at beginning to end, similar to javascript and python&lt;/p&gt;

&lt;p&gt;-.select selects certain values in hash&lt;/p&gt;

&lt;p&gt;-Case statement, when using multiple conditions, this can be used besides if else, starts with case and variable name, nested when it is when statements that then end with else&lt;br&gt;
Ex) when variable&lt;br&gt;
      when condition&lt;br&gt;
        ..&lt;br&gt;
      else&lt;br&gt;
    end&lt;/p&gt;

&lt;p&gt;-CRUD&lt;br&gt;
create read update delete&lt;br&gt;
Actions taken when updating a database&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS Flexbox TIL Blog</title>
      <dc:creator>Val Philip Lorejo</dc:creator>
      <pubDate>Mon, 27 Nov 2023 19:53:32 +0000</pubDate>
      <link>https://dev.to/vallorejo/css-flexbox-til-blog-moe</link>
      <guid>https://dev.to/vallorejo/css-flexbox-til-blog-moe</guid>
      <description>&lt;p&gt;Flexbox/Flexible Box Layout simplifies how to position elements.&lt;/p&gt;

&lt;p&gt;-Flex containers and Flex items&lt;br&gt;
  Flex containers are elements on page that contains flex items&lt;br&gt;
  Flex containers set up using display property with flex or inline-flex&lt;/p&gt;

&lt;p&gt;-Flex containers useful when in regards to changes in screen sizes&lt;/p&gt;

&lt;p&gt;-Difference between display-flex and display-inline-flex:&lt;br&gt;
  Flex is like a block level element which will take up the whole width of the page of the parent element while inline flex will take up only the necessary space and can share space with other elements side by side&lt;/p&gt;

&lt;p&gt;-Justify Content Property (5)(Horizontal sorting)&lt;br&gt;
  flex-start&lt;br&gt;
  flex-end&lt;br&gt;
  center&lt;br&gt;
  space-around&lt;br&gt;
  space-between&lt;/p&gt;

&lt;p&gt;-Align Items (Deals with vertical sorting)&lt;br&gt;
  flex-start&lt;br&gt;
  flex-end&lt;br&gt;
  center&lt;br&gt;
  baseline&lt;br&gt;
  stretch&lt;/p&gt;

&lt;p&gt;-Flex grow property deals with very big parent container compared to its children&lt;/p&gt;

&lt;p&gt;-Flex shrink&lt;/p&gt;

&lt;p&gt;-Flex basis&lt;/p&gt;

&lt;p&gt;-Be aware that there is the flex property and then a flex value within display property&lt;br&gt;
  Can declare flex property in one line (grow, shrink, basis)&lt;/p&gt;

&lt;p&gt;-Flex wrap&lt;br&gt;
  Instead of wanting elements to shrink, may instead want to put onto next line if possible&lt;br&gt;
    Wrap&lt;br&gt;
    Wrap reverse&lt;br&gt;
    Nowrap&lt;/p&gt;

&lt;p&gt;-Align Content - like align items but instead of a single row, deals with aligning rows top though bottom (Declared on flex containers)&lt;br&gt;
  Common Values:&lt;br&gt;
    flex-start&lt;br&gt;
    flex-end&lt;br&gt;
    center&lt;br&gt;
    space-between&lt;br&gt;
    space-around&lt;br&gt;
    stretch&lt;/p&gt;

&lt;p&gt;-Flex Containers have 2 axis (Main and Cross)&lt;br&gt;
  Main (Horizontal) Properties&lt;br&gt;
    justify-content&lt;br&gt;
    flex-wrap&lt;br&gt;
    flex-grow&lt;br&gt;
    flex-shrink&lt;br&gt;
  Cross(Vertical) Properties&lt;br&gt;
    align-item&lt;br&gt;
    align-content&lt;/p&gt;

&lt;p&gt;Main and cross axis interchangeable with &lt;strong&gt;flex-direction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Flex Direction &lt;br&gt;
  column&lt;br&gt;
  column-reverse&lt;br&gt;
  row&lt;br&gt;
  row-reverse&lt;/p&gt;

&lt;p&gt;Flex flow property: used to call flex wrap and direction in one line&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS: Box Model TIL Blog</title>
      <dc:creator>Val Philip Lorejo</dc:creator>
      <pubDate>Mon, 27 Nov 2023 15:04:47 +0000</pubDate>
      <link>https://dev.to/vallorejo/css-box-model-til-blog-1p41</link>
      <guid>https://dev.to/vallorejo/css-box-model-til-blog-1p41</guid>
      <description>&lt;ul&gt;
&lt;li&gt;The Box Model consists of:
Margin, Content (Width + Height), Border, Padding&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-border-radius can modify the border box so it does not have to be a square.&lt;/p&gt;

&lt;p&gt;Shorthand Properties (Applies to Margin as well)&lt;br&gt;
-When padding has four values it goes in the order of top, right, bottom, left&lt;br&gt;
-When padding has 3 values it goes in the order of top, left and right, and bottom values&lt;br&gt;
-When padding has 2 values it goes over top/bottom and left/right values&lt;/p&gt;

&lt;p&gt;-Horizontal Margins add, Vertical Margins do not; larger of the 2 margins between elements will be the margin used&lt;/p&gt;

&lt;p&gt;-Min-width and min-height: Minimum amount of space element will take, will not go less than that. &lt;br&gt;
-Max uses the same concept&lt;/p&gt;

&lt;p&gt;-Overflow Property: Deals with content that may spill out of its given element/box (3)&lt;br&gt;
  hidden, scroll, visible&lt;/p&gt;

&lt;p&gt;-Visibility Property (3): visible, collapse, hidden&lt;/p&gt;

&lt;p&gt;-Content Box, Border Box&lt;br&gt;
Content Box is affected by border thickness and padding, border-box model is not&lt;/p&gt;

&lt;p&gt;-Block elements take in the full width of their parent elements, thus they do not overlap with other block-level elements. The default value of block-elements position is on the left side. There are 5 total ways to change its position using the position property:&lt;br&gt;
-Static(default value-no need to specify)(normal flow)&lt;br&gt;
-Relative (normal flow)&lt;br&gt;
-Absolute (removed from document flow)&lt;br&gt;
-fixed (removed from document flow)&lt;br&gt;
-Sticky (in document flow)&lt;/p&gt;

&lt;p&gt;-Z-index takes integer value (deals more over layers of elements)&lt;/p&gt;

&lt;p&gt;-Display Value:&lt;br&gt;
  Inline&lt;br&gt;
  Block&lt;br&gt;
  Inline-Block&lt;/p&gt;

&lt;p&gt;-Float Property (left or right)&lt;br&gt;
  Must have width specified or will assume full width, thus making float useless&lt;/p&gt;

&lt;p&gt;-Clear Property (4 values)&lt;br&gt;
  Left&lt;br&gt;
  Right&lt;br&gt;
  Both&lt;br&gt;
  none&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS Fundamentals TIL Blog</title>
      <dc:creator>Val Philip Lorejo</dc:creator>
      <pubDate>Sat, 25 Nov 2023 20:14:18 +0000</pubDate>
      <link>https://dev.to/vallorejo/css-fundamentals-til-blog-3nc5</link>
      <guid>https://dev.to/vallorejo/css-fundamentals-til-blog-3nc5</guid>
      <description>&lt;p&gt;CSS: Cascading Style Sheets&lt;/p&gt;

&lt;p&gt;CSS is used to help style HTML content in a webpage since html by itself may be bland.&lt;/p&gt;

&lt;p&gt;Two methods of writing CSS code, with CSS ruleset or inline code. CSS ruleset contains brackets while inline code contains elements from html like tags &lt;/p&gt;

&lt;p&gt;CSS ruleset has 5 terms:&lt;br&gt;
Selector, Declaration Block, Declaration, Property and Value&lt;/p&gt;

&lt;p&gt;CSS inline style also has 5 terms almost similar to ruleset:&lt;br&gt;
Opening tag, attribute, declaration, property and value&lt;/p&gt;

&lt;p&gt;when writing using CSS inline code, can add multiple styles by the use of semicolons (Inline code rarely used for websites, but could be used if deemed necessary.)&lt;/p&gt;

&lt;p&gt;Can separate HTML and CSS files separately for better readability through the use of external style sheets and in order for those files to be connected a link tag should be within the head section with the attributes href and rel, with href showing the location of the said file and rel showing the kind of relationship between those files.&lt;/p&gt;

&lt;p&gt;In CSS ruleset, using * is the universal selector&lt;/p&gt;

&lt;p&gt;Use of Class Attribute:&lt;br&gt;
  The class attribute can be used to organize any kind of content within a tag, so if some content is tied to a class, that class instead can be used to manipulate that content for styling, making it much more easier to style multiple things instead of one by one or to specifically select one thing. Multiple Classes can be separated by spacing.&lt;/p&gt;

&lt;p&gt;Difference between class and id attribute:&lt;br&gt;
Class can take multiple values while id only takes in one, used once per page, class is more broader while id seems to be more specific. Class starts off with period while id starts off with hashtag when getting called in CSS&lt;/p&gt;

&lt;p&gt;-Type, Class Id: Least specific to most specific&lt;/p&gt;

&lt;p&gt;-Descendant combinators are when you can also select elements that are nested within another element&lt;br&gt;
-Chaining is when you can specify an element using its type and its class together so that it can ignore other types with the same class.&lt;/p&gt;

&lt;p&gt;-The more specific code will be applied instead of the general code&lt;/p&gt;

&lt;p&gt;-Can separate selectors through the use of commas&lt;/p&gt;

&lt;p&gt;-Difference between foreground and background color, foreground is the color element itself is in while background is the background of the said element&lt;/p&gt;

&lt;p&gt;-Using background image in CSS utilizes a URL&lt;/p&gt;

&lt;p&gt;-!Important can override any style, best not to use it, very hard to override&lt;/p&gt;

</description>
    </item>
    <item>
      <title>HTML TIL Blog</title>
      <dc:creator>Val Philip Lorejo</dc:creator>
      <pubDate>Thu, 23 Nov 2023 22:10:12 +0000</pubDate>
      <link>https://dev.to/vallorejo/html-4pa1</link>
      <guid>https://dev.to/vallorejo/html-4pa1</guid>
      <description>&lt;p&gt;Started to get used to coding using GitHub with an IDE. I learned about programs such as Bash and Puma and slightly getting used to the GitHub panel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linking to Other Websites and Opening Links&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Learned about the &lt;a&gt;&lt;/a&gt; tags which are involved with opening new links. The attribute href goes into the first tab and invovles putting a link in quotes after that attribute. The attribute target can be used to open a new window when set to _blank&lt;/p&gt;

&lt;p&gt;An example will go like this:&lt;br&gt;
&lt;a href="="&gt; &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Storage of HTML files in a multi page static website are often stored in a root directory or main folder that holds all the contents together. Can nest folders inside main folder for more organization when size grows.&lt;/p&gt;

&lt;p&gt;There is a difference between a relative path and an absolute path. A relative path is a local file within a website while an absolute path is a full on URL. (./) is what will tell the HTML file to look in the folder that is currently being used.&lt;/p&gt;

&lt;p&gt;By Wrapping anchor tags with an image tag together, you are able to create an image on the website that can also act as a link as well, creating more versatility when making a website.&lt;/p&gt;

&lt;p&gt;When starting HTML file must use &amp;lt;!DOCTYPE html&amp;gt; to help browser know what version to use/expect&lt;/p&gt;

&lt;p&gt;Linking to Same Page&lt;/p&gt;

&lt;p&gt;Through the use of id, you can link specific sections of the same page. It goes like this:&lt;/p&gt;

&lt;p&gt;ex) a href = "#id name" /a&lt;br&gt;
        The anchor tags can also be nested in other tags like li &lt;br&gt;
        /li to make a list that is what links to other sections&lt;br&gt;&lt;br&gt;
        of the same page.&lt;/p&gt;

&lt;p&gt;Through past experience in Python comments are used by adding # or  surrounding text with triple quotes but in HTML comments are created by doing this:&lt;/p&gt;

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