Evolution of My View of Programming


An interesting thing happened yesterday…

The backstory: I was instructed to change some titles on webpages for the day job, and they needed to be under 60 characters. There are PLENTY of places online where I could have entered text to get a character count, but I thought to myself, “I know how to do this in python…” And so I did.

def count_it():
    stuff = input("Please enter your phrase: ")
    if stuff != 'q':
        print(len(stuff))
        count_it()
    else:
        print("goodbye")
 
count_it()

I wrote this snippet of code in just a few minutes, and it works great! It runs locally, and I don’t have to be internet paranoid about using an unknown site.

The point I am getting to is this; as simple as this example is, I thought of solving something myself because I could. Sorta like changing your own tire instead of calling AAA. I have a feeling of accomplishment and its motivation to continue to move forward.