Count How Many Routes You Have

It start with one, then two and it keeps on growing. The number of routes in your ruby on rails project can be a reflection of how complex your project is becoming. And if you are curious like me to know how many routes your project has, just run the following command in your rails console.

Books I Read 2021

As a followup on my 2020 article on the list of books I have read in 2020. Here is 2021 version. I aimed to read at least one book a month in 2021. During some months I was able to achieve more than one book a month, but sadly I couldn’t keep it up for the whole year. 2022 is another year, hope to be able to do one book a month minimum this year.

Consequences of saying NO

Disclaimer: This article is not against saying No. One should exercise no to protect ones individual wishes, freedom and mental health.

This article is about consequence of saying no or frequent no to your colleague(s), child or partner for something they want to do.

When you tell no, three things can happen.

  1. You say No they don’t do it, but it lingers in there mind.

  2. You say No, they do it. And the bad thing you why they shouldn’t do it happens. Following this the person can learn to appreciate you, or just hate you still. (Well humans are like that)

  3. This is the thing one should fear the most. You say No, they do it and everything went fine. With that they stop asking you for permission and even loosing respect to your advice.

The above situation can be a good example of game theory, where the result of your advice or decision of saying No. Depends on how the other person react to it and its result.

Right vs Wrong (Part 1)

There is no better examples of evolving definition (during the lifetime of person) than the definition of right or wrong.

When we are little the definition of Right and Wrong is absolute. The adults define them (especially our parents). What the show as Right is Right and what they treat as Wrong is Wrong. That is the time when everyone see right and wrong as binary, the simpler times which our mind will ache for in future. Telling lies are wrong, stealing is wrong.

As we grow right around the time we start school, we learn that right and wrong are relative. There are little lies and big lies, little truths and honest truth. We learn to navigate this world with our friends and young foolish loves. This relative truths are based on the absolute truth from which we grew. Where in the absolute world a lie is wrong. In the relative world, simple and small lie here and there is fine. As long as it doesn’t hurt anyone, and it makes your life simpler.

Books I Read 2020

I have seen many people write about the favorite books that they read in (2020, 2019, etc). I have a friend who has been posting regularly for almost a decade. Feeling inspired from this, here is my list of books that I read in 2020. I do like reading books, but I haven’t been able to keep up with as much as I would have loved to read. 2020 allowed me to catch up a bit, and hope to continue that.

PS: Unlike most others who write their favorites, mine is pretty much just a list of books I read.