<?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: Conslatekoyo</title>
    <description>The latest articles on DEV Community by Conslatekoyo (@conslatekoyo).</description>
    <link>https://dev.to/conslatekoyo</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%2F896781%2F28096550-6ccd-46e0-92bb-a080d47b70eb.png</url>
      <title>DEV Community: Conslatekoyo</title>
      <link>https://dev.to/conslatekoyo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/conslatekoyo"/>
    <language>en</language>
    <item>
      <title>APIs</title>
      <dc:creator>Conslatekoyo</dc:creator>
      <pubDate>Sun, 18 Sep 2022 21:45:55 +0000</pubDate>
      <link>https://dev.to/conslatekoyo/apis-57ch</link>
      <guid>https://dev.to/conslatekoyo/apis-57ch</guid>
      <description>&lt;p&gt;&lt;strong&gt;APIs&lt;/strong&gt; which stand for Application Programming Interfaces is a communication intermediary between th eclient and server and this enables sending of requests and fetching of responses.&lt;br&gt;
An &lt;strong&gt;API documentation&lt;/strong&gt; cointains information on how developers should structure requests and responses.&lt;/p&gt;

&lt;p&gt;There are different types of APIs some of which include:&lt;br&gt;
&lt;strong&gt;SOAP API&lt;/strong&gt;- Simple Object Access Protocol . This enables the client and server exchange images via XML.This type of API is less flexible.&lt;br&gt;
&lt;strong&gt;RPC APIs&lt;/strong&gt;- Remote Procedure Calls. The client executes a funcyion or procedure in the server while the server send sthe output back to the client.&lt;br&gt;
&lt;strong&gt;REST API&lt;/strong&gt;- This API is frequently requested and used in the web today. Client sends data request to the server and the server  uses client data to perform intenal actions and sends the output back to the client.&lt;br&gt;
&lt;strong&gt;WebSocket API&lt;/strong&gt;- Uses JSON objects to pass data. Supports two way communication between client and server. Server can send callbacks to more than one client.&lt;br&gt;
&lt;strong&gt;Private APIs&lt;/strong&gt;- Used to connect data and servers within the company.&lt;br&gt;
&lt;strong&gt;Public APIs&lt;/strong&gt;- Open to use by everyone.&lt;br&gt;
&lt;strong&gt;Patner APIs&lt;/strong&gt;- Only accessible to developers to facilitate inter-business partnerships.&lt;br&gt;
&lt;strong&gt;Composite APIs&lt;/strong&gt;- Combine two or more APIs to deal with complex system requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  REST API.
&lt;/h2&gt;

&lt;p&gt;Stands for representational State Transfer.uses HTTP requests like GET,POST,PUT and delete to get data from the server.&lt;br&gt;
&lt;strong&gt;GET&lt;/strong&gt;- Used to retrieve data from the server.&lt;br&gt;
&lt;strong&gt;PUT&lt;/strong&gt;- Used to create a resource or overwrite it.&lt;br&gt;
&lt;strong&gt;POST&lt;/strong&gt;- Used to update resources in the server.&lt;br&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; - Used to delete resources from the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages of Rest Apis.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It is independent&lt;/strong&gt;. This means that the data storage is seperate from the server and the UI.&lt;br&gt;
&lt;strong&gt;It is lightweight&lt;/strong&gt;. It relies on the HTTP standard.This enables it to be fast.&lt;br&gt;
&lt;strong&gt;It is scalable and flexible&lt;/strong&gt;- Intergration can be done without alot of work and it is easily scalable because of the difference between the client and the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;API endpoint&lt;/strong&gt;- The final point of contacts in the API system. They are very important because of security reasons.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create an API
&lt;/h2&gt;

&lt;p&gt;Provide a blueprint for your API whisldt thinking about the different API use cases.&lt;br&gt;
Create prototypes using reusable codes. Once ready test and customise depending to the needed API specifications.&lt;br&gt;
Test to avoid bugs and defects.This also protects from malicious attacks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uses of API.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data Sharing&lt;/strong&gt;: When a program is needed to get data from a third party source, an API is used to retrieve the data.&lt;br&gt;
&lt;strong&gt;App Intergration&lt;/strong&gt; Used in the working of two or more applications.&lt;br&gt;
&lt;strong&gt;Embedded content&lt;/strong&gt;: To incorporate a piece of unhosted content in a company.&lt;br&gt;
&lt;strong&gt;Internal Systems&lt;/strong&gt;: APIs can not only be used externally within businesses and companies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Places to find APIs
&lt;/h2&gt;

&lt;p&gt;RapidAPI.com.&lt;br&gt;
ProgrammableWeb.&lt;br&gt;
Public APIs.&lt;br&gt;
API List.&lt;br&gt;
API For That.&lt;br&gt;
APIs. guru OpenAPI Collection.&lt;br&gt;
Google APIs Discovery Service.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Introduction to JavaScript.</title>
      <dc:creator>Conslatekoyo</dc:creator>
      <pubDate>Wed, 27 Jul 2022 12:01:00 +0000</pubDate>
      <link>https://dev.to/conslatekoyo/introduction-to-javascript-ic8</link>
      <guid>https://dev.to/conslatekoyo/introduction-to-javascript-ic8</guid>
      <description>&lt;p&gt;JavaScript is a programming language is an artificial language used to instruct computers. Programming allows you to accomplish tasks that would otherwise take forever.Javascript is a programming language that was introduced in 1995 as a way to add programs to the Netscape Navigation browser.Node is used for third-party libraries.&lt;br&gt;
