<?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: Waithaka </title>
    <description>The latest articles on DEV Community by Waithaka  (@johnwaithaka22).</description>
    <link>https://dev.to/johnwaithaka22</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%2F873284%2F0566d42d-c86d-4e82-a4ef-b6986b09c2d6.jpg</url>
      <title>DEV Community: Waithaka </title>
      <link>https://dev.to/johnwaithaka22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnwaithaka22"/>
    <language>en</language>
    <item>
      <title>Postman API Virtual Event: An appetizing expert guide on getting started</title>
      <dc:creator>Waithaka </dc:creator>
      <pubDate>Fri, 28 Apr 2023 14:17:04 +0000</pubDate>
      <link>https://dev.to/johnwaithaka22/postman-api-virtual-event-an-appetizing-expert-guide-on-getting-started-9lm</link>
      <guid>https://dev.to/johnwaithaka22/postman-api-virtual-event-an-appetizing-expert-guide-on-getting-started-9lm</guid>
      <description>&lt;h1&gt;
  
  
  &lt;em&gt;&lt;strong&gt;&lt;u&gt;Introduction&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;
&lt;/h1&gt;

&lt;p&gt;What's good my fellow tech people?! It's been a minute, but I'm back to deliver you an intriguing article about a past virtual event I attended. This event as you can see in the title was about Postman API's. It was held virtually by Technical University of Kenya's GDSC team.&lt;/p&gt;

&lt;p&gt;Hosted by Technical University of Kenya's own GDSC Lead and Postman Student Expert Kurtis Bengo, this event took place on the Thursday of April 20th, 2023, on Zoom. In this virtual meeting Kurtis briefed us on what an API is, uses of API's, What Postman is and how to interact with an API in Postman.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;em&gt;&lt;strong&gt;&lt;u&gt;What is an API?&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vPK3tSZu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d56fvn1bs3bcpgfmqzvw.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vPK3tSZu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d56fvn1bs3bcpgfmqzvw.gif" alt="Image description" width="220" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Application Programming Interface in full or API serves as a middleware between multiple disparate computers or services and allows them to communicate with each other. &lt;/p&gt;

&lt;p&gt;Over time, software has grown increasingly intricate and collaborative. No longer are developers required to build every service from scratch. API's provide developers the ability to retrieve data from services like Bing or Spotify without any prior knowledge of how the codebase has been implemented. &lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;em&gt;&lt;strong&gt;&lt;u&gt;Uses of API's&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MU5qYlXO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hebeif7oo1kjsp46hr4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MU5qYlXO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hebeif7oo1kjsp46hr4k.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This screenshot above is from Kurtis's presentation during the meeting. Here he uses the example of Instagram to explain how an API assists us to share our media in the application. &lt;/p&gt;

&lt;p&gt;In order for our followers to see our post on the app a middleware has to fetch that photo from your phone to send it as a request to the server. Once approved by the server it will be shared to your followers. &lt;/p&gt;

&lt;p&gt;Meaning once you make the request to upload the photo, it will go to the Instagram API, where it will take it and share the photo to the server. After receiving the photo, encoding and decoding it and interpreting it, the photo will be shared to your account page and its followers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KIfZ90bg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fz459s4l56t8q3aosgj1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KIfZ90bg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fz459s4l56t8q3aosgj1.gif" alt="Image description" width="220" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;&lt;u&gt;&lt;em&gt;What is Postman&lt;/em&gt;?&lt;/u&gt;&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TihUhPbx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73m8ytqqwbarpodkxxhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TihUhPbx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73m8ytqqwbarpodkxxhf.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Postman is a collaborative API development platform that simplifies creating, using, and testing APIs with a UI.&lt;br&gt;
Big names companies such as PayPal, Uber, Walt Disney, Comcast use Postman. &lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;em&gt;&lt;u&gt;&lt;strong&gt;How to Interact with an API in Postman?&lt;/strong&gt;&lt;/u&gt;&lt;/em&gt;
&lt;/h1&gt;

