<?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: Lionnel Patrick </title>
    <description>The latest articles on DEV Community by Lionnel Patrick  (@lionnelpat).</description>
    <link>https://dev.to/lionnelpat</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%2F403439%2Fa5e0afca-c4d6-43b5-ab9d-3dd1e479dd3c.jpeg</url>
      <title>DEV Community: Lionnel Patrick </title>
      <link>https://dev.to/lionnelpat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lionnelpat"/>
    <language>en</language>
    <item>
      <title>Set up a working environment for Ruby on Rails Programming
</title>
      <dc:creator>Lionnel Patrick </dc:creator>
      <pubDate>Sat, 04 Jul 2020 10:08:31 +0000</pubDate>
      <link>https://dev.to/lionnelpat/set-up-a-working-environment-for-ruby-on-rails-programming-pm2</link>
      <guid>https://dev.to/lionnelpat/set-up-a-working-environment-for-ruby-on-rails-programming-pm2</guid>
      <description>&lt;p&gt;Hello, we continue with our series Discovering Ruby on Rails. In previous articles, we have presented some basic concepts of the web. Today we are going to show you how to install the ruby ​​programming language on your computer.&lt;/p&gt;

&lt;p&gt;While you are on a &lt;a&gt;Mac&lt;/a&gt;, &lt;a&gt;Windows&lt;/a&gt;, or &lt;a&gt;Linux&lt;/a&gt;, we will show you the different steps to install Ruby. For my part, I advise you to work on Linux or Mac OS. Indeed, with Windows, everything will be fine but sometimes further in your projects, you may encounter some small difficulties. You are ready, so let's go!&lt;br&gt;
You can use different tools to install Ruby.&lt;/p&gt;

&lt;p&gt;If you are on a UNIX-like operating system, using the package manager on your system is the easiest way to do this. However, the latest version of Ruby may not be available.&lt;br&gt;
An Installer can be used to install one or more versions of Ruby. There is also an installer for Windows.&lt;br&gt;
Managers help you switch from one version of Ruby to another on your system.&lt;br&gt;
And finally, you can also compile Ruby from source.&lt;/p&gt;

&lt;p&gt;The following summary lists the installation methods available for different needs and platforms.&lt;/p&gt;
&lt;h1&gt;
  
  
  Windows Installation
&lt;/h1&gt;

&lt;p&gt;the safest and fastest way to install Ruby on Windows is to use the &lt;a href="https://rubyinstaller.org/"&gt;RubyInstaller&lt;/a&gt; utility. It provides you with everything you need to set up a complete Ruby development environment on Windows.&lt;/p&gt;

&lt;p&gt;Download it, launch it, next, next, next…. and that's it!&lt;/p&gt;

&lt;p&gt;Just a little clarification! Note that the list of options has sections "with Dev Kit" and "without Devkit". Dev Kit versions install the MSYS2 system, which will be required if you need to install RubyGems that require compilation. Since we will be working with Ruby on Rails later, I advise you to use the "with Devkit" option&lt;/p&gt;

&lt;p&gt;You can also use &lt;a href="https://bitnami.com/stack/ruby/installer"&gt;Bitnami&lt;/a&gt; Ruby Stack, which provides a complete development environment for Rails. It is available for macOS, Linux, Windows, virtual machines, and images for the cloud.&lt;/p&gt;
&lt;h1&gt;
  
  
  Mac OS installation
&lt;/h1&gt;

&lt;p&gt;In Call World, things are a little bit different ... then you will need an internet connection, administrator rights and also a little time ...&lt;br&gt;
For my part, I do not have a Mac and I do not have enough experience on this system to drive you. I will, therefore, give you a list of reliable resources by which you can install Ruby ​​on Mac OS.&lt;/p&gt;

&lt;p&gt;&lt;a href="//www.stackify.com"&gt;stackify&lt;/a&gt;&lt;br&gt;
 &lt;a href="//www.gorails.com"&gt;gorails&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By the way, if you want to pay me a mac, don't be shy…. it will make me really happy&lt;/p&gt;
