Hi! I know you are probably asking what the heck is he doing? I will be honest here, this is not a tutorial but a simple quick fix to a problem I faced last night. I was invited by an author to take part in the so called blog hopping. One of the requirements was to find at least five other authors with blogs to join the adventure. So, I asked myself, how could I make this as much fun as possible and learn something at the same time?
After completing my first two challenges from Mozilla P2PU (HTML and Twitter API programming), I have decided to continue the amazing journey of learning new things. So what is up next for me? The answer is learning PHP. What does PHP stand for? It stands for PHP: Hypertext Preprocessor – which is a recursive acronym.
The next question you might be asking is: what the heck is PHP? I will make it simple enough to understand and then leave the rest to PHP on Wikipedia . So, php is an open-source server-side scripting language designed for web development to produce dynamic web pages. Something worth mentioning here is Rasmus Lerdorf – the creator of PHP (Give credit where it is due)!
Let us learn how to use github public repository.This happens to be my last post on this Programming With Twitter API journey. I do not feel sad because this is actually just the beginning! I will not stop here, I will keep making something better out of it. This has been a great adventure, very informing and fun. So, without much a do, I want to show you(if you have not done this before), how to make our code publicly accessible to interested people who want to read it and even use it for their own learning or applications. I am going straight to github – by the way this is not the only one, look for bitbucket or something that makes you happy.
Today, I am going to explore farther or deeper into what we can do with what Twitter API calls returns to us. I will make the whole post a step-by-step tutorial so that anyone interested in trying the codes out can do so with ease. So, let us get started.
#Always remember to use comments when writing code
#since we are using Python as our programming language
#of choice, we will make sure to import the necessary
#modules or libraries into our file
#make a simple dictionary/hash, add some items to it
#experiment on retrieving them by key and by value
#dictionaries are mutable