&lt;p&gt;Kurtis discussed two major topics when explaining the practical way of interact with an API in Postman. The first, making a request. This procedure consists of three critical ingredients: method, address/endpoint and path. &lt;/p&gt;

&lt;p&gt;An API method is a mechanism for a client to use an API, which is a collection of guidelines that describe how systems communicate with one another, to access a service at the backend.&lt;/p&gt;

&lt;p&gt;Paths are the endpoints (resources) that your API exposes, like /users or /reports/summary, and operations are the HTTP methods used to work with these pathways, such as GET, POST, or DELETE. &lt;/p&gt;

&lt;p&gt;When two systems are interacting, an API endpoint serves as the channel's opening. It describes the points at which an API and a server interact.&lt;/p&gt;

&lt;p&gt;The other topic was methods and endpoints, Kurtis provides us an illustration of how to make a request in Postman in the picture below. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3UCqPTDG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0x21jpt40z1wgty74rq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3UCqPTDG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0x21jpt40z1wgty74rq.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=hfmbZ_rMsV4"&gt;https://www.youtube.com/watch?v=hfmbZ_rMsV4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check out this YouTube video below if you'd like to see how a full interaction with an API is above. Feel free to drop questions in the comment section if you have any. &lt;/p&gt;

&lt;p&gt;That wraps up my summary of Postman API's session. Hope you enjoyed, see you next time!&lt;/p&gt;

</description>
      <category>api</category>
      <category>postman</category>
      <category>webdev</category>
      <category>tech</category>
    </item>
    <item>
      <title>No Ethernet Port Laptops: Wireless Connection is the New Wave</title>
      <dc:creator>Waithaka </dc:creator>
      <pubDate>Tue, 07 Feb 2023 11:43:21 +0000</pubDate>
      <link>https://dev.to/johnwaithaka22/no-ethernet-port-laptops-wireless-connection-is-the-new-wave-1nb6</link>
      <guid>https://dev.to/johnwaithaka22/no-ethernet-port-laptops-wireless-connection-is-the-new-wave-1nb6</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;Definition and Importance of the Ethernet Port?&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;"The RJ-45 port" or " The Ethernet Port" the renowned term applied by most computer users today is an access port used to connect your laptop to the internet from another network device like a router by plugging in an Ethernet Cable. &lt;/p&gt;

&lt;p&gt;Ethernet ports are usually located either on the left or right-hand side of your laptop. This component of a laptop provides instant connection from the cable to the port without the need of a password. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;The current state of internet in the world&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;With the world now moving in the direction of Wi-Fi thanks to improved wireless connections and more compatible devices the need for ethernet ports is reducing day by day. However, places like hospitals, government parastatals, school offices and other big companies use both Ethernet and Wi-Fi just in case one of two becomes disconnected for a period of time.&lt;/p&gt;

&lt;p&gt;In an office or library type setting Wi-Fi can introduce security issues and even connection issues for a large number of users. Wi-Fi networks can be more easily hacked into than Ethernet cables. When many users are connected to one Wi-Fi network at the same time it can lead to high network latency on laptops and other mobile devices during simple web browsing on Google Chrome, watching videos on YouTube or downloading files from the internet. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;Solution to the Problem&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;The newest version of laptops these days now require their users to purchase Ethernet Extenders to connect to Ethernet. This Ethernet Extender has a USB cable on one end for connecting to your laptop and an Ethernet Port for Ethernet Cable. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;Conclusion&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;Although the removal of Ethernet Ports is big loss, it's not end of the world. Throughout time we have adopted new ways to connect laptops to the internet such as Wi-Fi Tethering, Personal Hotspot, USB Tethering and more. &lt;/p&gt;

&lt;p&gt;Thank you for taking the time to read this article, I hope you have enjoyed it. See you next time. &lt;/p&gt;

