<?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: Eswar</title>
    <description>The latest articles on DEV Community by Eswar (@ioeshu).</description>
    <link>https://dev.to/ioeshu</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%2F653372%2F842f2e6d-0cda-45e7-b2ad-f04a9beb1ff8.png</url>
      <title>DEV Community: Eswar</title>
      <link>https://dev.to/ioeshu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ioeshu"/>
    <language>en</language>
    <item>
      <title>Slices in Go</title>
      <dc:creator>Eswar</dc:creator>
      <pubDate>Sat, 25 Jun 2022 11:32:50 +0000</pubDate>
      <link>https://dev.to/ioeshu/slices-in-go-4i6i</link>
      <guid>https://dev.to/ioeshu/slices-in-go-4i6i</guid>
      <description>&lt;p&gt;A slice is a data type in Go that represents a sequence of elements of the same type. But the more significant difference with arrays is that the size of a slice is dynamic, not fixed.&lt;/p&gt;

&lt;p&gt;A slice has only three components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pointer to the first reachable element of the underlying array. This element isn't necessarily the array's first element, array[0].&lt;/li&gt;
&lt;li&gt;Length of the slice. The number of elements in the slice.
&lt;/li&gt;
&lt;li&gt;Capacity of the slice. The number of elements between the start of the slice and the end of the underlying array.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h2&gt;
  
  
  Declare and initialize a slice
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package main

import "fmt"

