<?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: Eulis</title>
    <description>The latest articles on Forem by Eulis (@eulis01).</description>
    <link>https://forem.com/eulis01</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%2F673336%2Fe1ff0fed-7991-4b99-adc9-82684760f449.jpg</url>
      <title>Forem: Eulis</title>
      <link>https://forem.com/eulis01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/eulis01"/>
    <language>en</language>
    <item>
      <title>The Basic of Content Delivery Network(CDN)</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Sun, 13 Mar 2022 04:35:10 +0000</pubDate>
      <link>https://forem.com/eulis01/the-basic-of-content-delivery-networkcdn-4cdg</link>
      <guid>https://forem.com/eulis01/the-basic-of-content-delivery-networkcdn-4cdg</guid>
      <description>&lt;p&gt;To keep it simple, at it core a DND basically stand for a group of server distributed or placed around the word at keys location, they all work together and delivers you with fast internet content. Many of the websites you use today use CDN to deliver content to you quickly. Some of these are Meta or Facebook, Netflix, Amazon, &amp;amp; GitHub.&lt;/p&gt;

&lt;p&gt;CDNs allow today's modern web server to transfers files like HTML, JS, Stylesheets, Images, and Videos quick and fast between each others, as these files are needed to build a web pages. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A CDN IS NOT A WEB HOSTING SERVICE, AND WILL NOT REPLACE THE NEED FOR A PROPER HOSTING SERVER.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A CDN Cache the Website content at the network edge, this mean that the main landing pages for websites, so files like HTML and CSS and a some JavaScript, are kept at the CDN servers. &lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;A CDN helps to improve Load Time of Websites.&lt;/li&gt;
&lt;li&gt;Help Reduce the Cost of Network Bandwidth costs while hosting. &lt;/li&gt;
&lt;li&gt;Helps to Improve Websites Security.&lt;/li&gt;
&lt;li&gt;The Content Availability increased as well as the redundancy. &lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;At its core, a CDN is a network of servers linked together with the goal of delivering content as quickly, cheaply, reliably, and securely as possible. In order to improve speed and connectivity, a CDN will place servers at the exchange points between different networks, &lt;a href="https://www.cloudflare.com/learning/cdn/"&gt;Reference this Article&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.microsoft.com/en-us/azure/cdn/cdn-overview"&gt;MS AZURE CDN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Please DYOR(DO Your Own Research) in anything you read or see, it's always good to have multiples perspectives.&lt;/strong&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>beginners</category>
      <category>cloud</category>
    </item>
    <item>
      <title>🍅Tomato Timer, A True BFF⏳</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Sat, 12 Mar 2022 04:17:27 +0000</pubDate>
      <link>https://forem.com/eulis01/tomato-timer-a-true-bff-15l</link>
      <guid>https://forem.com/eulis01/tomato-timer-a-true-bff-15l</guid>
      <description>&lt;p&gt;First, you might be wondering why they called it Tomato timer, well as you can see from the pictures Above, this is how the original timer used by this method whose originally was developed by Francesco Cirillo in the later years of nineteen Eighties. This is a proven to Work Technique by many people, even myself, I have seen the result of using this method to improve productivity or simply get more done during the day. &lt;/p&gt;

&lt;h2&gt;
  
  
  Pomodoro Technique
&lt;/h2&gt;

