In this article, we will talk about best practices for programming in any language. Add readability to your code as much as possible. The function name should tell what this function does. The function should be visible in one screen. You should not scroll to view the whole function. Try to write pure functions instead
Author: Gaurav Yadav
Iterators in python and how to create them
Generally, iterators are used to iterate over a list of objects. We use iterators without knowing we are using it. Let’s understand Iterators in python and look at the below example a = [1,2,4,5,6,7,8] for i in a: print(i) Here we have used iterator behind the scenes of for-in to loop over a list. How to create
What are SNAT and DNAT
If you are working as a DevOps you must have heard the name NAT. In this article, we will talk about them and SNAT and DNAT. NAT (Network Address translator) is generally used when you want to hide one side of the network and show it as a single IP. NAT keep a connection table
How to save your monitoring metrics in Prometheus vs Graphite.
Hey everyone in this article of tooling in DevOps we will talk about how we can save our monitoring metrics and use them to visualize in fancy graphs. Let’s say we have metrics of how much time our servers are taking to serve any request. Now we want to save it in some time series
Tooling in DevOps: Installing Graphite for monitoring data.
In this article of series tooling in DevOps, we will talk about the database to keep the time series data which is very important to collect metrics. Graphite is one such database to keep time-series data. Why Graphite? Well, you want you monitoring data to be stored somewhere so you can explore it and draw
Pattern and anti patterns while creating new servers.
We are want to automate the server creation process as this saves a lot of time. In this article, we are going to talk about some patterns and anti-pattern that cause make your automation better or worse. So let’s start with this. Antipattern: Handcrafted Server Handcrafted servers will generally work well for companies who are
What are the snowflake servers?
Snowflake servers are the server whose actual configuration has drifted far more than what was actually required. These servers can because of big issues as there can be scenarios that you may want to replace the server and you are not aware of what all makes this server still serving and you properly launched new
Reconciler pattern and how terraform uses it.
Reconciler Pattern is used by many cloud-specific tools to perform thier functionalities. In this article we are going to talk about the reconciler pattern. And this is the pattern on which terraform is build. So lets start our article on what is reconciler pattern and how terraform uses reconciler pattern. So reconciler pattern is a
strace: See what system calls kernel is executing.
In linux environment when you run any piece of code, any application or software. The piece of code actually maps to the some set of instructions in kernel level. To see those instructions that are being executed for that piece of code we can use this tool called strace. We will see what system calls
Why is TCP a reliable Protocol for sending data.
TCP stands for transport control protocol and it works in Transport Layer of Internet Protocol Stack. In this article we will see in short why is TCP a reliable protocol for sending data. This article is meant for very basic understanding and doesn’t deal with packets and other algorithms. We will talk about them in