func main() {
    months := []string{"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
    fmt.Println(months)
    fmt.Println("Length:", len(months))
    fmt.Println("Capacity:", cap(months))
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
[January February March April May June July August September October November December]
Length: 12
Capacity: 12
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Slice items&lt;/p&gt;

&lt;p&gt;Go has support for the slice operator s[i:p], where:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;s&lt;/strong&gt; represents the array.&lt;br&gt;
&lt;strong&gt;i&lt;/strong&gt; represents the pointer to the first element of the underlying array (or another slice) to add to the new slice. The variable i corresponds to the element at index location i in the array, array[i]. Remember this element isn't necessarily the underlying array's first element, array[0].&lt;br&gt;
&lt;strong&gt;p&lt;/strong&gt; represents the number of elements in the underlying array to use when creating the new slice. The variable p corresponds to the last element in the underlying array that can be used in the new slice. The element at position p in the underlying array is found at the location &lt;strong&gt;array[i+1]&lt;/strong&gt;. Notice that this element isn't necessarily the underlying array's last element, &lt;strong&gt;array[len(array)-1].&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7Ip8CdV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgcnno8cebea47g1jjfj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Ip8CdV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgcnno8cebea47g1jjfj.png" alt="Go" width="774" height="516"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package main

import "fmt"

func main() {
    months := []string{"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
    quarter1 := months[0:3]
    quarter2 := months[3:6]
    quarter3 := months[6:9]
    quarter4 := months[9:12]
    fmt.Println(quarter1, len(quarter1), cap(quarter1))
    fmt.Println(quarter2, len(quarter2), cap(quarter2))
    fmt.Println(quarter3, len(quarter3), cap(quarter3))
    fmt.Println(quarter4, len(quarter4), cap(quarter4))
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[January February March] 3 12
[April May June] 3 9
[July August September] 3 6
[October November December] 3 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>slices</category>
      <category>go</category>
      <category>programming</category>
    </item>
    <item>
      <title>Implement Error Handling in Golang</title>
      <dc:creator>Eswar</dc:creator>
      <pubDate>Wed, 22 Jun 2022 05:06:15 +0000</pubDate>
      <link>https://dev.to/ioeshu/implement-error-handling-in-golang-5cf</link>
      <guid>https://dev.to/ioeshu/implement-error-handling-in-golang-5cf</guid>
      <description>&lt;p&gt;When you write a program and it won't behave as the way you expected it may cased by some external factors and that you can't control like other processes blocking a file, or an attempt to access a memory address that not available anymore.&lt;/p&gt;

&lt;p&gt;It's better if you anticipate those failures so you can troubleshoot problems when they happen.&lt;/p&gt;

&lt;p&gt;Go's approach for exception handling is different, and so is its process for error handling. In Go, a function that could fail should always return an additional value so that you can anticipate and manage a failure successfully. For example, you could run a default behavior and log as much information as possible to reproduce the problem and fix it.&lt;/p&gt;

&lt;p&gt;Before starting this make sure you have Go environment ready, you should have installed and configured Go locally and installed Visual Studio Code with the Go extension.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handle errors in Go
&lt;/h2&gt;

&lt;p&gt;You need to manage your program failures your users don't want to see a long and confusing stack of error record, it's better if they see meaningful information about what went wrong. &lt;/p&gt;

&lt;p&gt;Go has built-in functions like &lt;strong&gt;panic&lt;/strong&gt; and &lt;strong&gt;recover&lt;/strong&gt; to manage exceptions, or unexpected behavior, in your programs. But errors are known failures that your programs should be built to handle.&lt;/p&gt;

&lt;p&gt;Go's approach to error handling is simply a control-flow mechanism where only an &lt;strong&gt;if&lt;/strong&gt; and a *&lt;em&gt;return *&lt;/em&gt; statement are needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;employee, err := getInformation(1000)
if err != nil {
    // Something is wrong. Do something.
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when you're calling a function to get information from an employee object, you might want to know if the employee exists. Go's opinionated way for handling such an expected error.&lt;/p&gt;

&lt;p&gt;Notice how the function returns the employee struct and also an error as a second value. The error could be nil. If the error is nil, that means success. If it's not nil, that means failure. A non-nil error comes with an error message that you can either print or, preferably, log. This is how you handle errors in Go.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>go</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Everything You Need To Know About Microsoft Azure</title>
      <dc:creator>Eswar</dc:creator>
      <pubDate>Thu, 25 Nov 2021 15:18:41 +0000</pubDate>
      <link>https://dev.to/ioeshu/everything-you-need-to-know-about-microsoft-azure-kcc</link>
      <guid>https://dev.to/ioeshu/everything-you-need-to-know-about-microsoft-azure-kcc</guid>
      <description>&lt;p&gt;Microsoft Azure is a cloud computing service operated by Microsoft, often referred to as Azure. it offers more than 200 cloud products and services designed to solve today’s challenges.&lt;/p&gt;

&lt;p&gt;Azure is not only the one cloud player out in the market there are Amazon, Google, IBM also offer similar services and cloud solutions to the industries. what’s so special in Azure? Azure entered into cloud space in 2010 a 4 years later to amazon’s but azure has made significant advances over the years, it now offers a set of features and capabilities far surpassing its competitors and secured 2nd place in the cloud market by leaving 1st place to Amazon.&lt;br&gt;
when we talk about basic functionalities AWS, GCP, IBM Cloud, and Azure are pretty similar, They share all of the common elements of public cloud services: self-service, security, instant provisioning, auto-scaling, compliance, and identity management.&lt;/p&gt;

&lt;p&gt;Enterprises across the globe are realizing great success with business solutions powered by Cloud. Startups and small businesses are also moving to the cloud and adopting the cloud.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ftechnuws.com%2Fwp-content%2Fuploads%2F2021%2F11%2F18819-1024x1024.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ftechnuws.com%2Fwp-content%2Fuploads%2F2021%2F11%2F18819-1024x1024.jpeg" alt="In this article we are more focusing on Azure, what is Azure cloud, what are the services and products offered by azure, where to use them, and all, this is going to be a complete guide on Azure, if like it bookmarks this page and shares with your friends."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Microsoft Azure
&lt;/h2&gt;

&lt;p&gt;Azure Cloud is used for building, testing, deploying, and managing applications and services through a global network of Microsoft-managed datacenters. It provides software as a service (SaaS), platform as a service (PaaS), and infrastructure as a service (IaaS) and supports many different programming languages, tools and frameworks, including both Microsoft-specific and third-party software and systems.&lt;/p&gt;

&lt;p&gt;SaaS, PaaS, and IaaS Service Models&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.cloudflare.com%2Fimg%2Flearning%2Fserverless%2Fglossary%2Fplatform-as-a-service-paas%2Fsaas-paas-iaas-diagram.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.cloudflare.com%2Fimg%2Flearning%2Fserverless%2Fglossary%2Fplatform-as-a-service-paas%2Fsaas-paas-iaas-diagram.svg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;what do I mean by software as a service (SaaS), platform as a service (PaaS), and infrastructure as a service (IaaS) you may hear these names before but what do they actually mean?&lt;/p&gt;

&lt;h3&gt;
  
  
  There are 3 main cloud service models
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;SaaS&lt;/li&gt;
&lt;li&gt;PaaS&lt;/li&gt;
&lt;li&gt;Iaas&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can read more about these in detail  &lt;a href="https://technuws.com/everything-you-need-to-know-about-microsoft-azure/" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What we can do with Microsoft Azure
&lt;/h3&gt;

&lt;p&gt;Microsoft Azure consists of numerous service offerings it’s up to the user and their application-specific to utilize the services of azure, mainly running virtual machines or containers in the cloud is one of the most popular uses for Microsoft Azure. These compute resources can host infrastructure components, such as domain name system (DNS) servers; Windows Server services — such as Internet Information Services (IIS); or third-party applications. Microsoft also supports the use of third-party operating systems, such as Linux.&lt;/p&gt;

&lt;p&gt;Azure can also be used for hosting databases both structured and unstructured databases on to that azure used for backup and disaster recovery. Many organizations use Azure storage as an archive in order to meet their long-term Data retention requirements.&lt;/p&gt;

&lt;p&gt;Azure cloud services&lt;br&gt;
Compute – These services enable a user to deploy and manage VMs and remote application access.&lt;/p&gt;

&lt;p&gt;Mobile/ web services – These services help developers build cloud applications for mobile devices and web, easy to build API services, and deployment of their applications&lt;/p&gt;

&lt;p&gt;Media and content delivery network (CDN) – LIke the Cloudflare, the azure and all the cloud provides provide CDN service These CDN services include on-demand streaming, digital rights protection, encoding and media playback, and indexing.&lt;/p&gt;

&lt;p&gt;Internet of things – These services help users capture, monitor, and analyze IoT data from sensors and other devices. Services include notifications, analytics, monitoring, and support for coding and execution.&lt;/p&gt;

&lt;p&gt;DevOps – Azure devops services provide special tools that fast up the dev process&lt;/p&gt;

&lt;p&gt;Artificial intelligence (AI) and machine learning – These services help to train your ai models with user specific computational power so you can focus on your ai model rest azure takes&lt;/p&gt;

&lt;p&gt;There are few more azure services like Mixed reality, blockchain and all. &lt;/p&gt;

</description>
      <category>azure</category>
      <category>cloud</category>
      <category>cloudskills</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