&lt;p&gt;The Pomodoro Technique is A Time Management method that uses a timer To break tasks or work into sections or intervals, most people call this Time Boxing or Time blocking. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First: We Set a Timer for 25 minutes, and we focus on a single task or work to be done. &lt;/li&gt;
&lt;li&gt;Second: We take a short break of 5 minutes (walk, rehydrate, stretch, snacks)&lt;/li&gt;
&lt;li&gt;Third: That's 1 Pomodoro You just complete a long with a break, keep in mind that each 25-min block known as pomodoro. &lt;/li&gt;
&lt;li&gt;As you have completed 4 pomodoro blocks. Meaning 4 25-min pomodoro sections, you can take a long break of 20-30 minutes. &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a Pretty simple, a useful technique ta could help you improve productivity and get you to do more.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;👇 Please Check out the Wikipedia Resource as it's a quick Read that give you all the Detail needed quickly 👇&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;REFERENCES:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://en.wikipedia.org/wiki/Pomodoro_Technique"&gt;Wikipedia&lt;/a&gt;&lt;br&gt;
&lt;a href="https://lifehacker.com/productivity-101-a-primer-to-the-pomodoro-technique-1598992730"&gt;Lifehacker Article&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/amitmerchant1990/pomolectron"&gt;Pomolectron Timer app I used&lt;/a&gt; been using this one for years, simple and get the job done.&lt;strong&gt;Most Important to me, It's Open Source.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>What's GIT &amp; GitHub Purpose</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Fri, 11 Mar 2022 03:15:42 +0000</pubDate>
      <link>https://forem.com/eulis01/whats-git-github-purpose-1e30</link>
      <guid>https://forem.com/eulis01/whats-git-github-purpose-1e30</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt; &lt;strong&gt;WARNING: Not a Guide on how to use GIT or GitHub.&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The term version control might sound odd to you, but it does what exactly what the name said. Git Is free and open-source, and it's a type of version control system we as developers used to track changes and history, within our projects.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  GIT -- (Version Control System)
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Git is the Worldwide standard Version control system we use to track versions/history of the project directory. &lt;/li&gt;
&lt;li&gt;Distributed version control system, mean that the local copy or clone of the project is it own complete version control system. These are a fully functional local repositories to make our life easy by allowing us to work remotely or offline. &lt;/li&gt;
&lt;li&gt;This Whole process work like this: developers us commit code locally, then later we sync up our repository with the one on the server. This is different from a centralized version control system, where the client must be synchronized with the server before being able to create a new branch.&lt;/li&gt;
&lt;li&gt;Just About Every development environment supports GIT, and the GIT Command Line Tools run in almost all the operating system.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://docs.microsoft.com/en-us/devops/develop/git/what-is-git#git-basics"&gt;&lt;strong&gt;More About GIT&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  GitHub
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Basically is a place to host your code online, and allow for collaboration and version control. &lt;/li&gt;
&lt;li&gt;GitHub allow you and many others peoples to work together and contribute to a project. &lt;/li&gt;
&lt;li&gt;At it Core, data server and website that host our code on the cloud.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://education.github.com/git-cheat-sheet-education.pdf"&gt;&lt;strong&gt;GitHub GIT CHEAT SHEET&lt;/strong&gt;&lt;/a&gt; 👈 Click the link to get a copy of the PDF.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://training.github.com/"&gt;&lt;strong&gt;In Other Languages&lt;/strong&gt;&lt;/a&gt; 👈 Cheat Sheet in many Languages.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>git</category>
      <category>github</category>
    </item>
    <item>
      <title>Quick and Dirty ERB Conditionally Rendering 🤭</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Thu, 10 Mar 2022 03:39:45 +0000</pubDate>
      <link>https://forem.com/eulis01/quick-and-dirty-erb-conditionally-rendering-3bke</link>
      <guid>https://forem.com/eulis01/quick-and-dirty-erb-conditionally-rendering-3bke</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note: We are using this &lt;code&gt;if&lt;/code&gt; statement within a &lt;code&gt;form_for&lt;/code&gt; or a &lt;code&gt;form_with&lt;/code&gt;, Rails Form builders.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;While working on one of my project, I needed to show a link to edit or delete a resource or objects only if they belong to the user that created that object. So I Know about if statement and unless method, But I do not need to render and else part of the statement, just the if.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;% if &lt;/span&gt;&lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;user&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;current_user&lt;/span&gt; &lt;span class="sx"&gt;%&amp;gt;
            &amp;lt;%= link_to 'Edit', edit_tag_path(tag), method: :get %&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= link_to 'Delete', tag_path(tag), method: :delete, data: { confirm: 'Are you sure?' } %&amp;gt; &amp;lt;br&amp;gt;
    &amp;lt;% end %&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;This is not even a do block, this block of code will only run if the condition set inside the  &lt;code&gt;if&lt;/code&gt; is true&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;So basically if the user that created the tag is equal to the &lt;code&gt;current_user&lt;/code&gt; currently log in them, it will render this links into the view.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Another shorter way to do this would be just passing an &lt;code&gt;if&lt;/code&gt; at the end of the &lt;code&gt;link_to&lt;/code&gt; block.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= link_to 'Edit', edit_tag_path(tag), method: :get, if tag.user =&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;current_user&lt;/span&gt; &lt;span class="sx"&gt;%&amp;gt;
            # This link_to would only render if the IF Statement is true else It would not Render.

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

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note: Ruby would read the view or any file from the top to bottom. This mean that if something evaluate to false like this it would be skipped and not rendered and the next action or block after this one would run.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>ruby</category>
      <category>rails</category>
    </item>
    <item>
      <title>5 Questions Before Asking for Help❓</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Wed, 09 Mar 2022 02:51:02 +0000</pubDate>
      <link>https://forem.com/eulis01/5-questions-before-asking-for-help-1ehd</link>
      <guid>https://forem.com/eulis01/5-questions-before-asking-for-help-1ehd</guid>
      <description>&lt;p&gt;While learning to code, I have gathered from others and resources a list of question to ask myself and include as context when messaging or asking for help. Also, these question could possibly help you figure out the problem before you ask for help.&lt;/p&gt;

