The Obstacles Of Progression

In 2020, the world will change, that is what I was told and read about, yet it's still the same, people do things the same way, people think the same way and people pay the same bill, nothing as change but our thoughts can. What I have learned as a software engineer is that obstacles are not objects that block your way, but if they do, just remove them, kick it aside and progress. Moreover, to my understanding, they can be the way you think, the people's thoughts around you, your procrastination and your proud laziness., and the lack of will to do nothing. The manner of the way you talk or even the way you sleep and eat.

Finally, your fear and level you panic when things go wrong instead of thinking about how to fix it. What can really go wrong if you just start doing and stop learning? Stop thinking about project limitation and start getting what is needed to start. Keep it simple does not mean it's not good, it means you understand it better.

As a software engineer, several people, ask me a lot of questions about which language to learn, and how they can build a RESTful server for their mobile and web application. As an advanced PHP, JavaScript, Python, C# and professional C++ coder and engineer, I do understand this, pick any of the languages and start coding until you got some results or get someone to do it for you.

Stop limiting your ability and start doing it instead, folks! that is how you become an expert. In this article, I will demonstrate this, by writing about how to start building your RestFul API using Python programming language.

As for those who already know how to use Python, Flask is a very simple and rapid development library, Flask is very easy to use. As I always say to friends, what can really go wrong, if you can't do it, you can find people to do it.

Let began folks:

Install Python 3 and now make sure you can open the Python IDE and create a new file editor as shown below.

No alt text provided for this image


Now you can install Flask via pip as shown below via any command line of your choice.

No alt text provided for this image

confirm Flask is installed as shown below:

No alt text provided for this image

Now start coding using the basic tutorial from the Flask website that is all you need to do, and to create a professional RestFul web service. Stop learning and start doing to gain experience.

Let get it straight here, one gets employed by experience, not by learning.

Coding time, let create a simple RestFul Login Authentication API.

First, spend 10 minutes or less to think about the URL for the authentication

URL = http://server_host/api/v1/login/?username=_user_name&password=plain_text_password

This is good enough for me. Folks! let start importing the modules we needed.

from flask import Flask, request, jsonify;

Extends the main application Flask and continue to use the little knowledge from python to make this look cool.

from flask import Flask, request, jsonify;


# Extends the application like you will do with C# Application 

class AuthenticationApp(Flask):


    def __init__(self, path_file):
        super().__init__(path_file)
        self.config['DEBUG'] = True;
        # Add routes to your paths.
        self.add_url_rule("/api/v1/login", view_func = self.__Authenticate, methods  =  ['GET','POST']);



    def __Authenticate(self):
        response = dict();
        response['success'] =  False;
        username  =  request.values.get("username");
        password  =  request.values.get("password");


        if(username =='admin') and (password =='admin'):
            # this admin and admin can be loaded from file or database
            response['success']  =  True;


        return jsonify(response);




if __name__ == '__main__':


    app  =  AuthenticationApp(__name__);
    app.run();

Time to run your application, please do that from the command line as shown below and press enter to run the program.

No alt text provided for this image

Now open up a browser and type in the following URL.

Take a good look, Success = false because the password is deliberately entered as 'admins', remove the 's' and press enter again. When it comes to programming, learn less and do more to gain experience. Just start instead of thinking about how you can get start.

The RestFul API is for you and your team to see and not for the users. Give them a fancy JSON text and they are happy, and obstacles removed.

Obstacles come in different forms even in programming or coding. If your mind is not your limitation then nothing can.

Determination + Hardworking + Focus = result.

Don't ask me how I come up with this equation, it works. Never be scared to start a project even if you have no knowledge of how to start, there is a lot of online courses to get your start.

Welcome to 2020, people of 2019.








To view or add a comment, sign in

More articles by Obaro Israel J.

Others also viewed

Explore content categories