Posts

Enums in Go - Iota

Image
 Yes, you read it right. Like many other languages Go support the concept of enums through the IOTA function. IOTA According to Go documentation  Within a  constant declaration , the predeclared identifier  iota  represents successive untyped integer  constants . Its value is the index of the respective  ConstSpec  in that constant declaration, starting at zero. It can be used to construct a set of related constants.   Don't worry if you didn't get it. Basically, Iota is a keyword in Go that helps you to give random values to your constant. Let's say you want to define 7 constant Monday, Tuesday, Wednesday .... Sunday. Easy way to do this is const ( Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 ) In this situation, values 1,2,3,4,5,6 don't make much sense. The only thing these values should follow is that they have to be unique i.e Monday should not be equal to any other va

My Story Of Remote Onboarding: Like Clockwork

Image
  Just like Cloud in the software world is something that is remotely present, I will be sharing my remote onboarding experience today, thus the title- Cloud Onboarding. The Hunt The Covid outbreak led to a difficult time for the entire world and I was no different. There were challenges here and there. Yet, I was among those lucky folks who still have the honor of working for an organization. I am employed and contributing through WFH from the beginning of March. Let’s start from the  v ery beginning- I have had concrete career goals in mind but 2020 had other plans. Like everyone else, I was just watching the COVID situation unfurl. I was watching it affect all my goals and could feel the stress building up every single day. But all I could do was wait and watch! And then, I had a stroke of good luck! One fine day, I decided to get off my ass and start looking out for opportunities that were more in line with my career goals. I always wanted to work with a fast-paced organization, no

Dictionaries in Python in 5 mins

Image
What is a Dictionary or Dict? A dictionary is a data type used to store key-value pairs as we have in our English dictionary. It is useful when we want to save the data related to an entity at the same place. It is like saving an excel row in python in a column_header:column_value format E.g If we want to store the details(name, class, marks, address) of a student we can create different variables for this, or we can create only one variable of type dict and save the values in it. Syntax: s1={ ‘Name’:’Tarun’, ‘Class’: 12, ‘Address’:’house number 11 xyz street ‘,           ‘marks’:[90,89,67,84]       } As in the above code, we can see that a dictionary can save multiple data types. Variable “Name” is of type string, “Class” is of type int, “Address” is of type string, “Marks” is of type list.  A dict can also store a dictionary in it and is called Nested Dictionary. Syntax : <variable name>=dict({key:value,key:value}) <variable name>={key:value,key:value} A variable in

Product Based Vs Service Based Companies

Image
All the Job Seekers in the tech industry are always curious to know the difference between Product Based and Service-Based Companies. I have made some pointers which represent the difference in these do segments of industries What are service-based and product-based companies Work and Exposure Technologies Culture On Client Exposure Salaries Annual Increments Growth with respect to position Vs Growth in terms of money If you are not a good reader have a look at this video on the same topic: Service-Based Companies Service-based firms are the organizations that take projects from the external entities and work towards delivering the projects. These companies are generally large companies and are mass recruiters in multiple domains. They prefer people who have a wide array of tech stack in there profiles. Examples of such companies in India are; TCS NIIT Infosys Genpact Product Based Companies Product-based firms are the organizations that have their own line of products and work towards

Variable and Data Types in Python

Image
Variables in Python A variable is a named storage location where you can save some value when you execute your code. It takes some space in your RAM and its value persists till the time your code is executing. E.g # Without variables  # Add two numbers print(10+20) #With variables a=20 b=20 print(a+b) The benefit of saving your values to a variable is that the values and calculation (addition in our case addition) can be reused in some further parts of the code. Comments A comment is a line in your code that you don’t want to run but write them just for some reference in your code like explaining what your code is doing. E.g #this line do addition c=a+b In python, comments can be done using a ‘ # ’ symbol in the start of the line. It will inform the interpreter not to execute that line. Data Types in Python A data type in python refers to different formats of data that we can use in python. We are not always working with the same type of data. For example, to store the details of a stu

Hello World Program in Python

Image
What is Python? Python is a very powerful programming language and can be used to write any piece of software. But you can also use it to do data science. Model your sales data, to text mining on your latest Twitter feeds, or build the next movie recommendation engine. It's all possible with Python. Python is open source, and there's a bunch of programmers across the world that have written amazing extensions to Python, to help you achieve great things. Python can be used in the cases where the legacy analytical tools fail. Before we start to learn the python program following is a list of some commands which can we will be mostly using while working with python: For Linux / Mac pwd: prints present working directory (folder) of the terminal cd: It is used to change the directory (folder) from the terminal cd... : used to go one directory back cd<directory name >: used to go to child directory from the parent directory ls: to print all the folders in the current folder mk

Python 2 Vs Python 3

Image
There has been a huge debate on this topic, " Whether you should learn Python 2 or Python 3". If you are also in this dilemma this post is for you. The first thing you should understand is that if an upgrade is done in anything in the world it is mostly for improving that thing in terms of experience, speed, efficiency, etc. So, this upgrade of Python language is also done to improve the features and functionality of the language but than, Why is this debate all around about Python 2 and Python 3, why can't people just accept this new update rather than debating. To understand this you will have to think deeply and understand that Python has been there for nearly 29 years now(created in 1991), there are large number of legacy systems which are built on Python 2 and there are some feature of Python 3 which are not backward compatible with Python 2. For Example:  The scenario of a simple print statement. In Python 2 print was considered as a statement and in Python 3 it is