</description>
      <category>ethernetport</category>
      <category>laptops</category>
      <category>internet</category>
      <category>wifi</category>
    </item>
    <item>
      <title>Chat GPT: The newest and coolest Q&amp;A Tool</title>
      <dc:creator>Waithaka </dc:creator>
      <pubDate>Sat, 17 Dec 2022 09:24:14 +0000</pubDate>
      <link>https://dev.to/johnwaithaka22/chat-gpt-the-newest-and-coolest-qa-tool-4dab</link>
      <guid>https://dev.to/johnwaithaka22/chat-gpt-the-newest-and-coolest-qa-tool-4dab</guid>
      <description>&lt;p&gt;Labelled as the next big thing in technology , the most new cool prototype out in the market or even a potential competitor to Google , it goes by the name Chat GPT. Chat GPT was launched and gifted to us in November 2022 by Open AI, an AI research and deployment company in San Francisco, California (USA). &lt;/p&gt;

&lt;p&gt;You can converse with a chatbot in a manner akin to that of a human being using ChatGPT, a natural language processing tool powered by AI. The language model may assist you with things like creating emails, essays, and code as well as provide answers to your concerns. Because ChatGPT is still doing research and gathering user input, usage is presently available to everyone without charge.&lt;/p&gt;

&lt;p&gt;By visiting chat.openai.com and registering an OpenAI account, you may easily use ChatGPT. You can start chatting with ChatGPT as soon as you log in. By posing a question, you can easily start a dialogue. You are able to use ChatGPT and ask as many questions as you'd like because it is still in the research stage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wQ2jFic---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uj4je0eumfjojapg6xlr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wQ2jFic---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uj4je0eumfjojapg6xlr.png" alt="Image description" width="880" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j3LfK7Ld--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m72tjnemj9t2rmkc3ke.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j3LfK7Ld--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m72tjnemj9t2rmkc3ke.png" alt="Image description" width="880" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the two screenshots above I did two small sample searches on how to grow hair and defects severity index a software testing metric in software quality engineering. The model displays its responses in an organized manner also elaborating the purpose of the search you have made.&lt;/p&gt;

&lt;p&gt;The incredibly sophisticated chatbot ChatGPT has the ability to improve people's lives and help with tiresome daily tasks like sending emails or searching the internet for solutions. Before it is extensively used, however, a few technical elements must be worked out in order to avoid unfavorable effects like the propagation of false information. The majority of the time, training and fine-tuning are required for AI and ML models to perform at their best.&lt;/p&gt;

&lt;p&gt;Make sure to check out and try ChatGPT if you haven’t gotten the chance, don’t miss out on the experience. Thanks for taking the time to read this article, see you next time!&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>ai</category>
      <category>newtechnology</category>
      <category>chatbots</category>
    </item>
    <item>
      <title>The 3 Types of Loops in Java</title>
      <dc:creator>Waithaka </dc:creator>
      <pubDate>Fri, 02 Sep 2022 11:20:55 +0000</pubDate>
      <link>https://dev.to/johnwaithaka22/the-3-types-of-loops-in-java-49gk</link>
      <guid>https://dev.to/johnwaithaka22/the-3-types-of-loops-in-java-49gk</guid>
      <description>&lt;h2&gt;
  
  
  Meaning of Looping and Its Importance
&lt;/h2&gt;

&lt;p&gt;Looping is the process of executing a block of code multiple times without frequently writing it.&lt;/p&gt;

&lt;p&gt;Looping is important because of the following reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It saves a developer a lot of time.&lt;/li&gt;
&lt;li&gt;Fast execution of a Java Program. &lt;/li&gt;
&lt;li&gt;Tasks are accomplished in a more accurate manner.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Types of Loops
&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;For Loop&lt;/b&gt;:&lt;br&gt;
(i) Definition - This is a repetition control structure that enables developers the ability to write a loop in an efficient manner to be executed a specific number of times.&lt;/p&gt;

&lt;p&gt;(ii) Java Syntax - &lt;br&gt;
Step 1(Initialization), in this stage a variable is declared then a value is assigned to that variable. &lt;/p&gt;

