Showing posts with label core python. Show all posts
Showing posts with label core python. Show all posts

Friday, July 19, 2019

How do you Use Python to make Website?

In this post you will know how to make websites using python. Python is an easy, flexible and powerful general purpose programming language (which is specially suited for web development), but you should bear in mind that in order to become a web developer you must learn several different skills besides python.

Firstly you need to understand that a website/ web application consists of two major parts.

The front end: Client side.

The back end: Server side.

Front-end / Client side is nothing but what you see as a user on the browser, i.e the webpage, the layout, images and the small widgets like buttons and badges

The first basic skill you must learn is HTML.

HTML is the markup language of the web. All web pages are created with HTML, which defines the different elements contained in a web page.



Then you should learn CSS, which is another little language that defines the way each HTML element looks within a page (its color, the font type, its position on the page, etc).

And the third skill you should master to become a complete web developer is JavaScript.
JavaScript is a scripting language, just as python, but it runs within the browser.
It is a fundamental part of HTML 5 (the newest incarnation of the HTML , which powers all the new applications being written for the web and mobile phones and tablets (iphone, ipad, blackberry, etc...).

HTML + CSS + JAVASCRIPT are different parts of the whole HTML5 platform, and they all work in tandem to create a full web application.

Where does Python fit in?

Although you can create a full web application with just HTML, CSS and javascript, chances are that your application will need to access data stored in a server, most likely a database.
That means that you will have to write code that will be run in a remote server rather than in the browser.

The server side is different than the browser (or client side). In the client side you only have one option: JavaScript.On the other hand, you can use any imaginable language on the server side.
People use php, java, ruby, python, c#, etc...



Python will let you talk to the database or data store, perform queries, retrieve information and format the output to your web page.

Is it possible to forget about JavaScript and write your whole application in python?
Yes, and many web sites work this way. But you would be limiting yourself (and your website usability).

Code written in JavaScript runs in your browser (it doesn't need to communicate with a distant server and wait for the response) hence, its faster, and the user experience is better. That's why the new HTML5 web applications feel more and more like desktop applications.
Applications written entirely in JavaScript that talk directly to the database are known as Ajax applications.

But code written on the server side may give you more security and scalability, so both sides should be mastered to become a competent web developer.

As for web development frameworks:
Again, please first stand on your feet... When you reach the moment where you find yourself needing a framework, you will probably find out that you can get by with a simpler solution rather than Django. Django lets you create the whole structure of your website on the server side.

My advice: Forget about all these things, get a good python tutorial and learn it (and enjoy it!) before looking at all the other technologies you will need.

Wednesday, July 17, 2019

Advantages and Disadvantages of Python

In this post you will learn the advantages and limitations of python.  Python is an object-oriented, high-level programming language with integrated dynamic semantics primarily for web and app development. The following are the advantages and disadvantages of python.

Advantages of Python

1- Python is easy to learn for even a novice developer. Its code is easy to read and you can do a lot of things just by looking at it. Also, you can execute a lot of complex functionalities with ease, thanks to the standard library.

2- Supports multiple systems and platforms.

3- Object Oriented Programming-driven.

4- With the introduction of Raspberry Pi, a card sized microcomputer, Python has expanded its reach to unprecedented heights. Developers can now build cameras, radios and games with ease. So, learning Python could open new avenues for you to create some out-of-the box gadgets.

5- Python has a plethora of frameworks that make web programming very flexible. Django is the most famous Python framework for web development.

6- Gives rise to quick development by using less code. Even a small team can handle Python effectively.

7- Allows to scale even the most complex applications with ease.

8- A large number of resources are available for Python.

9- Offers a built in testing framework to set debugging time and enable fastest workflows.

10- IT giants like Yahoo, Google, IBM, NASA, Nokia and Disney prefer Python.



Disadvantages of Python

1- Python is slow.

2- Python is not a very good language for mobile development.

3- Python is not a good choice for memory intensive tasks.

4- It's near impossible to build a high-graphic 3D game using Python.

5- Has limitations with database access.

6- Python is not good for multi-processor/multi-core work.

High Paying Jobs after Learning Python

Everyone knows Python is one of the most demand Programming Language. It is a computer programming language to build web applications and sc...