<?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: Segun Aderinola</title>
    <description>The latest articles on DEV Community by Segun Aderinola (@segun_aderinola).</description>
    <link>https://dev.to/segun_aderinola</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%2F740677%2F5053d3d5-6b40-4fb4-a2ce-d19ab733a115.jpeg</url>
      <title>DEV Community: Segun Aderinola</title>
      <link>https://dev.to/segun_aderinola</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/segun_aderinola"/>
    <language>en</language>
    <item>
      <title>How to Forward a domain to another domain</title>
      <dc:creator>Segun Aderinola</dc:creator>
      <pubDate>Sat, 16 Apr 2022 05:34:14 +0000</pubDate>
      <link>https://dev.to/segun_aderinola/how-to-forward-a-domain-to-another-domain-4i5n</link>
      <guid>https://dev.to/segun_aderinola/how-to-forward-a-domain-to-another-domain-4i5n</guid>
      <description>&lt;p&gt;Do you have a new domain name for your website and you are thinking of how to link the old and the new domain together such that if people visit the old domain it will forward or redirect the user to the new domain name?&lt;/p&gt;

&lt;p&gt;In this article, we will be learning domain forwarding, how we can handle domain forwarding, and the reason why it is necessary.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is Domain forwarding?
&lt;/h4&gt;

&lt;p&gt;Sometimes a website is so good you have to name it twice, three times, or more. Included in the cost of the domain name, domain forwarding allows you to point one or more domain names to an existing website. You may be wondering why or how you would use additional domain names to drive traffic to your primary website. Misspellings, alternate extensions, abbreviations, or keywords are all popular examples of different domain names pointing to the same website.&lt;/p&gt;

&lt;p&gt;For example;&lt;br&gt;
 If your domain is registered with GoDaddy (one of the most popular web hosting companies where you can host your websites) and your website is hosted by another web hosting company, you can forward your GoDaddy domain to a site you've created with Wix, WordPress, or any other URL.&lt;/p&gt;

&lt;h4&gt;
  
  
  Reasons why you need domain forwarding
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Misspelling:&lt;/strong&gt; How many times have you accidentally typed facebok.com into your web browser? Think about how much traffic a domain name like that gets from people mistakenly entering the wrong address.&lt;br&gt;
Facebook combats this by redirecting facebok.com, fasebook.com, and many other misspellings to their main website, facebook.com. If they hadn’t their users could end up on someone else’s website, a competitor perhaps. Web forwarding creates a seamless experience for users who might not have even realized their mistake.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Abbreviations:&lt;/strong&gt; Businesses, universities, and other such cases can use abbreviations as either their main domain name or as their redirect. Kelly Blue Book uses web forwarding for this purpose. When you type kellybluebook.com into your web browser you will be redirected to their main website address kbb.com.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Keywords or Phrases:&lt;/strong&gt; We don’t always get our first choice when it comes to usernames for our social media profiles or domain endings. If you didn’t get your name in .com you can always find a short and keyword-specific new domain ending to redirect to.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the introduction of hundreds of new generic domains, web forwarding (also known as “Domain forwarding” or “URL forwarding”) is a great tool to have.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why do we use hosting?
&lt;/h4&gt;

&lt;p&gt;To build a website you will need both a domain name and a web hosting account. You need web hosting to store your website’s files. After you get hosting, you need to update your domain name settings and point it to your web hosting service provider. You can also buy both the domain and hosting from the same company.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why webpage redirection is useful for website development?
&lt;/h4&gt;

&lt;p&gt;A website redirect points your old URL to a new page. When anyone types in or click on that original URL they’ll be taken to the page you set the redirect up to instead. It ensures visitors don’t end up on a 404 page and instead find something relevant to what they were originally looking for.&lt;/p&gt;

&lt;h4&gt;
  
  
  Different types of Domain forwarding
&lt;/h4&gt;

