Image for post
Image for post

I recently went through my code when our client asked for an update but when I saw the code I had written 2 years ago I was shocked. I decided to improve coding quality and read the book ‘Clean Code’ by Robert C. Martin, well known as Uncle Bob. These are some of the takeaways I got from the book.

1 Boy Scout Rule:

The Boy Scouts have a rule: “Always leave the campground cleaner than you found it”. This can apply to our code base also. Try to improve the quality of code a little bit over time. …


Image for post
Image for post

January got its name from the roman god Janus.Janus is the god of beginning and ending. Janus has two heads so that he can see both forward and backward without turning his head. January is the best suited name for first month of a year, as a new year is both a beginning and an ending. Also this is an opportunity to learn from past and hope for the future.

May this New Year be great opportunity to learn and grow also and ending to all the negativity in your life.

Happy new year


Image for post
Image for post

The human brain can be compared to a pressure cooker. It works to maximum potential when the pressure is optimal. A pressure cooker pushes the limit of the boiling point of water from 100 Celsius to a higher value. Likewise, pressure pushes the capability of the brain. An example that everyone can relate to is learning one day before the exam so that we can quickly grasp the topics for the entire year within a few hours.

The pressure cooker has mechanisms to reduce the pressure if it goes beyond a value. If it is blocked, then the cooker will explode. Likewise, we need to find a mechanism to release pressure like listening to music, reading, walking, etc.

God changes caterpillars into butterflies, sand into pearls and coal into diamonds using time and pressure. He’s working on you, too. — Rick Warren


Image for post
Image for post

Somewhere in the world, there was a man. His main hobby was chewing betel leaves. He always likes to chew it. Once, during a journey, he found a special kind of betel leaf. He purchased all of them from the seller. After he returns home, he decides to chew the special leaves he bought during the journey. When he inspected the betel leaves he found that one of the leaves turned yellow. So he decided to chew that yellow leaf today, tomorrow onward I can enjoy the better green leaf. That day he chewed the yellow leaf. The next day when he inspected the leaves this time also one leaf turned to yellow. That day he also decided to chew the yellow leaf. This continued for a few days. …


Image for post
Image for post
source: github blog

GitHub CLI brings GitHub to the terminal. This is great news for all who like to use the terminal. GitHub CLI offers the following benefits without having you to leave the command line

  • Easy creation of repositories.
  • Easy creation of Pull requests.
  • Easy approval of Pull requests.
  • Easy checking of issues raised.

Let’s discuss some of the main commands.

Installation for Mac and Windows: https://cli.github.com/manual/installation

Installation for linux: https://github.com/cli/cli/blob/trunk/docs/install_linux.md

gh auth login: gh command for login.This will prompt for mode of login. I choose using a personal access token. The token can be generated by login to https://github.com/settings/tokens. …


Image for post
Image for post

The Power Of Your Subconscious Mind was written by Dr Joseph Murphy in 1963. In this book, the author teaches us that the most valuable gift we have is our subconscious mind. We have two types of minds, they are:

Conscious mind:

The conscious mind is responsible for the activities like planning, decision making and voluntary actions. It is active only when we are awake.

Subconscious mind:

But the subconscious mind is active even when we are sleeping. It is responsible for almost all activities. It controls all the involuntary actions like breathing, blood circulation, digestion, etc.

The subconscious mind is reactive and magnifies what is inside it. It cannot distinguish between positive and negative thought. The subconscious mind is similar to a highly fertile field.The thoughts are the seed and the conscious mind is the watchman. Our conscious mind must block the negative thoughts and admit the positives. Intelligence for the subconscious mind is infinite. It can give a solution to any problem. The author talks about many real incidents in this book. One of the most striking one was related to the invention of benzene. Stradonitz was an organic chemist, he was struggling with a chemical structure for an organic compound. One day he had a dream about a snake biting its own tail, and suddenly he got an idea about a cyclic compound. …


Image for post
Image for post

The book Think like Da Vinci was written by Michael L Gelb. He was a great fan of two people. One was superman, and the other was Da Vinci. While he grew up, he realises that superman is not real. Then he started to collect more details about Da Vinci from various resources. He found seven things that made Da Vinci a genius

Da Vinci was an Italian polymath. He is considered as the most curious person who lived on earth. He is known for his paintings Monalisa, Last Supper, Vitruvian Man, etc. He observed and recorded various things like anatomy of the human body, how birds fly, sketch for helicopters, tanks etc. Here are the seven things that made him unique. …


Image for post
Image for post

Python 3.9rc1 was released on September 14, 2020. This release has some good new features, improvements, etc. In this blog, we are going to discuss 7 of the new features

1. Dictionary merge and update operator:

merge (|): This operator is used for merging two dictionaries and returning a new dictionary as an output. If any key is duplicated then the value of the RHS is updated in the final dictionary.

Sample code:

a = {“a”: “a1”, “b”: “b1”}b = {“c”: “c2”, “d”: “d2”}c = a | bprint(f’{a=}’)print(f’{b=}’)print(f’{c=}’)

Output:

a={‘a’: ‘a1’, ‘b’: ‘b1’}b={‘c’: ‘c2’, ‘d’: ‘d2’}c={‘a’: ‘a1’, ‘b’: ‘b1’, ‘c’: ‘c2’, ‘d’…

Neuralink is one of the most ambitious projects by Elon Musk. This is developed by Neuralink Corporation.Neuralink Corporation is an American neurotechnology company founded by Elon musk. The company’s headquarters are in San Francisco and was started in 2016.This was publicly announced in March 2017. With this project, Neuralink is trying to create an interface between human and machine (BMI — Brain Machine Interface). They have released v0.9 on August, 28 2020. It is a coin sized chip with very thin electrodes. This can be implanted into the brain using a surgical robot. …


Ignited Minds

Image for post
Image for post

Ignited minds was written by our best president ever, missile man of India Sri APJ Abdul Kalam. The main idea of this book is to motivate the younger generation.

In this book, APJ Abdul Kalam shares his ideas to young minds, who are capable of transforming India to a better nation. He teaches us to dream big. He says “Dream, dream, dream, dreams transform into thoughts and thoughts result in action”. Young minds are capable of thinking beyond limits, they are the core strength of India.

He emphasises the role of education in transforming a human to a better person. Also our education system must incorporate spirituality along with education.Spirituality is different from religion. Spirituality is the knowledge that one must criticise himself and broaden his mindset so that he can accept and respect others’ opinions and ideologies. Without spirituality, knowledge is a ship without a compass. Spirituality gives direction for the human being. The role of teachers and parents are really important. He says only teachers and parents are capable of transforming society. …

About

Afsalms

Coding, Reading,Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store