&lt;blockquote&gt;
&lt;h4&gt;
  
  
  What Do You think the problem is ?
&lt;/h4&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This One is self-explanatory, We must document or write down what we think is the issue, e.g., Whenever the link to view a user post is clicked nothing happens, or I think  need to allow the that resources  parameters to be permitted in the app. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Try to answer this question like if you had to ask a 5-year-old child, e.g., I think the routes is incorrect?.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;h4&gt;
  
  
  What Exactly do you want to happens?
&lt;/h4&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;From what you're trying to do what is the end results of that, do you want to display a vies page or do some Tasks on the background and redirect. e.g., Me User Submit a Login Form, I should see my home page displaying this user info. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;e.g., If User Log out and accept popup alert, log out and show the root page of the application.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;h4&gt;
  
  
  What's Actually happening?
&lt;/h4&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Describe what happens when you're trying to perform what you want to do, e.g., I click on Delete Post link and I get logout the app.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you are trying to Do X what is happening, you get an error, nothing happens, get log out the app, get redirected to home, So pretty much what happened when you did X.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;h4&gt;
  
  
  How did you get there ?
&lt;/h4&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What is the step to get to the error you just got, or describe the action taken to get where you are. e.g., Login and click on X them Performed Y and Here I am. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Basically, You got to trace back the step you took before you arrive at the error or location you're at now. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;h4&gt;
  
  
  What Have you tried So Far?
&lt;/h4&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Have you tried anything to resolve the problem, if so, take notes. e.g., did you look up the error code write take note, did you change an object or a parameter somewhere take notes, all of this step are important to help you solve the problem. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Have You look on your notes to see if you have encountered this error before. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I changed X To Y because I though this, or I changed the &lt;a class="mentioned-user" href="https://dev.to/post"&gt;@post&lt;/a&gt; to @posts i think i needed all the posts, no just one post.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What's Dopamine?</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Mon, 07 Mar 2022 19:45:31 +0000</pubDate>
      <link>https://forem.com/eulis01/whats-dopamine-9ho</link>
      <guid>https://forem.com/eulis01/whats-dopamine-9ho</guid>
      <description>&lt;p&gt;Dopamine is described to be a type of neurotransmitter that our body make, and is used by the nervous system to send message to body cells. Sometimes it can be called "chemical messenger". &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have You ever felt pleasure or good about seeing or doing something, that's the role dopamine play in our body.&lt;/li&gt;