&lt;p&gt;Step 2(Condition), this part checks to see if a program is true or false. &lt;/p&gt;

&lt;p&gt;Step 3(Increment), this is the increasing of a value in a for loop. &lt;/p&gt;

&lt;p&gt;Step 4(Statement), its job is to perform the task we give it in the for loop.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nl"&gt;Syntax:&lt;/span&gt; 
&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initialization&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="n"&gt;condition&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="n"&gt;increment&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
    &lt;span class="c1"&gt;//statements&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

 &lt;span class="nc"&gt;Program&lt;/span&gt; &lt;span class="nl"&gt;Example:&lt;/span&gt;
 &lt;span class="c1"&gt;// A program to display numbers between&lt;/span&gt;
 &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ForLoop&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
   &lt;span class="c1"&gt;//for Loop&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;//statements&lt;/span&gt;
   &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"value of i:"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="nl"&gt;Result:&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;41&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;43&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;44&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;45&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;46&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;47&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;48&lt;/span&gt;
&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;i:&lt;/span&gt; &lt;span class="mi"&gt;49&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;While Loop&lt;/strong&gt;&lt;br&gt;
(i) Definition - This loop iterates a block of code an unknown number of times until the condition is met.&lt;/p&gt;

&lt;p&gt;(ii) Java Syntax - &lt;br&gt;
Step 1(Initialize the Expression), in this first step a variable will be declared then assigned a value. &lt;/p&gt;

&lt;p&gt;Step 2(Testing of the Expression), this step will verify the expression. If true we will execute the body and go to the update expression, if false we will exit the loop.&lt;/p&gt;

&lt;p&gt;Step 3(Statements) performs the task we give it in the while loop.&lt;/p&gt;

&lt;p&gt;Step 4(Update the Expression), this step increments or decrements the loop variable by some value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nl"&gt;Syntax:&lt;/span&gt; 
&lt;span class="c1"&gt;// initialize expression&lt;/span&gt;
 &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;test_expression&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;//statements&lt;/span&gt;
  &lt;span class="n"&gt;update_expression&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;Program&lt;/span&gt; &lt;span class="nl"&gt;Example:&lt;/span&gt;
&lt;span class="c1"&gt;//A program displaying numbers starting from 30 that are less than 40&lt;/span&gt;
 &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
   &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;[]){&lt;/span&gt;
    &lt;span class="c1"&gt;//initialization of expression&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
    &lt;span class="c1"&gt;//statement&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"The following numbers are: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="c1"&gt;//update expression&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;++;&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="nl"&gt;Result:&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;33&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;33&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;34&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;37&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;38&lt;/span&gt;
&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;following&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="nl"&gt;are:&lt;/span&gt; &lt;span class="mi"&gt;39&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Do-While Loop&lt;/strong&gt;:&lt;br&gt;
(i) Definition - This type of loop executes a block of code at least once. It either does or does not repeat itself depending on a Boolean condition at the end of the block.&lt;/p&gt;

&lt;p&gt;(ii) Java Syntax - &lt;br&gt;
Step 1(Initialize the Expression), in this first step a variable will be declared then assigned a value.&lt;/p&gt;

&lt;p&gt;Step 2(Update Expression), in this step a statement will be printed, and the expression will either increment or decrement the loop variable by some value. Both operations will be performed in the do loop.&lt;/p&gt;

&lt;p&gt;Step 3(Test Expression), this step will verify the expression. If true, we will execute the body and go to the update expression, if false we will exit the loop. This operation will take place in the while loop.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nl"&gt;Syntax:&lt;/span&gt; 
&lt;span class="c1"&gt;//initialize expression&lt;/span&gt;
 &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;//statement&lt;/span&gt;
   &lt;span class="c1"&gt;//update expression&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;//condition check&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;test&lt;/span&gt; &lt;span class="n"&gt;expression&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="nc"&gt;Program&lt;/span&gt; &lt;span class="nl"&gt;Example:&lt;/span&gt; 
&lt;span class="c1"&gt;//A program to display numbers from 60 to 70&lt;/span&gt;
 &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DoWhileExample&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
 &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;[])&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
 &lt;span class="c1"&gt;//initialization of variable&lt;/span&gt;
 &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
 &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;//statements&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"value of n"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;++;&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;70&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="nl"&gt;Result:&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;61&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;62&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;63&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;65&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;66&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;67&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;68&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;69&lt;/span&gt;
 &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nl"&gt;n:&lt;/span&gt; &lt;span class="mi"&gt;70&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Closing Remarks