&lt;h1&gt;
  
  
  Linux Installation
&lt;/h1&gt;

&lt;p&gt;I work on a Linux Ubuntu 18.04 system. In this part we will make all the necessary installations in order to have an adequate working environment.&lt;/p&gt;
&lt;h2&gt;
  
  
  1-Installation and configuration of git
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sudo apt install git&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git config --global color.ui true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git config --global user.name "YOUR NAME"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git config --global user.email "YOUR@EMAIL.com"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ssh-keygen -t rsa -b 4096 -C "YOUR@EMAIL.com"&lt;/code&gt;0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The next step is to take the newly generated SSH key and add it to your Github account.&lt;br&gt;
&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You should receive a message like this: &lt;em&gt;Hi excid3! You have successfully authenticated, but GitHub does not provide shell access.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  2-install an Editor or IDE
&lt;/h2&gt;

&lt;p&gt;To write the code, we will need a third-party application. There are three types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;text editors&lt;/strong&gt;. Ex :, VSCode, Atom, SublimeText,&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IDE&lt;/strong&gt;: Rubymine,&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;command line applications&lt;/strong&gt; Ex: Vim&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Be free to install the tool you are most comfortable with.&lt;/p&gt;
&lt;h2&gt;
  
  
  3-install node js
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sudo apt install curl&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt install nodejs&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;node --version&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;npm --version&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  4-Install Yarn
&lt;/h2&gt;

&lt;p&gt;The stages of the process were inspired by the work of this site.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt install yarn&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo apt install --no-install-recommends yarn&lt;/code&gt; → to install NodeJs&lt;/li&gt;
&lt;li&gt;&lt;code&gt;yarn --version&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  5- Install ruby
&lt;/h2&gt;

&lt;p&gt;The stages of the process were inspired by the work of this site. There are several ways to install Ruby.&lt;/p&gt;
&lt;h3&gt;
  
  
  &lt;strong&gt;Option 1: Install Ruby from the Ubuntu Repository&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;sudo apt update&lt;/code&gt; → to update packages&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo apt install ruby-full&lt;/code&gt; → to Start the Ruby installation process&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ruby –v&lt;/code&gt; → to verify version&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  &lt;strong&gt;Option 2: Installing Ruby with RVM&lt;/strong&gt;
&lt;/h3&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;Step 1: Install GPG&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;sudo apt install gnupg&lt;/code&gt;&lt;br&gt;
&lt;code&gt;gpg --keyserver hkp: //pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB&lt;/code&gt; → to install keys&lt;/p&gt;
&lt;h4&gt;
  
  
  &lt;strong&gt;Step 2: Install RVM&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sudo apt install software-properties-common&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt-add-repository -y ppa: rael-gc / rvm&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt install rvm&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Restart your system&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3: Install Ruby&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;rvm install 2.6.5&lt;/code&gt;&lt;br&gt;
&lt;code&gt;ruby –v&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  6-install Postgres
&lt;/h2&gt;

&lt;p&gt;The stages of the process were inspired by the work of this site.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/` lsb_release -cs`-pgdg main "&amp;gt;&amp;gt; /etc/apt/sources.list.d/pgdg.list'&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 → to install keys&lt;br&gt;
&lt;code&gt;sudo apt update&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt -y install postgresql postgresql-contrib&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After installation, log in to the default user called "postgres" and run the PostgreSQL command line interface "psql".&lt;br&gt;
&lt;code&gt;su - postgres psql&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now add a new password for the Postgres user by running the following query on the psql interface.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\ password postgres&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;Type your password&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  7-Install postgresAdmin4
&lt;/h2&gt;