&lt;li&gt;It gives us the ability to find things interesting, and allow us to focus, strive, think and make a plan.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;These chemical spreads along the main four pathways of the brain. Just like any other system on the body you don't notice a problem until its already happened. &lt;br&gt;
There are limit and lack of Dopamine can lead to many problems, sometimes a serious as the Parkinson's disease.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;After the Pandemic in 2020 our live change drastically some work from home and most of us are going to school or going through a career shift. This could lead us to overdose on dopamine, let it be watching TV or endlessly scrolling through social media.&lt;/li&gt;
&lt;li&gt;We might take for granted the action we do today but might regret them later, so develops good healthy habit and hope for the best&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note: Please Do Some research about dopamine and see if you're having too much or too little in some areas of your life.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Web 3.0 or Scammers Paradise? </title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Mon, 07 Mar 2022 01:22:12 +0000</pubDate>
      <link>https://forem.com/eulis01/web-30-or-scammers-paradise-3k3h</link>
      <guid>https://forem.com/eulis01/web-30-or-scammers-paradise-3k3h</guid>
      <description>&lt;p&gt;We have seen it all over the news, social media and around the web the misconception of NFT and web 3.0 The safe heaven for scammer and hell for some  players in the game. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Web 3.0 ?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Definition of web3 change depending on who you ask, people are clueless and do not understand the underlying basic. &lt;/li&gt;
&lt;li&gt;Web1 is to be the web pages of the internet or static websites as well. &lt;/li&gt;
&lt;li&gt;Web2 we get more modern thing like web app and apps. Basically adding JS to make sites interactive. &lt;/li&gt;
&lt;li&gt;Web3 is to be where everything above can communicate With a blockchain to retrieve metadata or data. And Many believe that most blockchain are "DECENTRALIZED" but they are far from the truth. Decentralization of metadata and web service are really hard and expensive to set up. &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;My point is that You Must &lt;strong&gt;DYOR&lt;/strong&gt; whenever someone tell you to invest or buy something. &lt;br&gt;
Web3 is not one thing but a combination of many technology interconnected. &lt;br&gt;
&lt;strong&gt;!!!Warning not a Web3 or crypto expert just giving out my perspective on the situation.!!!&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Why a Scammers Paradise ?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This one is a controversial topic as there could be some value and use case for a project, it does not mean that the intention of some is to make money and Rug Pull some folks as they say these days.&lt;/li&gt;
&lt;li&gt;So Lil Jonny has an idea, he made a project called &lt;strong&gt;"You're getting Scammed"&lt;/strong&gt; as a Social experiment. &lt;/li&gt;
&lt;li&gt;Everywhere you look, this project is told to be a scam and social experiment by the creator himself. &lt;/li&gt;
&lt;li&gt;The project is live now and one huge influencer Lil Pi decided to tweet  "my fam just got the &lt;strong&gt;"You're getting Scammed"&lt;/strong&gt;  Token do not buy not financial advice "&lt;/li&gt;
&lt;li&gt;It started trending that he invested in that project and the Degenerates' army jump in first trying to buy and sell to others to make profits,  but they cants sell. Token is locked, not spending(DYOR). &lt;/li&gt;
&lt;li&gt;Everyone lost the money now Lil Jonny has the bag and shutdown the project. As stated in the white-paper. &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;My Biggest advice is DYOR on anything and then DYOR on Your Own Research if that make sense.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Some Topics To Research:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Centralized Blockchain &lt;br&gt;
Decentralized Blockchain&lt;br&gt;
Semantic Web&lt;br&gt;
Bitcoin White-Paper original proposal and updated&lt;br&gt;
Interoperability &lt;br&gt;
Metadata &lt;br&gt;
etc &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;My Biggest Concern is how little people care about theirs personal  privacy/identities  and giving out too much information to big tech company, I advocate For Big tech Company to Stop Metadata mining on the citizen of the world.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>web3</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Improving My Sleep Habits</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Sun, 06 Mar 2022 04:23:13 +0000</pubDate>
      <link>https://forem.com/eulis01/improving-my-sleep-habits-gm2</link>
      <guid>https://forem.com/eulis01/improving-my-sleep-habits-gm2</guid>
      <description>&lt;p&gt;Now day we have really distracted live let it be we're in front of a computer all day or just simply watch some TV before bed or be on our mobile phone before bed all of this thing might relate to you, and you might have heard that to be able to sleep good a night you need to stop using the phone before bed or not to drink coffee at night. So that way we keep our brains' photoreceptor as they should be. &lt;/p&gt;

