Saturday, February 22, 2020

Python in DevOps


DevOps Engineer works with developers and the IT staff to oversee the code releases. They are either developers who get interested in deployment and network operations or sysadmins who have a passion for scripting and coding and move into the development side where they can improve the planning of test and deployment.

There is a need for DevOps Engineers to connect various elements of coding along with libraries and software development kits and integrate various components of SQL data management or messaging tools for running software release with the operating system and the production infrastructure

DevOps is built for agility and handling change.   Python is one of the primary languages used by DevOps engineers. DevOps is a way of thinking; it's an approach, not a specific set of tools.  

Python's flexibility and accessibility make Python a great fit for this job, enabling the whole team to build web applications, data visualizations, and to improve their workflow with custom utilities.

Saturday, February 15, 2020

Full Stack DevOps


DevOps is a set of practices that automates the processes between software development and IT teams, in order that they can build, test, and release software faster and more reliably.

Full stack is when software engineer works on everything in the stack from database to front end code.

In the recent product development effort, our team was given an opportunity to do 'Full Stack DevOps', in which lean engineering team is responsible for full stack development, test automation & auto deployment in AWS. 

What a technology transformation in IT industry?  Going forward, my blog will be inked with these experiences.

Saturday, February 8, 2020

C# Discard


C# 7 allows us to discard the returned value which is not required. Underscore (_) character is used for discarding the parameter. The discard parameter (_) is also referred to as write-only. We cannot read the value from this parameter.

Let us explain C# discard concept with a simple example

public void IntegerValidator()
{
   WriteLine("Please enter a numeric value"); 
   if (int.TryParse(ReadLine(), out int x)) 
   { 
       WriteLine("Entered data is a number"); 
   }
}


The above code uses a local variable x just for passing it as a parameter without using this variable anywhere else. So, if the variable is not used, then it should not have a name and no value should be assigned to it.

Discard does the same thing, i.e. instead of using the variable name, we can just use the underscore character. Same code can be rewritted using Discard as below:

public void IntegerValidator()
{
   WriteLine("Please enter a numeric value"); 
   if (int.TryParse(ReadLine(), out int _)) 
   { 
       WriteLine("Entered data is a number"); 
   }
}


This discard option is not limited to a single variable. You can use discard with any number of variable.

Discard is a way to intentionally ignore local variables which are irrelevant for the purposes of the code being produced. It's like when you call a method that returns a value but, since you are interested only in the underlying operations it performs, you don't assign its output to a local variable defined in the caller method.