&lt;/h2&gt;

&lt;p&gt;If you have any questions or comments regarding Loops in Java feel free to reach out to me on LinkedIn at John Ndungu Waithaka , @ThakkaJay on Twitter or in the comments section below. Thank you for taking the time to read this article, see you in the next one. &lt;/p&gt;

</description>
      <category>loops</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>VS Code Experience</title>
      <dc:creator>Waithaka </dc:creator>
      <pubDate>Sat, 16 Jul 2022 13:46:03 +0000</pubDate>
      <link>https://dev.to/johnwaithaka22/vs-code-experience-4kfm</link>
      <guid>https://dev.to/johnwaithaka22/vs-code-experience-4kfm</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;What is VS Code?&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;VS Code or Visual Studio Code in full is an open-source code editor that can be used to view, edit, run and debug source code for websites or applications. &lt;/p&gt;

&lt;p&gt;Created in April of 2015 by Microsoft, this platform enables a web developer or programmer(s) to code in various programming languages such as Java, JavaScript, C++, Python and more. &lt;/p&gt;

&lt;p&gt;HTML, a markup language as well is available for use. CSS is not available on VS code, but you can write it using VS code.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;How I found out about VS Code&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;My first encounter with Visual Studio Code occurred in 2019 when I was a 2nd year diploma student at KCA University. &lt;/p&gt;

&lt;p&gt;Initially I took a break from it up until last year September, where I found it to be the most useful code editor when making a website from scratch for a class assignment for a unit called Web Programming in IT at Kabarak University. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;Features&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;During the process of creating the website I took notice of the following amazing features that VS Code provides: &lt;/p&gt;

&lt;p&gt;Live Preview - This feature allows a coder to preview the webpage for an html or JavaScript file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WomH-PGt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wox1ay772s3a2yay7gys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WomH-PGt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wox1ay772s3a2yay7gys.png" alt="This is a screenshot of a page of code on the left and its output on the right." width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Extensions - Is another feature in visual studio code that allows a coder to customize your project and improve the project’s productivity. &lt;br&gt;
For example, extensions can program in java can be run and debugged through the use of extensions. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Xl_g9X6W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3th6dk74gin2ns1yujz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Xl_g9X6W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3th6dk74gin2ns1yujz2.png" alt="A screenshot of a program in Java" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Intelli-Sense - Detects if a part of a code is incorrect or incomplete.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SRpHW9ae--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xle4nd78wdnc8xurklyz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SRpHW9ae--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xle4nd78wdnc8xurklyz.png" alt="A screenshot of a page of codes in HTMl" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;Advantages of Using VS Code&lt;/em&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Debugging - VS Code inbuilt debugger assists a writer to accelerate his or her coding edit, compile and debug loop.&lt;/li&gt;
&lt;li&gt;Customization - A programmer can customize a code any way he or she sees fit in a program.&lt;/li&gt;
&lt;li&gt;Code Management Features - Features such as Peek Definition and Go Definition can be used to format javascript code as well as code of other languages.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;em&gt;Conclusion&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;So far Visual Studio Code is the simplest and most convenient code editor I have ever used. &lt;br&gt;
I recommend it to beginners learning to code for the first time as well as veteran programmers in the tech realm.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>programming</category>
      <category>tech</category>
    </item>
  </channel>
</rss>