&lt;p&gt;I have many problems but sleep seen to be a problem to most of us in today society or generation due to the fact that we are mostly on our phone all day or in the computer. So having a good night of sleep with a full 8 hours might be optimal, but in my current situation I could only get about 5 hours max of sleep per night. &lt;/p&gt;

&lt;h2&gt;
  
  
  The US Military Sleep Technique
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;TLDR; Yes it works, I was surprise that as many podcast as I listen to or papers/ books read online I never came around this quick technique to help foe like me that might be suffering from Insomnia or a good deal of other stuff that could keep us from going to sleep at night. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;There are a few short steps that must be taken for this to work properly as you could look this them up the US military sleeping technique a find many articles about I just learned or heard someone talk about it on one of the twitter space I was in the last couple of days I took it down a hard mental note about it and look it up, gave it a try, and it worked for me, so I repeated next day and I worked again, and again, wow this is life changing since due to my current situation I could only go to sleep after 11:30-12:30 most of the day, This Could be why I felt like a night owl all this time.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Relaxation, Breathing &amp;amp; Clearing You'r Mind&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The way to begin this Technique as Describe online is to relax your  body from head to toe,  tighten muscle up and let them loose to a relaxed state.  I do this backward somehow, I start from my toe and work my way to my head in the pillow. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Controlling the breath or breathing, it's important to take big breaths and exhale slowly. Feel how the air enter and leave your nostrils. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Clean your mind of unwanted though Bet way is to repeat the word "nothing" or like they said "Do not think" either one should work.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://thatsleepguy.com/master-the-us-military-sleep-technique-the-easy-way/"&gt;Reference Article&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;This Shall be taken as a Quick introduction  to the Sleeping technique, Please DYOR. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What's a Rails Partial?</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Sat, 05 Mar 2022 03:41:58 +0000</pubDate>
      <link>https://forem.com/eulis01/whats-a-rails-partial--4bji</link>
      <guid>https://forem.com/eulis01/whats-a-rails-partial--4bji</guid>
      <description>&lt;p&gt;In a Rails Application, partial templates are a way of breaking down the view rendering processes into small bits. Partials allow us to reuse  a block of code in many of others files and templates. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Partial are easily created by making a file &lt;code&gt;_form.html.erb&lt;/code&gt; within the &lt;code&gt;app/views/tags/_form.html.erb&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To use or render a Partial, we need to pass the render method within a view &lt;code&gt;&amp;lt;%= render 'form' %&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We leave out the underscore when rendering the partial.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; To Render a partial in another file, we must use the path.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;%= render partial: 'form', locals: { tag: @tag } %&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Partial are a great way to practice the DRY philosophy. &lt;br&gt;