&lt;p&gt;There are two main types of domain forwarding;&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Forward Only or HTTP 301 Forwarding
&lt;/h4&gt;

&lt;p&gt;Forwarding as 301/redirect forwards your domain name to another URL while changing the name to the forwarded-to site’s address in the browser location bar. &lt;em&gt;This is the most popular option of web forwarding&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Redirects visitors to a destination URL of your choosing&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keeps the destination URL in the browser address bar&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, you have a domain name called &lt;a href="http://www.old.com"&gt;www.old.com&lt;/a&gt; and you forward the domain to another domain say &lt;a href="http://www.new.com"&gt;www.new.com&lt;/a&gt;. If the user visits &lt;a href="http://www.old.com"&gt;www.old.com&lt;/a&gt;, the user will be redirected to &lt;a href="http://www.new.com"&gt;www.new.com&lt;/a&gt;, but &lt;a href="http://www.old.com"&gt;www.old.com&lt;/a&gt; will be displayed in the URL bar. The good reason you want to do this is probably that you do not want the user to feel insecure seeing another URL, knowing that was not the URL the user entered. So for that sake, you might choose the forward-only option.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Forward with Masking (Cloaking Forwarding)
&lt;/h4&gt;

&lt;p&gt;Forwarding with masking forwards your domain name to another URL while keeping the original name in the browser location bar. This prevents visitors from seeing your forwarded-to domain name.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Redirects visitors to a destination URL of your choosing&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keeps your domain name in the browser address bar&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows you to enter meta-tags for search engine information&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, you have a domain name called &lt;a href="http://www.this.com"&gt;www.this.com&lt;/a&gt; and you forward the domain to another domain say &lt;a href="http://www.new.com"&gt;www.new.com&lt;/a&gt;. If the user visits &lt;a href="http://www.old.com"&gt;www.old.com&lt;/a&gt;, the user will be redirected to &lt;a href="http://www.new.com"&gt;www.new.com&lt;/a&gt;, and &lt;a href="http://www.new.com"&gt;www.new.com&lt;/a&gt; will be displayed in the URL bar.&lt;/p&gt;

&lt;h4&gt;
  
  
  How do I redirect a domain to another?
&lt;/h4&gt;

&lt;p&gt;Redirecting a new domain or subdomain (legacy)&lt;br&gt;
I think I should specify that different hosting providers have different ways of forwarding domain, but the most important thing is to locate the domain &lt;strong&gt;forwarding section&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Using **GoDaddy **for example:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Log in to your GoDaddy Domain Control Center.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Navigate to the Manage Domains page. The Manage Domains page opens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select your domain to access the Domain Settings page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Manage DNS under Additional Settings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Forwarding, select Add domain next to Domain or Subdomain. If you select a subdomain, enter the subdomain (maximum of 63 characters) in the Subdomain field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose http:// or https:// from the dropdown menu for the destination URL your domain will forward to.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter the forwarding address in the Destination URL field. This is where we'll send visitors when they type your domain in their browser's address bar.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select your Forward type, either Permanent (301) or Temporary (302).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Save.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I hope you found this article helpful 🙂.&lt;/p&gt;

&lt;p&gt;Thanks for reading ❤️.&lt;/p&gt;

&lt;p&gt;Happy coding 💻!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding Object Oriented Programming (OOP) with real world concept</title>
      <dc:creator>Segun Aderinola</dc:creator>
      <pubDate>Sat, 09 Apr 2022 17:42:33 +0000</pubDate>
      <link>https://dev.to/segun_aderinola/understanding-object-oriented-programming-oop-with-real-world-concept-3li4</link>
      <guid>https://dev.to/segun_aderinola/understanding-object-oriented-programming-oop-with-real-world-concept-3li4</guid>
      <description>&lt;p&gt;Hi guys, today we are going to be learning Object-Oriented Programming - OOP with real-world examples. Take a seat and Grab your popcorn.. chuckles.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is OOP?
&lt;/h4&gt;

