What are generWhat are generators in pythonators in python

Generators in Python


Generators are just like normal functions, what makes functions generators in yield statement instead of the return statement. Also since you starting to read about generators, you should have a look at Iterators in python and how it works.Lets read about generators in python. What is yield? Yield is a keyword that is used to

Best practices for programming

Best practices for programming


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

iterators in python

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

snat

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

Pattern and anti patterns while creating new servers.

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 snowflake servers.

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

What is reconciler pattern and how terraform uses it.

What is reconciler pattern and how terraform uses it.


Hello everyone in this article we are going to talk about a design pattern which is very useful when you are working with cloud infrastructures. 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

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