&lt;a href="https://api.rubyonrails.org/classes/ActionView/PartialRenderer.html"&gt;Reference&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;The example below is an example of a form partial file.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= form_with(model: [@tag.bookmark, @tag]) do |f| %&amp;gt;

    &amp;lt;% if !@tag.bookmark %&amp;gt;
    &amp;lt;%=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;label&lt;/span&gt; &lt;span class="ss"&gt;:bookmark_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Bookmark:"&lt;/span&gt; &lt;span class="o"&gt;%&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= f.collection_select :bookmark_id, Bookmark.order(:name), :id, :name %&amp;gt;
    &amp;lt;% else %&amp;gt;
    &amp;lt;%=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hidden_field&lt;/span&gt; &lt;span class="ss"&gt;:bookmark_id&lt;/span&gt; &lt;span class="o"&gt;%&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;% end &lt;/span&gt;&lt;span class="o"&gt;%&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;br&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;br&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= f.label :name, 'Tag Name:' %&amp;gt;
    &amp;lt;%=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text_field&lt;/span&gt; &lt;span class="ss"&gt;:name&lt;/span&gt; &lt;span class="o"&gt;%&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;br&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;br&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sx"&gt;%= f.submit %&amp;gt;
&amp;lt;% end %&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;This Was Just a quick Overview of partials within a Ruby on Rails Application, Please check out the reference to the rails docs linked above the code block as this post only explain the basic use of form partials.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>ruby</category>
      <category>rails</category>
    </item>
    <item>
      <title>Importance of DRY &amp; KISS For Software Developer </title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Thu, 03 Mar 2022 23:21:32 +0000</pubDate>
      <link>https://forem.com/eulis01/importance-of-dry-kiss-for-software-developer-5e5f</link>
      <guid>https://forem.com/eulis01/importance-of-dry-kiss-for-software-developer-5e5f</guid>
      <description>&lt;ul&gt;