&lt;p&gt;&lt;code&gt;wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/` lsb_release -cs`-pgdg main "&amp;gt;&amp;gt; /etc/apt/sources.list.d/pgdg.list'&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt install pgadmin4 pgadmin4-apache2 -y&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Type your own email address which will be used as the username.&lt;/li&gt;
&lt;li&gt;Enter your password
once the installation is finished, run pgadmin4 on your terminal to start your server.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8- Install rails v 6.0.3
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;gem install rails -v 6.0.1&lt;/code&gt;&lt;br&gt;
&lt;code&gt;rbenv rehash (only if you’re using rbenv&lt;/code&gt;&lt;br&gt;
&lt;code&gt;rails -v (to verfy)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7pIt9Ual--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/mobility-sn/image/upload/v1593857668/rails_pmfuex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7pIt9Ual--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/mobility-sn/image/upload/v1593857668/rails_pmfuex.png" alt="Ruby on Rails welcome Page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have successfully installed all of these different tools, then we can move on. In the next chapters, we will see in more detail what the Ruby language is, the data structures, the functions, the loops, the syntax, the classes, objects ... So see you next week ...&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Let’s discover  Ruby on Rails : Basic concepts of Web</title>
      <dc:creator>Lionnel Patrick </dc:creator>
      <pubDate>Sun, 28 Jun 2020 19:19:40 +0000</pubDate>
      <link>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-basic-concepts-of-web-26hd</link>
      <guid>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-basic-concepts-of-web-26hd</guid>
      <description>&lt;p&gt;Hello friends, I hope you are well ... In my &lt;a href="https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-4knl"&gt;previous article&lt;/a&gt; , I talked about my background as a developer and the reasons why I suggest you discover the Ruby on Rails framework. After reading it, one of my friends asked me a few questions about Ruby and In this article, we are going to see the basic concepts of the web.  So Are you ready? let's Go!&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is the web? How does the web work?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Good question ... Often confused with the Internet which is the great network of networks, the web is only part of it. Invented by &lt;strong&gt;Tim Berners-Lee&lt;/strong&gt; and &lt;strong&gt;Robert Cailliau&lt;/strong&gt; at the end of the 1980s, the Web comes down to this tool which allows the consultation, via a browser, of the content coming from Internet sites (or Web sites).&lt;/p&gt;

&lt;p&gt;One of the easiest ways to illustrate how the web works are the relationship between a customer and a server in a restaurant. When the customer goes to a restaurant, it is because he needs a service &lt;em&gt;(a good Yassa Chicken: delicious Senegalese dish)&lt;/em&gt;. The latter will, therefore, place an order with the server. He will process his order, or have it processed by whomever it may concern, (cook, etc. etc.) and once the dish is ready, the waiter will send it to the customer who will be happy to consume it. This happens in the best of worlds, but alas we know that it does not always happen that way because sometimes the response of the server can be negative…&lt;/p&gt;

&lt;p&gt;On the web side, the client or  &lt;strong&gt;Frontend&lt;/strong&gt; will be your browser (Google Chrome, Firefox, Internet Explorer, etc.). It is through him that you will request content via a page ... browsers today with a few simple clicks will retrieve your request and send it to the web server. It's our &lt;strong&gt;Back-end!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The cook represents a super machine with several applications installed which will deal with your request in record time and send you the desired content. See the diagrams below for clarity.&lt;/p&gt;

&lt;p&gt;You have probably noticed in this image that there are elements that you may or may not be familiar with. HTML. CSS. JS etc ... Well, this is what we call Programming Languages ​​...&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is a programming language? What are the different types?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;A programming language is simply a way of communicating with your computer to get results. according to &lt;a href="https://www.wikipedia.com"&gt;Wikipedia&lt;/a&gt;, it is a conventional notation intended to formulate algorithms and produce computer programs that apply them. As intelligent as they have become today, but the little secret is that a computer does not understand anything other than 0 and 1. what is called binary code… so to tell it something you have to write it a following 0 and 1… Which is not very easy for us humans…. So very ingenious people invented a syntax less abstract for us human beings but via which we could give instructions to the computer and obtain results…. this is the birth of Programming Languages ​​...&lt;/p&gt;

&lt;p&gt;There are dozens and even hundreds. Each was designed for a purpose, and above all with a particular philosophy. Depending on the area and depending on performance, you will find a variety of languages. So among the oldest such as FORTRAN, COBOL, Language C, C ++, Perl, Python, Ruby, Java, PHP, Javascript, Go, and the most recently such as Dart, Rust, Kotlin, Swift. the continuation here&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What about Ruby?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;As mentioned above, ruby ​​is a dynamic open-source programming language that emphasizes simplicity and productivity. Its elegant syntax makes it easier to read and write. it was created by the Japanese &lt;strong&gt;Yukihiro "Matz" Matsumoto&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The latter has brought together certain functionalities of his favorite languages ​​of the time (mainly Perl, Smalltalk, Eiffel, Ada, and Lisp) in order to imagine a new language which cleverly mixes imperative and functional programming. On several occasions, he said his goal was "to try to make Ruby as natural as possible, not necessarily simple. But we will come back to this later ...&lt;/p&gt;

&lt;p&gt;So Ruby on Rails is also a programming language? Uhh NO!&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is a Framework?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;So Ruby on Rails is not a programming language but rather a Framework. According to the &lt;a href="https://www.journaldunet.fr/"&gt;journaldunet&lt;/a&gt; site, a framework (or software infrastructure in French) designates computer programming a set of tools and software components on the basis of software or an application. The objective of the framework is to simplify and standardize the work of developers. It functions like a framework or a boss, but it’s handling supposed to have already knowledge of the programming language.&lt;/p&gt;

&lt;p&gt;We can also define it as a set of tools and libraries intended to improve developer productivity. Indeed, the idea is to give you access to the recommended codes that you can reuse for the development of a site, a mobile application, a game, an extension, etc.&lt;/p&gt;

&lt;p&gt;In web development, there are many frameworks, some designed for large projects while others are useful for speeding up the development of small tasks. So there are several frameworks such as &lt;a href="http://sinatrarb.com/"&gt;Sinatra&lt;/a&gt;, &lt;a href="http://padrinorb.com/"&gt;Padrino&lt;/a&gt;, &lt;a href="http://hanamirb.org/"&gt;Hanami&lt;/a&gt;, &lt;a href="http://www.ruby-grape.org/"&gt;Grape&lt;/a&gt;, &lt;a href="https://cuba.is/"&gt;Cuba&lt;/a&gt;, &lt;a href="http://roda.jeremyevans.net/"&gt;Roda&lt;/a&gt;, &lt;a href="http://ramaze.net/"&gt;Ramaze&lt;/a&gt;, &lt;a href="http://alisnic.github.io/nyny/"&gt;NYNY&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course of all, the most popular and the one we will see in this series is the Ruby on Rails frame also called Rails or RoR. it was created in 2003 by David Heinemeier Hansson while he was working on a web project called Basecamp, a project management tool. it was officially released in July 2004 as an open-source project. Since then, many technology companies have adopted for the creation of their platform. &lt;a href="//airbnb.fr"&gt;Airbnb&lt;/a&gt;, &lt;a href="//basecamp.com"&gt;Basecamp&lt;/a&gt;, &lt;a href="https://github.com/"&gt;GitHub&lt;/a&gt;, &lt;a href="https://soundcloud.com/"&gt;SoundCloud&lt;/a&gt;, &lt;a href="https://fr.slideshare.net/"&gt;Slideshare&lt;/a&gt;, &lt;a href="http://shopify.com/"&gt;Shopify&lt;/a&gt;, &lt;a href="https://www.fiverr.com/"&gt;Fiverr&lt;/a&gt;… to name a few.&lt;/p&gt;

&lt;p&gt;In the next articles, we will introduce the Ruby language, it's functioning, syntax, etc, and then we will talk about the web with Ruby on rails. So, see you soon!&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://insights.daffodilsw.com/"&gt;https://insights.daffodilsw.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.ruby-lang.org/fr/about/"&gt;https://www.ruby-lang.org/fr/about/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.codeur.com/"&gt;https://www.codeur.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.journaldunet.fr/"&gt;https://www.journaldunet.fr/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.wikipedia.com/"&gt;https://www.wikipedia.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Let’s discover  Ruby on Rails: Basic concepts of Web</title>
      <dc:creator>Lionnel Patrick </dc:creator>
      <pubDate>Thu, 11 Jun 2020 00:51:49 +0000</pubDate>
      <link>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-basic-concepts-of-web-3954</link>
      <guid>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-basic-concepts-of-web-3954</guid>
      <description>&lt;p&gt;Hello friends, I hope you are well ... In my &lt;a href="https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-4knl"&gt;previous article&lt;/a&gt; , I talked about my background as a developer and the reasons why I suggest you discover the Ruby on Rails framework. After reading it, one of my friends asked me a few questions about Ruby and In this article, we are going to see the basic concepts of the web.  So Are you ready? let's Go!&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is the web? How does the web work?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Good question ... Often confused with the Internet which is the great network of networks, the web is only part of it. Invented by &lt;strong&gt;Tim Berners-Lee&lt;/strong&gt; and &lt;strong&gt;Robert Cailliau&lt;/strong&gt; at the end of the 1980s, the Web comes down to this tool which allows the consultation, via a browser, of the content coming from Internet sites (or Web sites).&lt;/p&gt;

&lt;p&gt;One of the easiest ways to illustrate how the web works are the relationship between a customer and a server in a restaurant. When the customer goes to a restaurant, it is because he needs a service &lt;em&gt;(a good Yassa Chicken: delicious Senegalese dish)&lt;/em&gt;. The latter will, therefore, place an order with the server. He will process his order, or have it processed by whomever it may concern, (cook, etc. etc.) and once the dish is ready, the waiter will send it to the customer who will be happy to consume it. This happens in the best of worlds, but alas we know that it does not always happen that way because sometimes the response of the server can be negative…&lt;/p&gt;

&lt;p&gt;On the web side, the client or  &lt;strong&gt;Frontend&lt;/strong&gt; will be your browser (Google Chrome, Firefox, Internet Explorer, etc.). It is through him that you will request content via a page ... browsers today with a few simple clicks will retrieve your request and send it to the web server. It's our &lt;strong&gt;Back-end!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The cook represents a super machine with several applications installed which will deal with your request in record time and send you the desired content. See the diagrams below for clarity.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fbolgKLZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media-exp1.licdn.com/dms/image/C4E12AQFMgZ69uurekA/article-inline_image-shrink_1000_1488/0%3Fe%3D1597276800%26v%3Dbeta%26t%3DKPNFYtcQt9UXv4w-qOPsSrqkuwiNc-byNw0x0LNA2gs" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fbolgKLZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media-exp1.licdn.com/dms/image/C4E12AQFMgZ69uurekA/article-inline_image-shrink_1000_1488/0%3Fe%3D1597276800%26v%3Dbeta%26t%3DKPNFYtcQt9UXv4w-qOPsSrqkuwiNc-byNw0x0LNA2gs" alt="basic web architechture"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You have probably noticed in this image that there are elements that you may or may not be familiar with. HTML. CSS. JS etc ... Well, this is what we call Programming Languages ​​...&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is a programming language? What are the different types?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;A programming language is simply a way of communicating with your computer to get results. according to &lt;a href="https://www.wikipedia.com"&gt;Wikipedia&lt;/a&gt;, it is a conventional notation intended to formulate algorithms and produce computer programs that apply them. As intelligent as they have become today, but the little secret is that a computer does not understand anything other than 0 and 1. what is called binary code… so to tell it something you have to write it a following 0 and 1… Which is not very easy for us humans…. So very ingenious people invented a syntax less abstract for us human beings but via which we could give instructions to the computer and obtain results…. this is the birth of Programming Languages ​​...&lt;/p&gt;

&lt;p&gt;There are dozens and even hundreds. Each was designed for a purpose, and above all with a particular philosophy. Depending on the area and depending on performance, you will find a variety of languages. So among the oldest such as FORTRAN, COBOL, Language C, C ++, Perl, Python, Ruby, Java, PHP, Javascript, Go, and the most recently such as Dart, Rust, Kotlin, Swift. the continuation here&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What about Ruby?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;As mentioned above, ruby ​​is a dynamic open-source programming language that emphasizes simplicity and productivity. Its elegant syntax makes it easier to read and write. it was created by the Japanese &lt;strong&gt;Yukihiro "Matz" Matsumoto&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The latter has brought together certain functionalities of his favorite languages ​​of the time (mainly Perl, Smalltalk, Eiffel, Ada, and Lisp) in order to imagine a new language which cleverly mixes imperative and functional programming. On several occasions, he said his goal was "to try to make Ruby as natural as possible, not necessarily simple. But we will come back to this later ...&lt;/p&gt;

&lt;p&gt;So Ruby on Rails is also a programming language? Uhh NO!&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href=""&gt;What is a Framework?&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;So Ruby on Rails is not a programming language but rather a Framework. According to the &lt;a href="https://www.journaldunet.fr/"&gt;journaldunet&lt;/a&gt; site, a framework (or software infrastructure in French) designates computer programming a set of tools and software components on the basis of software or an application. The objective of the framework is to simplify and standardize the work of developers. It functions like a framework or a boss, but it’s handling supposed to have already knowledge of the programming language.&lt;/p&gt;

&lt;p&gt;We can also define it as a set of tools and libraries intended to improve developer productivity. Indeed, the idea is to give you access to the recommended codes that you can reuse for the development of a site, a mobile application, a game, an extension, etc.&lt;/p&gt;

&lt;p&gt;In web development, there are many frameworks, some designed for large projects while others are useful for speeding up the development of small tasks. So there are several frameworks such as &lt;a href="http://sinatrarb.com/"&gt;Sinatra&lt;/a&gt;, &lt;a href="http://padrinorb.com/"&gt;Padrino&lt;/a&gt;, &lt;a href="http://hanamirb.org/"&gt;Hanami&lt;/a&gt;, &lt;a href="http://www.ruby-grape.org/"&gt;Grape&lt;/a&gt;, &lt;a href="https://cuba.is/"&gt;Cuba&lt;/a&gt;, &lt;a href="http://roda.jeremyevans.net/"&gt;Roda&lt;/a&gt;, &lt;a href="http://ramaze.net/"&gt;Ramaze&lt;/a&gt;, &lt;a href="http://alisnic.github.io/nyny/"&gt;NYNY&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course of all, the most popular and the one we will see in this series is the Ruby on Rails frame also called Rails or RoR. it was created in 2003 by David Heinemeier Hansson while he was working on a web project called Basecamp, a project management tool. it was officially released in July 2004 as an open-source project. Since then, many technology companies have adopted for the creation of their platform. &lt;a href="//airbnb.fr"&gt;Airbnb&lt;/a&gt;, &lt;a href="//basecamp.com"&gt;Basecamp&lt;/a&gt;, &lt;a href="https://github.com/"&gt;GitHub&lt;/a&gt;, &lt;a href="https://soundcloud.com/"&gt;SoundCloud&lt;/a&gt;, &lt;a href="https://fr.slideshare.net/"&gt;Slideshare&lt;/a&gt;, &lt;a href="http://shopify.com/"&gt;Shopify&lt;/a&gt;, &lt;a href="https://www.fiverr.com/"&gt;Fiverr&lt;/a&gt;… to name a few.&lt;/p&gt;

&lt;p&gt;In the next articles, we will introduce the Ruby language, it's functioning, syntax, etc, and then we will talk about the web with Ruby on rails. So, see you soon!&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://insights.daffodilsw.com/"&gt;https://insights.daffodilsw.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.ruby-lang.org/fr/about/"&gt;https://www.ruby-lang.org/fr/about/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.codeur.com/"&gt;https://www.codeur.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.journaldunet.fr/"&gt;https://www.journaldunet.fr/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.wikipedia.com/"&gt;https://www.wikipedia.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Let’s discover  Ruby on Rails </title>
      <dc:creator>Lionnel Patrick </dc:creator>
      <pubDate>Sat, 06 Jun 2020 22:42:02 +0000</pubDate>
      <link>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-4knl</link>
      <guid>https://dev.to/lionnelpat/let-s-discover-ruby-on-rails-4knl</guid>
      <description>&lt;p&gt;Hello hello everyone ... &lt;br&gt;
I hope you are doing well despite this situation of global health crisis ...&lt;/p&gt;

&lt;p&gt;I want through this series of articles to invite you to discover the &lt;strong&gt;Ruby on Rails&lt;/strong&gt; web framework. But first of all, I will introduce myself.&lt;/p&gt;

&lt;h1&gt;
  
  
  What about me..
&lt;/h1&gt;

&lt;p&gt;I am Patrick Lionnel. I live in Senegal (AFRICA) since 2013 where I did an engineering cycle in networks and telecoms. in 2016 after my diploma, I wanted to learn to code and this is how my professional adventure in the middle of the code started ... I thus started as a junior Android developer for 1 year. Then I started to do the web with PHP ... it was pretty cool.&lt;/p&gt;

&lt;p&gt;After 2 and a half years, I went to a start-up where I did a little excessive Javascript and I improved my front-end knowledge with learning the JavaScript Angular2 framework for almost a year. and in January 2020, I was recruited by another start-up to work on a really exciting project ... Alas, the project had to be done on a technology that I had never used ... you can guess Ruby on Rails ....&lt;/p&gt;

&lt;p&gt;So despite the hundreds of candidates who have applied, I knew how to stand out with what I already had as experience in the web and the challenge was to succeed in learning the language and to be productive in a stressful environment and a reduced time .... &lt;strong&gt;&lt;em&gt;Nothing better than real challenges&lt;/em&gt;&lt;/strong&gt; ... &lt;/p&gt;

&lt;h1&gt;
  
  
  The Challenge...
&lt;/h1&gt;

&lt;p&gt;This is how I dived into the marvelous universe of RoR (Ruby on Rails) and I would like through this series to present to you what I learned, why it’s good and especially why it is still a relevant choice today as well for start-ups who want to quickly prototype or have an app in a limited time, as for larger companies who want a robust platform.&lt;/p&gt;

&lt;p&gt;As far as I'm concerned, I started this adventure in a team of 03 people including myself with the aim of producing a v0 of a SaaS web platform, responsive in two months. During these two months, we designed the platform with &lt;a href="https://www.figma.com/"&gt;Figma&lt;/a&gt;, coded the application with Ruby on Rails, and deployed on &lt;a href="https://www.clever-cloud.com/"&gt;Clever-cloud&lt;/a&gt;. &lt;/p&gt;

&lt;h1&gt;
  
  
  How did we achieve this feat...
&lt;/h1&gt;

&lt;p&gt;How did we achieve this feat? With a dev who had never done Rails? How do I manage to learn so quickly and adapt to my new work environment? How did I fall in love with Ruby on Rails? What can this framework bring you as a Dev, CTO, or entrepreneur? more in my next article.&lt;/p&gt;

&lt;p&gt;By the way, if you too have already had to work under pressure, share your experience with us in a comment. Are you a Ruby developer? Tell me in a comment why and what do you like in this Framework ...&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