All JavaScript codes are terminated by a semicolon&lt;/p&gt;

&lt;p&gt;console.log("Hello world");&lt;/p&gt;

&lt;h2&gt;
  
  
  Script tag
&lt;/h2&gt;

&lt;p&gt;JavaScript uses the script tag at the bottom of the body tag because JavaScript runs code from top to bottom and if on top the other elements won't run.&lt;br&gt;
!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;/p&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Document


console.log("Hello world");



&lt;br&gt;
&lt;br&gt;

&lt;h2&gt;
  
  
  Comments.
&lt;/h2&gt;

&lt;p&gt;Comments are used to communicate the intent of your code. These are lines of code that JavaScript intentionally ignores.&lt;/p&gt;

&lt;p&gt;//this is my first in-line comment&lt;br&gt;
let a = "Natete Verite"&lt;br&gt;
console.log(a)&lt;br&gt;
/&lt;em&gt;This is a multi-line comment, looks like we will do it differently&lt;/em&gt;/&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Types.
&lt;/h2&gt;

&lt;p&gt;JavaScript has primitives and non-primitive data types.&lt;br&gt;
JavaScript has different data types: undefined, null, boolean, string, symbol, bigint, number, and object.&lt;br&gt;
Reference data types include data types that are dynamic in nature and they don't have a fixed size.&lt;br&gt;
When naming variables, a variable name cannot be a keyword&lt;br&gt;
Computers can perform mathematical operations on a number and not a string.&lt;/p&gt;

&lt;h2&gt;
  
  
  Undefined
&lt;/h2&gt;

&lt;p&gt;Variables defined in JavaScript values are undefined by default unless initialized.&lt;br&gt;
     let student;&lt;br&gt;
 console.log(student);&lt;/p&gt;

&lt;h2&gt;
  
  
  String
&lt;/h2&gt;

&lt;p&gt;A sequence of characters often declared by single&lt;br&gt;&lt;br&gt;
        quotes, double quotes, or backticks&lt;/p&gt;

&lt;p&gt;let student='Jael';&lt;br&gt;
console.log(student);&lt;/p&gt;

&lt;p&gt;let relate="Joy";&lt;br&gt;
console.log(relate);&lt;/p&gt;

&lt;p&gt;let date=&lt;code&gt;Kirigo&lt;/code&gt;;&lt;br&gt;
console.log(date);&lt;/p&gt;

&lt;h2&gt;
  
  
  Boolean
&lt;/h2&gt;

&lt;p&gt;Boolean values are either true or false.&lt;/p&gt;

&lt;p&gt;let houseBought=true;&lt;br&gt;
let education=false;&lt;br&gt;
        Null- Defined variable that is missing a value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Variables
&lt;/h2&gt;

&lt;p&gt;Variables in JavaScript are named using the camel notation.&lt;br&gt;
Variables are case-sensitive.&lt;/p&gt;

&lt;p&gt;let firstname='Conslate';&lt;br&gt;
let lastname='Koyo';&lt;br&gt;
Let can be manipulated. The expected output is 1.&lt;br&gt;
let student=2;&lt;br&gt;
student=1&lt;br&gt;
console.log(student)&lt;br&gt;
To avoid manipulation of the output, one is expected to use const to declare variables.&lt;br&gt;
     const student=2;&lt;br&gt;
     student=1&lt;br&gt;
     console.log(student)&lt;/p&gt;

&lt;h2&gt;
  
  
  Objects
&lt;/h2&gt;

&lt;p&gt;Objects are seen as a collection of properties&lt;br&gt;
When dealing with multiple related variables, one ca use an object.&lt;br&gt;
let person={&lt;br&gt;
 name:"Shysh",&lt;br&gt;
 age:26,&lt;br&gt;
 country:"Kenya",&lt;br&gt;
 city: "Nairobi"&lt;br&gt;
}&lt;br&gt;
console.log(person)&lt;/p&gt;

&lt;p&gt;In order to access the attributes of an object, we use the dot notation method.&lt;br&gt;
person. name&lt;br&gt;
console.log(person. name)&lt;/p&gt;

&lt;p&gt;One can also use bracket notation to access elements in an object.&lt;br&gt;
person['name']='Steve'&lt;br&gt;
console.log(person. name)&lt;/p&gt;

&lt;h2&gt;
  
  
  Arrays
&lt;/h2&gt;

&lt;p&gt;Arrays are objects in JavaScript.&lt;br&gt;
The collection of different data types enclosed by square &lt;br&gt;
Brackets.&lt;/p&gt;

&lt;p&gt;letselectedCountries=["kenya","Uganda","Somalia","Rwanda","SouthSudan"];&lt;br&gt;
console.log(selectedCountries[2])&lt;/p&gt;

&lt;p&gt;Adding elements in an array.&lt;br&gt;
let selectedCountries=["Kenya","Uganda","Somalia","Rwanda","SouthSudan"];&lt;br&gt;
console.log(selectedCountries[2])&lt;br&gt;
selectedCountries[5]="Zambia"&lt;br&gt;
console.log(selectedCountries)&lt;/p&gt;

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