&lt;li&gt;In my previous blog post abstraction helpers in rails you might have seen the word DRY, you might have looked it up and might know what it means or not, but not worries Here I would do my best to give you a quick explanation like if it was for a 5 years old kid.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  DRY (Don't Repeat Yourself)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;DRY mean Don't Repeat Yourself,  are set of principle that we are to adopt as a developer. At it Core, the Purpose of Keeping it DRY is to reduce the amount of repetition of information. &lt;a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself"&gt;As stated in the DRY principle&lt;/a&gt;,  --"Every piece of knowledge or logic must have a single, unambiguous, representation within a system".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Main Reason Why it's important to keep it dry is because if there is a problem with the code, and you need to make a change, you do not have to change the same code in multiples places. Whenever developing software with a mindset of keeping it KISS  and DRY. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This a good Way to keep dry, try to divide your codebase into blocks or pieces of code and logic to be as reusable as possible, so we can call them where we need them.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Below is an Example of a  SessionsHelper module, The methods listed below are to be used in different places through the App.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;module&lt;/span&gt; &lt;span class="nn"&gt;SessionsHelper&lt;/span&gt;
    &lt;span class="c1"&gt;# Logs In The given user.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;log_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;id&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="c1"&gt;# Returns the current logged-in user (if any).&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;current_user&lt;/span&gt;
        &lt;span class="vi"&gt;@current_user&lt;/span&gt; &lt;span class="o"&gt;||=&lt;/span&gt; &lt;span class="no"&gt;User&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;id: &lt;/span&gt;&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="c1"&gt;# Returns true if the user is logged in, false otherwise.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;logged_in?&lt;/span&gt;
        &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;current_user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;nil?&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="c1"&gt;# Log Out the current user.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;log_out&lt;/span&gt;
        &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="vi"&gt;@current_user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kp"&gt;nil&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="c1"&gt;# Redirect to Root if not logged in.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redirect_if_not_logged_in&lt;/span&gt;
        &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;root_path&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;logged_in?&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Any change made to this method will be kept in sync and update automatically through the application.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allow us to write less code, save time reduce bugs and make it easier to maintain the codebase. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://dev.to/eulis01/ruby-on-rails-abstraction-helpers-360f"&gt;Checkout This Blog On Ruby on Rails Abstraction for another perspective&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  KISS (Keep It Simple, Stupid)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To Keep it short the KISS Principle at it core aim to keep the clean and  simpler, thus making it easy to consume and understand.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Remember Programming language are made for us humans to understand, hence computer only knows  Binary or 1 and 0 110011011. So with this in mind we need to keep the code simple and straightforward, keeping all the methods small and concise, Somewhere I've Read  that we should aim to keep Each method  around 40-50 lines of codes. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To put it into even more simple terms, we need to make code readable to others humans, so we must use descriptive names for methods, variable, function, etc. this make sure us or someone else looking  your repo on GitHub can understand and read your code in the future. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;You can perform a Quick Search about DRY or Kiss To Get more in-depth article related to this area.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Ruby on Rails Abstraction Helpers</title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Wed, 02 Mar 2022 03:08:37 +0000</pubDate>
      <link>https://forem.com/eulis01/ruby-on-rails-abstraction-helpers-360f</link>
      <guid>https://forem.com/eulis01/ruby-on-rails-abstraction-helpers-360f</guid>
      <description>&lt;ul&gt;
&lt;li&gt;While Building Ruby on Rails Application there might a situation where you need to evaluate or use a block of code or methods in multiples places of the application, for examples we need to find the :id of the user that is currently login before updating data to the database or for that user to be able to access a different page and data. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Class Scoped Private Helper methods
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Privates helpers methods are Define after the &lt;code&gt;private_&lt;/code&gt; reserved keyword in ruby and are only available to the scope or the class that it's define within. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Here an example from a SessionController that it purpose it to make sure the user trying to log into the application is a valid user and redirect the user to the appropriate view page.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SessionsController&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;ApplicationController&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;home&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;create&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:provider&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"github"&lt;/span&gt;
            &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;User&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_or_create_from_github_omniauth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;persisted?&lt;/span&gt;
                    &lt;span class="n"&gt;log_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                    &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;user_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;else&lt;/span&gt;
                    &lt;span class="n"&gt;flash&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:message&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"There was an error while trying to authenticate you..."&lt;/span&gt;
                    &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;root_path&lt;/span&gt;
                &lt;span class="k"&gt;end&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;
                &lt;span class="vi"&gt;@user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;User&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;email: &lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:email&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="vi"&gt;@user&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="vi"&gt;@user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;authenticate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:password&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
                &lt;span class="n"&gt;log_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="vi"&gt;@user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;user_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="vi"&gt;@user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;
                &lt;span class="n"&gt;flash&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:message&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Invalid Login Information. Please try again."&lt;/span&gt;
                &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;login_path&lt;/span&gt;
            &lt;span class="k"&gt;end&lt;/span&gt; 
        &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;destroy&lt;/span&gt;
        &lt;span class="n"&gt;log_out&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;logged_in?&lt;/span&gt;
        &lt;span class="n"&gt;flash&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:message&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"You have successfully logged out."&lt;/span&gt;
        &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;root_path&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="kp"&gt;private&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;auth&lt;/span&gt;
        &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;env&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'omniauth.auth'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In the 3rd line of the create method of this Session class, we call the auth private helper method that is defined at the end of the class block.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;user = User.find_or_create_from_github_omniauth(auth)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;These methods are a block of code accessible only to this class scope, not to another class on another file.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Global Scoped Helpers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;To my understanding, global helper method are the next level of abstraction where we have a single file for in &lt;code&gt;app/helpers&lt;/code&gt;  directory 
these helpers have module that are similar to class but more compartmentalized, so in the application controller we need to include these helpers methods, so we can use them in the controller and views example below 👇.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ApplicationController&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;ActionController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Base&lt;/span&gt;
    &lt;span class="c1"&gt;# Prevent CSRF attacks by raising an exception.&lt;/span&gt;
    &lt;span class="n"&gt;protect_from_forgery&lt;/span&gt; &lt;span class="ss"&gt;with: :exceptio&lt;/span&gt;
    &lt;span class="c1"&gt;# For APIs, you may want to use :null_session instead.&lt;/span&gt;
    &lt;span class="c1"&gt;# Give access to helper methods in the view&lt;/span&gt;
    &lt;span class="kp"&gt;include&lt;/span&gt; &lt;span class="no"&gt;SessionsHelper&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;BookmarksHelper&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TagsHelper&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Above we are using the include method to give access to all  any controller than inherit from the Application controller so the Helpers module methods are available to use within the controller's scope.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example of The Session Helper module that we are including in the above controller.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;    &lt;span class="k"&gt;module&lt;/span&gt; &lt;span class="nn"&gt;SessionsHelper&lt;/span&gt;

    &lt;span class="c1"&gt;# Logs In The given user.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;log_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;id&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c1"&gt;# Returns the current logged-in user (if any).&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;current_user&lt;/span&gt;
        &lt;span class="vi"&gt;@current_user&lt;/span&gt; &lt;span class="o"&gt;||=&lt;/span&gt; &lt;span class="no"&gt;User&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;id: &lt;/span&gt;&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c1"&gt;# Returns true if the user is logged in, false otherwise.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;logged_in?&lt;/span&gt;
        &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;current_user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;nil?&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c1"&gt;# Log Out the current user.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;log_out&lt;/span&gt;
        &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="vi"&gt;@current_user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kp"&gt;nil&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c1"&gt;# Redirect to Root if not logged in.&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redirect_if_not_logged_in&lt;/span&gt;
        &lt;span class="n"&gt;redirect_to&lt;/span&gt; &lt;span class="n"&gt;root_path&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;logged_in?&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In the above block of code we have a few methods define that we are using to log in the user, logout, current_user &amp;amp; redirect_if_not_logged_in. These methods are a block of code or a piece of code that perform a single or multiples action that would be repeated many times in the controller. This is How We keep our applications DRY.&lt;/li&gt;
&lt;li&gt;At first this might have seen a little mundane or lot to take in, but once you use the helper module and test them out it would clean up an abstract your code massively. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Little way that helped me understand this easily is looking at every method  and objects as a block or cube of code or  small blocks that call upon each other and perform a function or and outcome, Hope this was helpful to someone. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>ruby</category>
      <category>rails</category>
    </item>
    <item>
      <title>What's Homebrew 🍺? </title>
      <dc:creator>Eulis</dc:creator>
      <pubDate>Tue, 01 Mar 2022 00:47:50 +0000</pubDate>
      <link>https://forem.com/eulis01/whats-homebrew--1ko1</link>
      <guid>https://forem.com/eulis01/whats-homebrew--1ko1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;In simples Term is an alternative way to the app store on apple or many of the linux appstore or application manager.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;So What can this  Homebrew thing do?&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Glad you asked. so its a Terminal application or a CLI (Command Line Interface) package Manager that let you install any app into mac or linux Distribution  with  a single command from the terminal. 🤯&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;You no longer need to download a .dmg package and drag and drop it to the app folder, those days are over&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First I would list out some command and outputs from the terminals.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;most likely if you have a mac you have homebrew install already if not copy the following command in you terminal and hit enter.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/bin/bash &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;One of the most important command is the Search:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;brew search firefox&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;==&amp;gt; Formulae
firefoxpwa

==&amp;gt; Casks
firefox-beta                                            firefox-esr                                             firefox
firefox-developer-edition ✔                             firefox-nightly                                         multifirefox
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;To install it You just need use the &lt;code&gt;brew install firefox-beta&lt;/code&gt; this is how you install packages and apps &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Formulae&lt;/strong&gt; are CLI APP or terminal based program, with no user interface or visual interface. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Casks&lt;/strong&gt; are Desktop application like the .dmg packages or the .exe files on the good old windows. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is not mean to be a guide or a how to or anything like that but just a quick look and a way to improve my writing. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  References:
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.brew.sh/"&gt;HOMEBREW DOCS&lt;/a&gt; &amp;lt;-- Official  Docs&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;a href="https://formulae.brew.sh/"&gt;HOMEBREW FORMULAE&lt;/a&gt;  &amp;lt;--To Search for Formulae&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;NOTE: This is one of 30 blogs that I would be attempting to write over the next 30 days to improve my writing skills. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>100wordsaday</category>
      <category>inkedin</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