&lt;p&gt;Object-oriented programming (OOP) refers to a type of computer programming (software design) in which programmers define the data type of a data structure, and also the types of operations (functions) that can be applied to the data structure. &lt;/p&gt;

&lt;p&gt;In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.&lt;/p&gt;

&lt;p&gt;An Object can be defined as a data field that has unique attributes and behavior.&lt;/p&gt;

&lt;p&gt;An object has two characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;attributes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;behavior&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's take an example:&lt;/p&gt;

&lt;p&gt;A parrot is an object, as it has the following properties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;name, age, color as attributes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;singing, dancing as behavior&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The concept of OOP focuses on creating reusable code. This concept is also known as DRY (Don't Repeat Yourself).&lt;/p&gt;

&lt;p&gt;In this article, we will understand the four main pillars of OOP.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Polymorphism&lt;/li&gt;
&lt;li&gt;Inheritance&lt;/li&gt;
&lt;li&gt;Abstraction&lt;/li&gt;
&lt;li&gt;Encapsulation&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Polymorphism
&lt;/h3&gt;

&lt;p&gt;It simply means, "Many forms". A man can be a father, brother, son, or student. This means that the same person can have different roles. Just like that, in programming, one method can have various forms.&lt;/p&gt;

&lt;p&gt;E.g, if you have played with MS paint, you will agree that selecting various shapes such as squares, rectangles, circles, etc was something we all loved.&lt;/p&gt;

&lt;p&gt;There is one main method, createShape(), but it has different forms such as square, rectangle, circle, etc. This is done via polymorphism!&lt;/p&gt;

&lt;h3&gt;
  
  
  Inheritance
&lt;/h3&gt;

&lt;p&gt;Inheritance is a way of creating a new class by using details of an existing class without modifying it. The newly formed class is a derived class (or child class). Similarly, the existing class is a base class (or parent class).&lt;/p&gt;

&lt;p&gt;Let us look at cats. They can have the same color, name, size, fur, etc but they are not the same cat.&lt;br&gt;
A Maine coon, tabby, tiger cat, Persians, pussy cat, etc are all cats.&lt;/p&gt;

&lt;p&gt;They come under the main class cat but have various properties of their own.&lt;/p&gt;

&lt;p&gt;Just like in programming, we can have one main class, with child classes as well. The child classes will all inherit methods and attributes of their parent class but may have methods and attributes of their own too.&lt;/p&gt;

&lt;h3&gt;
  
  
  Abstraction
&lt;/h3&gt;

&lt;p&gt;A laptop can do many things. You can code, make documents, do video calls, play games, etc.&lt;/p&gt;

&lt;p&gt;It doesn't show you the inside process of how it performs all these tasks.&lt;/p&gt;

&lt;p&gt;So implementation is hidden!&lt;/p&gt;

&lt;p&gt;It only displays the relevant attributes and hides unnecessary info.&lt;/p&gt;

&lt;p&gt;Abstraction is a way of hiding implementation details from users and only displays the features to them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Encapsulation
&lt;/h3&gt;

&lt;p&gt;Using OOP, we can restrict access to methods and variables. This prevents data from direct modification which is called encapsulation.&lt;/p&gt;

&lt;p&gt;A company can have several departments such as HR, IT, Marketing, etc. Marketing does not have access to HR, HR does not have access to IT or Marketing but all of these make up a company.&lt;/p&gt;

&lt;p&gt;We can use encapsulation to hide data and get more flexibility such as setting variables as write-only or read-only etc.&lt;/p&gt;

&lt;h4&gt;
  
  
  Key Points to Remember:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Object-Oriented Programming makes the program easy to understand as well as efficient.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Since the class is sharable, the code can be reused.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data is safe and secure with data abstraction.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Polymorphism allows the same interface for different objects, so programmers can write efficient code.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hope you found this article useful! &lt;/p&gt;

&lt;p&gt;Thanks for reading. &lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

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