Clean Code | Introduction | Quick Notes

51bPR2V9fBL._SX258_BO1,204,203,200_.jpg

A handbook of agile software craftsmanship by Robert C.Martin.

Writing clean code is what you must do in order to call yourself a professional, there is no excuse to do anything less than your best.

In this series of quick notes, I am going to share the quick notes from this book with you, So welcome aboard, let’s start with the introduction.

So think 2 mins, what is the valid measurement of code quality for you? The answer according to the book is funny but its WTFs/minute. haha 🙂 Now you can easily measure the quality of your code.

Next question will be, How to handle bad code? the answer is Craftsmanship. There are two parts of learning Craftsmanship: Knowledge and Work. It means you must gain the knowledge of principles, patterns and best practices and you must also grind the knowledge into your finders, eyes by working hard.

Yes, that’s why this book is divided into three parts.

  1. First will teach you principles, patterns, and best practices.
  2. Second, Case studies of ever-increasing complexity. Here you have to think and give the reason for making each change.
  3. Third, a list of heuristics and smells gathered while creating the case studies.

Thanks for reading this, I am also including what I like most and I must recommend this book to each and every person who is responsible for writing/reviewing code. For more just buy the book.

10 Ways To Make People Like You | Quick Notes

Currently I am reading one of the best book ever by Dale Carnegie – How to win friends and influence people and decided to share beautiful things that I found as quick notes. 

  • Become genuinely interested in other people, the only way to make genuine and long lasting friendship is to show interested and give respect to others.
  • Always smile, Smiles are free to give and have an amazing ability to make others feel wonderful.
  • Remember the person’s name, because people love there names.
  • Good listener, listen to them always maintain 80-20 principle (listen 80% and talk 20%).
  • Make other people feel important, give equal response to everyone. The golden rule is to treat other people how we would like to be treated.
  • Avoid the argument, because it does not matter if you win or lose as we always lose.
  • Never ever say you’re wrong better ask questions to them, so that they can realize it better.
  • If you’re wrong admit it quickly.
  • Call attention to people mistakes indirectly, no one likes to make mistake so scolding and blaming them only serves humiliate. Listen, share and discuss they will appreciate.
  • Talk about your mistakes before criticizing others.

Thanks for reading.

Make greatest impact for yourself ?

Introduce priorities, they are areas of focus where you make the greatest impact to achieve your best. Priorities will help you to focus on what is more important, how to organize and where to spend the energy.

Priorities are anything that you needs to be top of mind, they are dynamic means you are adding something, checking progress and then adjusting them.

So define what exactly we want to do, make a list and start working on it. Few things that really matter.

  1. Do what you can with what you have.
  2. Small things matter
  3. Something amazing
  4. Fight for someone rights
  5. Patience and go to the distance

Thanks for reading.

Focus on yourself | Quick Note

What will happen when we think about what is right with the people rather than what wrong with them?

There is three principal of strength-based development.

  1. The way in which you naturally think, behave or feel show your power and the potential.
  2.  Become the best, increase your understanding of your potential so you can develop.
  3.  Maximum productivity, gain by focusing on your potential and managing your weaknesses.

Exercise is write down “I use my strength every day” once with your dominant hand and then with the nondominant hand.

Completed ? now realize how did it feel? how much longer was it? Although you were able to complete but, it was a struggle.

There is a book called, The Clifton Strength Finder. A 30-minute survey that will identify your talents and find a common language to use and to support your strength-based approach.

Talk About it -> Name it -> Claim it -> Aim it.